-
Notifications
You must be signed in to change notification settings - Fork 849
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
Custom Python wrapper marker BC values appropriately nondimensionalized #2078
Conversation
Thanks, can you look for other places where the values are used, I think the incompressible solver might need the same fix. |
A SU2/SU2_CFD/src/solvers/CIncNSSolver.cpp Lines 350 to 372 in db21a33
However, I might have missed a spot here: SU2/Common/src/geometry/CMultiGridGeometry.cpp Lines 960 to 994 in db21a33
but my guess is that it's fine since values from here are re-nondimensionalized from the above commits. Please let me know if not however - I am not familiar with the specifics of multigrid and its implementation. Note that the commits above presume that values specified in Apologies for the long explanation, but curious to hear your input on this. I will look into why one of the regression tests failed and get back to you. |
You are right, custom temperature is not implemented in the incompressible solver. |
You can relax the tolerance in the python script of the failing test @j-signorelli |
Yes, the inlet profiles are dimensional. |
Proposed Changes
In current release of SU2, having, for example, a
MARKER_ISOTHERMAL=(marker, 300)
andMARKER_PYTHON_CUSTOM=(marker)
causes the BC temperature to be set to a nondimensional value of 300, which is inconsistent with what that marker's value is supposed to mean. This can be seen being set here:SU2/Common/src/geometry/CGeometry.cpp
Lines 2441 to 2461 in b80e4ce
and called for example here:
SU2/SU2_CFD/src/solvers/CNSSolver.cpp
Lines 712 to 714 in b80e4ce
This PR nondimensionalizes any custom boundary temperatures or heat fluxes appropriately so that any setting of them does not need to be nondimensionalized manually before, both in
MARKER_ISOTHERMAL
andMARKER_HEATFLUX
and in any Python code setting values of them.Related Work
None that I am aware of.
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.