-
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
Brownian Dynamics within the existing VV loop #1842
Conversation
Head to BD
Head to BD
Head to BD
Head to the BD
..aka the drift in case of the electrostatics
@RudolfWeeber Let me know if ede6e7e is what you had in mind. Don't forget to add |
@jngrad, yes. Could you please gather all the Brownian-dynamics related globals in a sinlge struct? Then, it's ready, I think. |
The Brownian globals are now in a struct. In jngrad/therm-refactor I also moved the Langevin and NPT globals in structs and moved the Langevin code to |
@hmenke, from my side, this PR is ready. Please check your open review for things not addressed. If there aren't any, please approve the PR. |
if (!(p.p.ext_flag & COORD_FIXED(j))) | ||
#endif | ||
{ | ||
p.r.p[j] += p.f.f[j] * dt / (local_gamma[j]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still missing a check for virtual particles here and probably at other places too
@KaiSzuttor, the virtual sites are excluded for translational degrees in For rotational degrees, VS are not excluded, which is correct. If the virtual sites have_quanterion feature is used, the virtual sites update will assign the correc orientation after the propagation step. |
this was the last unresolved remark of @hmenke. so this PR can be merged
… Am 23.01.2020 um 12:53 schrieb RudolfWeeber ***@***.***>:
@KaiSzuttor, the virtual sites are excluded for translational degrees in
void brownian_dynamics_propagator(const ParticleRange &particles)
For rotational degrees, VS are not excluded, which is correct. If the virtual sites have_quanterion feature is used, the virtual sites update will assign the correc orientation after the propagation step.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I found a different but related issue. The testcase for checking thermo_virtual with Brownian dynamics was incorrect (copy/paste error from the Langevin test). |
@jngrad I think we should merge this now, or you should push your tests onto this branch. |
Fixes #1360, also it contains the integrated changes from PRs #1622, #1757 which were required to validate both existing Langevin- (LD) and new Brownian Dynamics (BD) viscous and fluctuation dynamics including the rotational one.
Description of changes:
brownian_thermostat.py
is based on the existinglangevin_thermostat.py
. It contains some commented out fragments which are inconsistent for the simplest BD cause ones correspond to more fine dynamical structure compare to the BD temporal relationtime_step >> mass / gamma
. The Maxwell distribution test is passing well and the Gaussian noise type is crucial for this which has been done in thethermostat.hpp
.mass-and-rinertia_per_particle.py
contains changes described within the PRs Anisotropic rotational diffusion test #1622, Drag terminal velocity tests #1757. Probably, it is of interest for both the LD and BD independently. This is why I've opened that PRs in advance.mass-and-rinertia_per_particle_rotdiff-longrun.py
. It requires ~2 hours of a run and provides the intensive validation of the existing LD and new BD dynamics in the same way.PR Checklist
References
schlick2010: https://link.springer.com/book/10.1007%2F978-1-4419-6351-2
Pottier2014: https://link.springer.com/article/10.1007/s10955-010-0114-6