GRINS-0.8.0
|
Encapsulate Spalart-Allmaras model parameters. More...
#include <spalart_allmaras_parameters.h>
Public Member Functions | |
SpalartAllmarasParameters (const GetPot &input) | |
~SpalartAllmarasParameters () | |
libMesh::Real | source_fn (libMesh::Number nu, libMesh::Real mu, libMesh::Real wall_distance, libMesh::Real vorticity_value, bool infinite_distance) const |
libMesh::Real | destruction_fn (libMesh::Number nu, libMesh::Real wall_distance, libMesh::Real S_tilde, bool infinite_distance) const |
libMesh::Real | fv1 (libMesh::Real chi) const |
Helper function. More... | |
libMesh::Real | get_kappa () const |
libMesh::Real | get_cv1 () const |
libMesh::Real | get_cv2 () const |
libMesh::Real | get_cv3 () const |
libMesh::Real | get_cb1 () const |
libMesh::Real | get_cb2 () const |
libMesh::Real | get_sigma () const |
libMesh::Real | get_c_w2 () const |
libMesh::Real | get_c_w3 () const |
libMesh::Real | get_r_lin () const |
libMesh::Real | get_c_t3 () const |
libMesh::Real | get_c_t4 () const |
libMesh::Real | get_c_n1 () const |
Public Member Functions inherited from GRINS::ParameterUser | |
ParameterUser (const std::string &user_name) | |
virtual | ~ParameterUser () |
virtual void | set_parameter (libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default) |
Each subclass can simultaneously read a parameter value from. More... | |
virtual void | set_parameter (libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | set_parameter (libMesh::ParsedFEMFunction< libMesh::Number > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | move_parameter (const libMesh::Number &old_parameter, libMesh::Number &new_parameter) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &old_func, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFEMFunction< libMesh::Number > &old_func, libMesh::ParsedFEMFunction< libMesh::Number > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | register_parameter (const std::string ¶m_name, libMesh::ParameterMultiAccessor< libMesh::Number > ¶m_pointer) const |
Each subclass will register its copy of an independent. More... | |
Protected Attributes | |
libMesh::Real | _kappa |
Constants specific to the calculation of the source function. More... | |
libMesh::Real | _cv1 |
libMesh::Real | _cv2 |
libMesh::Real | _cv3 |
libMesh::Real | _cb1 |
Spalart Allmaras model constants, the constant _cw1 are calculated, not cached. More... | |
libMesh::Real | _sigma |
libMesh::Real | _cb2 |
libMesh::Real | _r_lin |
Constants specific to the calculation of the destruction function. More... | |
libMesh::Real | _c_w2 |
libMesh::Real | _c_w3 |
libMesh::Real | _c_t3 |
Constants specific to the calculation of the trip function (but used in. More... | |
libMesh::Real | _c_t4 |
libMesh::Real | _c_n1 |
Constants specific to the calculation of the negative S-A model. More... | |
Private Member Functions | |
SpalartAllmarasParameters () | |
Additional Inherited Members | |
Static Public Attributes inherited from GRINS::ParameterUser | |
static std::string | zero_vector_function = std::string("{0}") |
A parseable function string with LIBMESH_DIM components, all 0. More... | |
Encapsulate Spalart-Allmaras model parameters.
This is mostly a container class, but there are a few helper functions here that are used in different places in SpalartAllmaras classes.
Definition at line 40 of file spalart_allmaras_parameters.h.
GRINS::SpalartAllmarasParameters::SpalartAllmarasParameters | ( | const GetPot & | input | ) |
Definition at line 37 of file spalart_allmaras_parameters.C.
References _c_n1, _c_t3, _c_t4, _c_w2, _c_w3, _cb1, _cb2, _cv1, _cv2, _cv3, _kappa, _r_lin, _sigma, GRINS::ParameterUser::set_parameter(), and GRINS::PhysicsNaming::spalart_allmaras().
|
inline |
Definition at line 46 of file spalart_allmaras_parameters.h.
|
private |
libMesh::Real GRINS::SpalartAllmarasParameters::destruction_fn | ( | libMesh::Number | nu, |
libMesh::Real | wall_distance, | ||
libMesh::Real | S_tilde, | ||
bool | infinite_distance | ||
) | const |
Definition at line 109 of file spalart_allmaras_parameters.C.
References _c_w2, _c_w3, _kappa, and _r_lin.
Referenced by GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady().
|
inline |
Helper function.
This expression appears in a couple of places so we provide a function for it
Definition at line 124 of file spalart_allmaras_parameters.h.
References get_cv1().
Referenced by source_fn().
|
inline |
Definition at line 96 of file spalart_allmaras_parameters.h.
References _c_n1.
|
inline |
Definition at line 90 of file spalart_allmaras_parameters.h.
References _c_t3.
|
inline |
Definition at line 93 of file spalart_allmaras_parameters.h.
References _c_t4.
|
inline |
Definition at line 81 of file spalart_allmaras_parameters.h.
References _c_w2.
|
inline |
Definition at line 84 of file spalart_allmaras_parameters.h.
References _c_w3.
|
inline |
Definition at line 72 of file spalart_allmaras_parameters.h.
References _cb1.
Referenced by GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady().
|
inline |
Definition at line 75 of file spalart_allmaras_parameters.h.
References _cb2.
Referenced by GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady().
|
inline |
Definition at line 63 of file spalart_allmaras_parameters.h.
References _cv1.
Referenced by fv1().
|
inline |
Definition at line 66 of file spalart_allmaras_parameters.h.
References _cv2.
|
inline |
Definition at line 69 of file spalart_allmaras_parameters.h.
References _cv3.
|
inline |
Definition at line 60 of file spalart_allmaras_parameters.h.
References _kappa.
Referenced by GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady().
|
inline |
Definition at line 87 of file spalart_allmaras_parameters.h.
References _r_lin.
|
inline |
Definition at line 78 of file spalart_allmaras_parameters.h.
References _sigma.
Referenced by GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady().
libMesh::Real GRINS::SpalartAllmarasParameters::source_fn | ( | libMesh::Number | nu, |
libMesh::Real | mu, | ||
libMesh::Real | wall_distance, | ||
libMesh::Real | vorticity_value, | ||
bool | infinite_distance | ||
) | const |
Definition at line 69 of file spalart_allmaras_parameters.C.
References _cv2, _cv3, _kappa, and fv1().
Referenced by GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady().
|
protected |
Constants specific to the calculation of the negative S-A model.
Definition at line 115 of file spalart_allmaras_parameters.h.
Referenced by get_c_n1(), and SpalartAllmarasParameters().
|
protected |
Constants specific to the calculation of the trip function (but used in.
Definition at line 112 of file spalart_allmaras_parameters.h.
Referenced by get_c_t3(), and SpalartAllmarasParameters().
|
protected |
Definition at line 112 of file spalart_allmaras_parameters.h.
Referenced by get_c_t4(), and SpalartAllmarasParameters().
|
protected |
Definition at line 108 of file spalart_allmaras_parameters.h.
Referenced by destruction_fn(), get_c_w2(), and SpalartAllmarasParameters().
|
protected |
Definition at line 108 of file spalart_allmaras_parameters.h.
Referenced by destruction_fn(), get_c_w3(), and SpalartAllmarasParameters().
|
protected |
Spalart Allmaras model constants, the constant _cw1 are calculated, not cached.
Definition at line 105 of file spalart_allmaras_parameters.h.
Referenced by get_cb1(), and SpalartAllmarasParameters().
|
protected |
Definition at line 105 of file spalart_allmaras_parameters.h.
Referenced by get_cb2(), and SpalartAllmarasParameters().
|
protected |
Definition at line 102 of file spalart_allmaras_parameters.h.
Referenced by get_cv1(), and SpalartAllmarasParameters().
|
protected |
Definition at line 102 of file spalart_allmaras_parameters.h.
Referenced by get_cv2(), source_fn(), and SpalartAllmarasParameters().
|
protected |
Definition at line 102 of file spalart_allmaras_parameters.h.
Referenced by get_cv3(), source_fn(), and SpalartAllmarasParameters().
|
protected |
Constants specific to the calculation of the source function.
Definition at line 102 of file spalart_allmaras_parameters.h.
Referenced by destruction_fn(), get_kappa(), source_fn(), and SpalartAllmarasParameters().
|
protected |
Constants specific to the calculation of the destruction function.
Definition at line 108 of file spalart_allmaras_parameters.h.
Referenced by destruction_fn(), get_r_lin(), and SpalartAllmarasParameters().
|
protected |
Definition at line 105 of file spalart_allmaras_parameters.h.
Referenced by get_sigma(), and SpalartAllmarasParameters().