Skip to content
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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Temperatures #96

wants to merge 3 commits into from

Conversation

hechtprojects
Copy link
Member

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.

@hechtprojects hechtprojects added this to the release v1.1.0 milestone Dec 11, 2024
@hechtprojects hechtprojects linked an issue Dec 11, 2024 that may be closed by this pull request
Copy link
Member

@kay-ro kay-ro left a 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__()
Copy link
Member

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,
Copy link
Member

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)

Comment on lines +5691 to +5696
Spatial velocity correlation function for each frame.

Returns
-------
np.ndarray
Function value for each frame.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Comment on lines +5704 to +5710
Times at which the spatial velocity correlation
function is evaluated.

Returns
-------
np.ndarray
Times at which the function is evaluated.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Comment on lines +5718 to +5724
Time-averaged spatial velocity correlation function
(averaged over the given number of frames).

Returns
-------
np.ndarray
Time-averaged spatial velocity correlation function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Comment on lines +5418 to +5419
Times at which the spatial velocity correlation
function is evaluated.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Comment on lines +5405 to +5406
Spatial velocity correlation function for each frame.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Comment on lines +5297 to +5303
Time-averaged spatial velocity correlation function
(averaged over the given number of frames).

Returns
-------
np.ndarray
Time-averaged spatial velocity correlation function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Comment on lines +5283 to +5284
Times at which the spatial velocity correlation
function is evaluated.
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FRQ: Temperature calculation
2 participants