Skip to content

Commit

Permalink
add cg system test
Browse files Browse the repository at this point in the history
  • Loading branch information
marjanalbooyeh committed Sep 12, 2023
1 parent 330be4f commit df941e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hoomd_organics/tests/base/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
class TestSimulate(BaseTest):
def test_initialize_from_system(self, benzene_system):
sim = Simulation.from_system(benzene_system)
sim.run_NVT(kT=1.0, tau_kt=0.01, n_steps=500)
assert len(sim.forces) == len(benzene_system.hoomd_forcefield)
assert sim.reference_values == benzene_system.reference_values

def test_initialize_from_system_no_ff(
self, benzene_cg_system, cg_single_bead_ff
):
sim = Simulation.from_system(
benzene_cg_system, forcefield=cg_single_bead_ff
)
sim.run_NVT(kT=0.1, tau_kt=10, n_steps=500)

def test_initialize_from_state(self, benzene_system):
Simulation.from_state(
initial_state=benzene_system.hoomd_snapshot,
Expand Down

0 comments on commit df941e1

Please sign in to comment.