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

[WIP] Implementing Helmholtz EOS #724

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

aisclark91
Copy link
Collaborator

This is a follow up of #518. My local fork was dirty and I decided to clean it up, so no commits from older projects appear in my new PR's. I apologize for the inconvenient.

Copy link
Collaborator

@yut23 yut23 left a comment

Choose a reason for hiding this comment

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

Copying my comments from the previous PR

Comment on lines +78 to +82
f_local = np.empty((self.imax, self.jmax, 9))
for j in range(0,self.jmax):
for i in range(0,self.imax):
line = file.readline()
f_local[i,j,:] = _extract_line_data(line)[:]
Copy link
Collaborator

Choose a reason for hiding this comment

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

This would probably be faster with np.loadtxt

# interpolation:
#============================================================

def _read_wd(self, der=0, sel='biquintic'):
Copy link
Collaborator

Choose a reason for hiding this comment

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

_read_wd() and _read_wt() are almost identical: most of the code should be pulled out into a shared helper function

Comment on lines +268 to +271
psi[0] = self._psi0(x)
psi[1] = self._psi0(1-x)
psi[2] = self._psi1(x)
psi[3] = self._psi1(1-x)
Copy link
Collaborator

Choose a reason for hiding this comment

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

these should be self._xpsi*

psi[2] = self._ddpsi1(y)
psi[3] = self._ddpsi1(1-y)
psi[4] = self._ddpsi2(y)
psi[5] = self._ddpsi2(y)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be self._ddpsi2(1-y)

Comment on lines +421 to +424
psi[0] = self._psi0(y)
psi[1] = self._psi0(1-y)
psi[2] = self._psi1(y)
psi[3] = self._psi1(1-y)
Copy link
Collaborator

Choose a reason for hiding this comment

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

these should be self._xpsi*

Comment on lines +443 to +446
psi[0] = self._psi0(y)
psi[1] = self._psi0(1-y)
psi[2] = self._psi1(y)
psi[3] = self._psi1(1-y)
Copy link
Collaborator

Choose a reason for hiding this comment

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

these should be self._xdpsi*

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.

3 participants