44from nomad .units import ureg
55
66from nomad_simulations .schema_packages .numerical_settings import (
7- DispersionKnob ,
8- DispersionSettings ,
7+ EmpiricalDispersionKnob ,
8+ EmpiricalDispersionSettings ,
99 KLinePath ,
1010 KMesh ,
1111 KSpaceFunctionalities ,
@@ -491,27 +491,27 @@ def test_resolve_points(self, k_line_path: KLinePath):
491491 assert np .allclose (k_line_path .points , points )
492492
493493
494- class TestDispersionSettings :
494+ class TestEmpiricalDispersionSettings :
495495 """
496496 Tests for dispersion numerical settings schema:
497- - typed physical constraints via DispersionKnob
498- - container section DispersionSettings
497+ - typed physical constraints via EmpiricalDispersionKnob
498+ - container section EmpiricalDispersionSettings
499499 """
500500
501501 def test_knobs_roundtrip_and_normalize_noop (self ):
502502 """
503503 Knobs should be storable and survive normalize() unchanged
504504 (no special normalization is defined currently).
505505 """
506- dns = DispersionSettings (
506+ dns = EmpiricalDispersionSettings (
507507 include_c8 = True ,
508508 include_three_body_atm = False ,
509509 partition_scheme = 'Hirshfeld' ,
510510 density_source = 'valence-only' ,
511511 knobs = [
512- DispersionKnob (kind = 's6' , applies_to = 'pairwise' , value = 1.0 ),
513- DispersionKnob (kind = 'a1' , applies_to = 'pairwise' , value = 0.40 ),
514- DispersionKnob (kind = 'a2' , applies_to = 'pairwise' , value = 4.00 ),
512+ EmpiricalDispersionKnob (kind = 's6' , applies_to = 'pairwise' , value = 1.0 ),
513+ EmpiricalDispersionKnob (kind = 'a1' , applies_to = 'pairwise' , value = 0.40 ),
514+ EmpiricalDispersionKnob (kind = 'a2' , applies_to = 'pairwise' , value = 4.00 ),
515515 ],
516516 )
517517
@@ -543,7 +543,7 @@ def test_switch_fields(
543543 """
544544 Basic storage test for the inclusion switches and max_dispersion_order.
545545 """
546- dns = DispersionSettings (
546+ dns = EmpiricalDispersionSettings (
547547 include_three_body_atm = include_three_body_atm ,
548548 include_c8 = include_c8 ,
549549 include_c10 = include_c10 ,
@@ -570,7 +570,7 @@ def test_environment_fields(self, partition_scheme, charge_model, density_source
570570 """
571571 Storage test for environment/charge/density-source categorical fields.
572572 """
573- dns = DispersionSettings (
573+ dns = EmpiricalDispersionSettings (
574574 partition_scheme = partition_scheme ,
575575 charge_model = charge_model ,
576576 density_source = density_source ,
@@ -586,10 +586,12 @@ def test_multiple_knobs_same_kind_allowed(self):
586586 It should be allowed to store multiple knobs of the same kind if they
587587 apply to different contributions (or even if not, schema-wise).
588588 """
589- dns = DispersionSettings (
589+ dns = EmpiricalDispersionSettings (
590590 knobs = [
591- DispersionKnob (kind = 's9' , applies_to = 'three_body_atm' , value = 1.0 ),
592- DispersionKnob (kind = 's9' , applies_to = 'pairwise' , value = 0.0 ),
591+ EmpiricalDispersionKnob (
592+ kind = 's9' , applies_to = 'three_body_atm' , value = 1.0
593+ ),
594+ EmpiricalDispersionKnob (kind = 's9' , applies_to = 'pairwise' , value = 0.0 ),
593595 ]
594596 )
595597 dns .normalize (EntryArchive (), logger = logger )
0 commit comments