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

Request: PropsSI Inputs of D and Q #822

Closed
dansteingart opened this issue Sep 30, 2015 · 2 comments
Closed

Request: PropsSI Inputs of D and Q #822

dansteingart opened this issue Sep 30, 2015 · 2 comments
Milestone

Comments

@dansteingart
Copy link

it would be great if PropsSI could take a D and Q input to return values. Current I can hack it by reversing over a range of P,T,H or S, and matching against D for a given Q, but it would be great not to have to do that.

e.g.

Rather than

D3 = 1/0.845
Ps = linspace(1e5,3e5,500)
Ds = PropsSI('D','P',Ps,'Q',1,'water')
DifD = min(abs(Ds-D3))
DifDS = list(abs(Ds-D3))
ind = DifDS.index(DifD)
P3 = Ps[ind]
D3 = 1/0.845
P3 = PropsSI('P','D',D3,'Q',1,'water')

Thanks in advance. I know the former example could be more pythonic, but the request still makes sense IMHO,

@ibell
Copy link
Contributor

ibell commented Sep 30, 2015

Can be done I think. In fact I think it is already possible at the lowest level but not currently at the high level. I can make that change.

@dansteingart dansteingart changed the title More a Request: PropSI Inputs of D and Q More a Request: PropsSI Inputs of D and Q Sep 30, 2015
@dansteingart
Copy link
Author

@ibell many thanks!

@ibell ibell added this to the v5.1.2 milestone Oct 6, 2015
@ibell ibell changed the title More a Request: PropsSI Inputs of D and Q Request: PropsSI Inputs of D and Q Oct 15, 2015
@ibell ibell closed this as completed in 37f75dd Oct 23, 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