Adding a new incompressible fluid #2353
Unanswered
StartCodeLearner
asked this question in
Q&A
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Yes.That's right, Is there any simple way to add or modify new incomp fluid without compilation?
…---- Replied Message ----
| From | Ian ***@***.***> |
| Date | 02/28/2024 07:04 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [CoolProp/CoolProp] Adding a new incompressible fluid (Discussion #2353) |
So that's your desired code, but it doesn't work as far as I can tell, right? Because partly at least JSON is not a valid option for fluid_param_string for the INCOMP backend
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Currently, no. But if you wanted to write a PR to add this capability it would be welcomed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, everyone, I have a question about adding an incompressible fluid. I have tried various methods, but still haven't worked not.
1)Try reading from a json file, modify it then reload them, following the instructions: http://www.coolprop.org/coolprop/HighLevelAPI.html#adding-fluids
But errors for these two functions:
jj = CP.get_fluid_param_string('INCOMP::NaK', 'json')
AS = CP.AbstractState('HEOS', 'INCOMP::NaK')
I have made the JSON file for the new fluid following the instructions: http://www.coolprop.org/fluid_properties/Incompressibles.html#adding-new-fluids
How to add it to the code without recompiling the source code
Another question about the CP.set_config_bool(CP.DONT_CHECK_PROPERTY_LIMITS, True)
The config file has been changed but it doesn't work for incompressible fluids like INCOMP::NaK.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions