Skip to content
Discussion options

You must be logged in to vote

The patch should be (not tested yet):

  1. Create the file "Thermodynamic.py" with the code above into python-sscha/Modules
import numpy as np
from scipy.special import tanh, sinh, cosh

def w_to_a(w, T):
    n = len(w)
    a = np.zeros(n)
    if T == 0.0:
        a[:] = np.sqrt(1.0 / (2.0 * w))
    else:
        a[:] = np.sqrt((1.0 / tanh(0.5 * w * 315774.65221921849 / T)) / (2.0 * w))
    return a
  1. In python-sscha/Modules run this command: sed -i 's/"SCHAModules.thermodynamic"/"Thermodynamic"/' Ensemble.py
  2. Add the line import sscha.Thermodynamic as Thermodynamic at the beginning of the file Ensemble.py
    3. Optional: Edit python-sscha/setup.py to comment the old fortran code "SCHAModules/mod…

Replies: 5 comments 22 replies

Comment options

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

Comment options

You must be logged in to vote
12 replies
@Tongca
Comment options

@mesonepigreco
Comment options

@diegomartinez2
Comment options

@diegomartinez2
Comment options

Answer selected by mesonepigreco
@mesonepigreco
Comment options

@mesonepigreco
Comment options

Comment options

You must be logged in to vote
7 replies
@diegomartinez2
Comment options

@DromaninCM
Comment options

@diegomartinez2
Comment options

@DromaninCM
Comment options

@Tongca
Comment options

Comment options

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

Comment options

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

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