Skip to content

Manual submission for NPT ensemble with vc relax #180

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

You must be logged in to vote

Dear Yubi,

There is actually an example in the github repository to do exactly what you want in ``Examples/SimpleVcRelax/vc_relax_no_automatic_submission.py''.

Here is the code:

import cellconstructor as CC, cellconstructor.Phonons
import sscha, sscha.Ensemble, sscha.SchaMinimizer, sscha.Utilities
import sscha.Relax


# Load the dynamical matrix
dyn = CC.Phonons.Phonons("../ensemble_data_test/dyn", nqirr=1)

# Load the ensemble (0 K)
ensemble = sscha.Ensemble.Ensemble(dyn, T0=0)
ensemble.load("../ensemble_data_test/", population=2, N=1000)

# Prepare the minimization
minim = sscha.SchaMinimizer.SSCHA_Minimizer(ensemble)

# Prepare the auxiliary functions to save the minimization output
io…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chenyubi14
Comment options

Answer selected by mesonepigreco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants