-
Notifications
You must be signed in to change notification settings - Fork 2
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
Temperatures #96
base: develop
Are you sure you want to change the base?
Temperatures #96
Conversation
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.
when running the
path="examples/data/lammps.h5amep"
traj= amep.load.traj(path)
tkin = amep.evaluate.Tkin(traj, nav=traj.nframes)
tkin4 = amep.evaluate.Tkin4(traj, nav=traj.nframes)
tosc = amep.evaluate.Tosc(traj, .1, nav=traj.nframes)
tconf = amep.evaluate.Tconf(traj,amep.utils.dr_wca, amep.utils.dr2_wca, nav=traj.nframes)
the shape of tkin4.frames
is not just (nframes) but (nframes, nparticles) with all the same values.
`amep.thermo.Tkin`. | ||
|
||
''' | ||
super(Tkin4, self).__init__() |
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.
super type causes error. please fix. Tosc
?
"""Configurational temperature. | ||
""" | ||
def __init__( | ||
self, traj: ParticleTrajectory, drU, dr2U, |
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.
please add type hints for drU
and dr2U.
(callable)
Spatial velocity correlation function for each frame. | ||
|
||
Returns | ||
------- | ||
np.ndarray | ||
Function value for each frame. |
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.
fix description
Times at which the spatial velocity correlation | ||
function is evaluated. | ||
|
||
Returns | ||
------- | ||
np.ndarray | ||
Times at which the function is evaluated. |
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.
fix description
Time-averaged spatial velocity correlation function | ||
(averaged over the given number of frames). | ||
|
||
Returns | ||
------- | ||
np.ndarray | ||
Time-averaged spatial velocity correlation function. |
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.
fix description
Times at which the spatial velocity correlation | ||
function is evaluated. |
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.
fix description
Spatial velocity correlation function for each frame. | ||
|
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.
fix description
Time-averaged spatial velocity correlation function | ||
(averaged over the given number of frames). | ||
|
||
Returns | ||
------- | ||
np.ndarray | ||
Time-averaged spatial velocity correlation function. |
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.
fix description
Times at which the spatial velocity correlation | ||
function is evaluated. |
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.
fix description
@property | ||
def frames(self): | ||
r''' | ||
Spatial velocity correlation function for each frame. |
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.
fix description
Tkin, Tkin4, Tconf, and Tosc implemented. Please test the corresponding evaluate classes in detail:
amep.evaluate.Tkin
amep.evaluate.Tkin4
amep.evaluate.Tosc
amep.evaluate.Tconf
If they run without any errors, please merge into develop. The new features can then be included in the next minor release.