Skip to content
Discussion options

You must be logged in to vote

In TorchSim there is 2 parts: the integrators (Nosé Hoover, Langevin...) and the high level ts.integrate to easily run the MD simulation.
Normally all integrators can accept multiple pressures and temperatures (one per system).

I've juste modified ts.integrateto allow multiple temperatures #367. Regarding pressures, it is possible by providing integrator_kwargsin ts.integrate.

Example

external_pressure = torch.arange(state.n_system, device=state.device, dtype=state.dtype) * ts.units.MetalUnits.pressure

ts.integrate(..., external_pressure=external_pressure)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by orionarcher
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #370 on December 05, 2025 18:44.