heat_hybrid: An ensemble can handle both NH and Langevin thermostats during NMED simulations with a single heat source and multiple heat sinks.#1617
Merged
Conversation
… simulation The `heat_hybrid` feature can handle both Nose–Hoover and Langevin thermostats simultaneously while performing NEMD simulations. It was generalized for scenarios with a single heat source and multiple heat sinks. This feature allows NEMD simulations to be performed irrespective of thermostat type, so the current `heat_lan` and `heat_nhc` options may no longer be required. However, the current version still supports those options for backward compatibility. Modified: `integrate.cuh`, `integrate.cu`, `ensemble.cu`, `ensemble.cuh`, `compute.cuh`, `compute.cu` Added: `ensemble_heat_hybrid.cu`, `ensemble_heat_hybrid.cuh`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary This PR adds
heat_hybridfunctionality to support both NH (Nose-Hoover) and Langevin thermostats during NMED simulations.Modification The
heat_hybridfeature can handle both Nose–Hoover and Langevin thermostats simultaneously while performing NEMD simulations. It was generalized for scenarios with a single heat source and multiple heat sinks. This feature allows NEMD simulations to be performed irrespective of thermostat type, so that currentheat_lanandheat_nhcoptions may no longer be required. However, the current version still supports those options for backward compatibility.Modified:
integrate.cuh,integrate.cu,ensemble.cu,ensemble.cuh,compute.cuh,compute.cuAdded:
ensemble_heat_hybrid.cu,ensemble_heat_hybrid.cuhLicensing I agree to license this contribution under GPLv3.
By submitting this pull request, I agree that my contribution will be included in GPUMD and redistributed under the existing GPUMD license. Newly added source files follow the existing GPUMD license-header style when applicable. No external source code with incompatible licensing has been copied into this pull request.
Validation
heat_hybridtested against legacyheat_lanandheat_nhcmethods with two thermal reservoirsheat_lanandheat_nhcwere tested individually for backward compatibility.Usage
Syntax :
Example 1: system with a single heat source and sink
ensemble heat_hybrid nhc lan <T> <T_coup> <T_coup> <delta_T> <label_source> <label_sink>Example 2: system with a single heat source and multiple heat sinks
ensemble heat_hybrid lan nhc nhc <T> <T_coup> <T_coup> <T_coup> <delta_T> <label_source> <label_sink1> <label_sink2>