-
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
Fixed values for turbulence quantities in upstream half-plane #1236
Changes from all commits
dc22431
7aa7a4f
3b84e35
f725029
441a30e
5654648
a7d9cc6
be91c93
296dbf7
2e64c67
6e618b3
cd9326b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2105,6 +2105,12 @@ void CConfig::SetConfig_Options() { | |
/* DESCRIPTION: Direction of the gust X or Y dir */ | ||
addEnumOption("GUST_DIR", Gust_Dir, Gust_Dir_Map, Y_DIR); | ||
|
||
/* Fixed values for turbulence quantities to keep them at inflow conditions. */ | ||
/* DESCRIPTION: Fix turbulence quantities to far-field values inside an upstream half-space. */ | ||
addBoolOption("TURB_FIXED_VALUES", Turb_Fixed_Values, false); | ||
/* DESCRIPTION: Shift of the fixed values half-space, in space units in the direction of far-field velocity. */ | ||
addDoubleOption("TURB_FIXED_VALUES_DOMAIN", Turb_Fixed_Values_MaxScalarProd, numeric_limits<su2double>::lowest()); | ||
|
||
/* Harmonic Balance config */ | ||
/* DESCRIPTION: Omega_HB = 2*PI*frequency - frequencies for Harmonic Balance method */ | ||
addDoubleListOption("OMEGA_HB", nOmega_HB, Omega_HB); | ||
|
@@ -4364,6 +4370,10 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ | |
SU2_MPI::Error("The LM transition model is under maintenance.", CURRENT_FUNCTION); | ||
} | ||
|
||
if(Turb_Fixed_Values && Turb_Fixed_Values_MaxScalarProd==numeric_limits<su2double>::lowest()){ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fyi: there is an |
||
SU2_MPI::Error("TURB_FIXED_VALUES activated, but no domain set with TURB_FIXED_VALUES_DOMAIN.", CURRENT_FUNCTION); | ||
} | ||
|
||
/*--- Check for constant lift mode. Initialize the update flag for | ||
the AoA with each iteration to false ---*/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1363,6 +1363,14 @@ class CSolver { | |
CNumerics *visc_numerics, | ||
CConfig *config, | ||
unsigned short val_marker) { } | ||
/*! | ||
* \brief Virtual function to apply something like a strong BC to the whole domain. | ||
* \details Overridden in CTurbSolver to impose fixed values to turbulence quantities | ||
* in a specified upstream half-plane. | ||
Comment on lines
+1368
to
+1369
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 for this explanation in CSolver. If one really cannot avoid the virtual then it is a nice touch to specify where it is actally used |
||
* \param[in] geometry - Geometrical definition of the problem. | ||
* \param[in] config - Definition of the particular problem. | ||
*/ | ||
virtual void Impose_Fixed_Values(const CGeometry *geometry, const CConfig *config) { } | ||
|
||
/*! | ||
* \brief Get the outer state for fluid interface nodes. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elegant 👍 Hopefully not too much :)