Replies: 1 comment
-
Set You also need particle interactions to provide a virial and an integrator to provide degrees of freedom, all of which are needed to compute the pressure and kinetic temperature. Her is a minimal working example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I was working on a simulation and noticed that this chunk of code:
simulation.state.thermalize_particle_momenta(filter=hoomd.filter.All(), kT=0.75)
thermodynamic_properties = hoomd.md.compute.ThermodynamicQuantities(filter=hoomd.filter.All())
simulation.operations.computes.append(thermodynamic_properties)
simulation.run(0)
thermodynamic_properties.pressure
returns nan. I went back to the tutorial notebooks, and in Introducing Molecular Dynamics, Initializing a Random System, if I change out one of the other properties for pressure in the cells demonstrating how to check them (degrees_of_freedom, kinetic_temperature, kinetic_energy) it also returns nan, which makes me think it isn't an issue in how I've set up my simulation.
According to the documentation, I believe that the pressure is computed based on a single frame rather than being differential, so that shouldn't be the issue. I would really like some guidance on why I'm not able to see what the pressure of my system is (and ideally how to fix it) if someone has an idea!
Beta Was this translation helpful? Give feedback.
All reactions