-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Langevin thermostat with anisotropic friction is broken #4667
Comments
this ticket is suitable for new/early contributors, as most likely the fix is limited to a very few places in the Langevin thermostat code, pertaining to conversions between lab and the particle's co-rotating body frame. |
@christophlohrmann White noise is invariant under rotation, so there is no need to transform it. |
even for anisotropic particles? It just feels weird that the friction matrix is "full" and the noise matrix always a diagonal matrix in lab frame no matter the particle orientation |
Well my statement is correct, but not related :-) You are right: it's about the prefactors, not the noise, which of course needs to be transformed. Would be maybe a good idea to put the calculation for the anisotropic case into a function and add a unit test... |
couldn't agree more |
Partially fixes #4667 Description of changes: - Fix operator transformation - Add unit test
Fixes #4667 Description of changes: - Apply body-to-space-transformation to noise term Notes: - We need the same level of testing also for the rotational thermostats - The whole friction-and-noise force-calculation should be abstracted so it can be used by LB aswell
…4683) Partially fixes espressomd#4667 Description of changes: - Fix operator transformation - Add unit test
Fixes espressomd#4667 Description of changes: - Apply body-to-space-transformation to noise term Notes: - We need the same level of testing also for the rotational thermostats - The whole friction-and-noise force-calculation should be abstracted so it can be used by LB aswell
Brownian themorstat is fine, though
I only checked friction.
This
espresso/src/core/thermostats/langevin_inline.hpp
Line 84 in 6d08b88
EDIT:
Added temperature check that fails due to not-body-to-lab-converted noise prefactor
The text was updated successfully, but these errors were encountered: