Coupling of SU2 and CoolProp#1782
Coupling of SU2 and CoolProp#1782pcarruscag merged 49 commits intosu2code:feature_coolpropfrom PENGYAN777:develop
Conversation
|
could you clean up unnecessary files first, please? |
|
Hi, thank you for your help.
Could you please give more details about unnecessary files?
If you mean files related to cmake, I think they are generated automatically when CoolProp is compiled by cmake submodule in meson.
I will try to compile without these files. If I succeed, I will remove them.
PENG YAN, PhD student
Department of Aerospace Science & Technology
Politecnico di Milano
…________________________________
From: Nijso ***@***.***>
Sent: Wednesday, October 5, 2022 21:31
To: su2code/SU2 ***@***.***>
Cc: Peng Yan ***@***.***>; Author ***@***.***>
Subject: Re: [su2code/SU2] [WIP]Coupling of SU2 and CoolProp (PR #1782)
could you clean up unnecessary files first, please?
—
Reply to this email directly, view it on GitHub<#1782 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATJ4GKEET6UOH5CLSYXW5RLWBXJPVANCNFSM6AAAAAAQ53HAJY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
Yes, all those automatically generated files should be removed, so everything in the folder .idea (including the folder), and the entire cmake-build-debug folder. If they come from coolprop, tell it to install into another directory outside of SU2. |
|
Thank you for your advice.
I will do that as soon.
PENG YAN, PhD student
Department of Aerospace Science & Technology
Politecnico di Milano
…________________________________
From: Nijso ***@***.***>
Sent: Wednesday, October 5, 2022 21:47
To: su2code/SU2 ***@***.***>
Cc: Peng Yan ***@***.***>; Author ***@***.***>
Subject: Re: [su2code/SU2] [WIP]Coupling of SU2 and CoolProp (PR #1782)
Yes, all those automatically generated files should be removed, so everything in the folder .idea (including the folder), and the entire cmake-build-debug folder. If they come from coolprop, tell it to install into another directory outside of SU2.
—
Reply to this email directly, view it on GitHub<#1782 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATJ4GKA5U3DU3MBG5LNUQC3WBXLMBANCNFSM6AAAAAAQ53HAJY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
This pull request introduces 293 alerts when merging a6ce86a into 4f3e0af - view on LGTM.com new alerts:
|
pcarruscag
left a comment
There was a problem hiding this comment.
Welcome to SU2
Run clang-format on new files and please format your changes to existing files according to SU2 style.
Common/src/CConfig.cpp
Outdated
| addEnumOption("FLUID_MODEL", Kind_FluidModel, FluidModel_Map, STANDARD_AIR); | ||
| addEnumOption("FLUID_MODEL", Kind_FluidModel, FluidModel_Map, COOLPROP); | ||
| /*!\brief FLUID_NAME \n DESCRIPTION: Fluid name \n OPTIONS: see coolprop homepage \n DEFAULT: nitrogen \ingroup Config*/ | ||
| addStringOption("FLUID_NAME", FLUID_NAME, string("nitrogen")); |
There was a problem hiding this comment.
I wonder if there is a way to combine this with the Mutation++ options.
There was a problem hiding this comment.
That is a good idea.
I will try to finish this new feature as soon, and then if it is possible, I am happy to work with others on this combination.
WallyMaier
left a comment
There was a problem hiding this comment.
Thanks for your contribution!
Be sure to run remove the unnecessary files and run clang_format to clean up new files.
I wonder with the new additions of the NEMO, Species and now CoolProp fluids, there would be a smart way to consolidate
ok, I will add the regression recently. |
Hi, I meet a problem when I change /.github/workflows/regression.yaml to enable compilation with CoolProp for one of the config sets (BaseMPI). To compile CoolProp, I import cmake submodule of meson. However, when github workflow builds BaseMPI, the error message is 'can not find cmake.' I think this is because github does not have cmake. Do you have any advice? Thank you. (the other subproject Mutationpp also import cmake submodule, do you know how that new feature is built on github?) |
|
Mutation++ is currently not built on github |
|
I will try to update the docker images to make cmake available |
Thank you. Once cmake is avalible on github, then I will continue to enable BaseMPI to compile CoolProp. |
|
You should be able to create the new PR from this link https://github.com/su2code/SU2/compare/develop...feature_coolprop?expand=1 |
|
@PENGYAN777 the issues with the GitHub actions are fixed now. Please open the new PR so that we can merge this work into develop. |
Thank you for your help. I created the new PR request with title ' Feature coolprop #1806 '. Next, I will work to introduce viscosity and conductivity from CoolProp, then this new feature should be done. |
Proposed Changes
This project aims to couple the free and open-source thermodynamics library CoolProp with SU2.
There are two advantages:
CoolProp can provide accurate thermodynamics properties (P, T, rho, ect) of commone fluids by either extracting experiment data from published papers, or computing based on the state-of-the-art Helmholtz energy formulations.
So, thermodynamics properties obtained from CoolProp should be more accurate than those obtained from Van der Waals or peng robinson gas model embedded in SU2. Also, the numerical results should be more accurate.
To use CoolProp feature, the ony input from the user is the name of fluid. Then all other thermodynamics can be provided by CoolProp.
%FLUID_MODEL = COOLPROP
%FLUID_NAME = nitrogen
Related Work
This project references the following work:
1.the work of coupling 'Mutationpp' with SU2.
4. the pull request of 'Feature nppr gas #1718'
PR Checklist