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

Splined Output Doubt #611

Closed
delta-pi-1701 opened this issue Apr 21, 2015 · 1 comment
Closed

Splined Output Doubt #611

delta-pi-1701 opened this issue Apr 21, 2015 · 1 comment
Milestone

Comments

@delta-pi-1701
Copy link

import CoolProp as CP
HEOS = CP.AbstractState("HEOS", "Water")

HEOS.update(CP.HmassP_INPUTS , 1100e3, 3e6)
print(HEOS.Q())
print(HEOS.first_two_phase_deriv(CP.iDmass, CP.iP, CP.iHmass))
print(HEOS.first_two_phase_deriv_splined(CP.iDmass, CP.iP, CP.iHmass,0.03))
0.05106694516062975
0.00019860467815446722
-0.003595560998983705

I guess the derivative splined output may not valid beyond the x_end range and thus can be -1 to avoid confusion.

@ibell
Copy link
Contributor

ibell commented Apr 21, 2015

Would be better to either
a) error
b) fall back to first_two_phase_deriv

I'm leaning towards a)

On Tue, Apr 21, 2015 at 9:17 AM, Paul D notifications@github.com wrote:

import CoolProp as CP
HEOS = CP.AbstractState("HEOS", "Water")

HEOS.update(CP.HmassP_INPUTS , 1100e3, 3e6)print(HEOS.Q())print(HEOS.first_two_phase_deriv(CP.iDmass, CP.iP, CP.iHmass))print(HEOS.first_two_phase_deriv_splined(CP.iDmass, CP.iP, CP.iHmass,0.03))

0.05106694516062975
0.00019860467815446722
-0.003595560998983705

I guess the derivative splined output may not valid beyond the x_end range
and thus can be -1 to avoid confusion.


Reply to this email directly or view it on GitHub
#611.

@ibell ibell added this to the v 5.1 milestone Apr 22, 2015
@ibell ibell closed this as completed in 4697b33 Apr 22, 2015
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

No branches or pull requests

2 participants