-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: main
Are you sure you want to change the base?
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.
Copying my comments from the previous PR
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)[:] |
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.
This would probably be faster with np.loadtxt
# interpolation: | ||
#============================================================ | ||
|
||
def _read_wd(self, der=0, sel='biquintic'): |
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.
_read_wd()
and _read_wt()
are almost identical: most of the code should be pulled out into a shared helper function
psi[0] = self._psi0(x) | ||
psi[1] = self._psi0(1-x) | ||
psi[2] = self._psi1(x) | ||
psi[3] = self._psi1(1-x) |
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.
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) |
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.
this should be self._ddpsi2(1-y)
psi[0] = self._psi0(y) | ||
psi[1] = self._psi0(1-y) | ||
psi[2] = self._psi1(y) | ||
psi[3] = self._psi1(1-y) |
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.
these should be self._xpsi*
psi[0] = self._psi0(y) | ||
psi[1] = self._psi0(1-y) | ||
psi[2] = self._psi1(y) | ||
psi[3] = self._psi1(1-y) |
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.
these should be self._xdpsi*
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.