Skip to content

use ensemble.update_weights to simulate a different temperature #163

Answered by mesonepigreco
chenyubi14 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
It is possible to reuse the ensemble to minimize at a different temperature, however, the temperature must be relatively close to the one already simulated (100 and 300 K are likely too different, try something like 150 K).

To use it, just call the update_weights with the target temperature, and then run again the minimization.
For example:

# Load the ensemble at 100 K that converged the calculation
dyn = CC.Phonons.Phonons(f"data/dyn_gen_pop{POPULATION}", nqirr)
ensemble = sscha.Ensemble.Ensemble(dyn, 100)
ensemble.load_bin("data_dir", POPULATION)

# Change the temperature of the ensemble to the desired one (for example 150 K)
ensemble.update_weights(dyn, 150)

# Initialize the minim…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Kurufinve
Comment options

@mesonepigreco
Comment options

Answer selected by chenyubi14
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