GRINS-0.8.0
|
#include <spalart_allmaras_stab_helper.h>
Public Member Functions | |
SpalartAllmarasStabilizationHelper (const std::string &helper_name, const GetPot &input) | |
~SpalartAllmarasStabilizationHelper () | |
libMesh::Real | compute_tau_spalart (AssemblyContext &c, unsigned int qp, libMesh::RealGradient &g, libMesh::RealTensor &G, libMesh::Real rho, libMesh::Gradient U, libMesh::Real mu, bool is_steady) const |
void | compute_tau_spalart_and_derivs (AssemblyContext &c, unsigned int qp, libMesh::RealGradient &g, libMesh::RealTensor &G, libMesh::Real rho, libMesh::Gradient U, libMesh::Real T, libMesh::Real &tau_M, libMesh::Real &d_tau_M_d_rho, libMesh::Gradient &d_tau_M_d_U, bool is_steady) const |
libMesh::Real | compute_tau (AssemblyContext &c, unsigned int qp, libMesh::Real mat_prop_sq, libMesh::RealGradient &g, libMesh::RealTensor &G, libMesh::Real rho, libMesh::Gradient U, bool is_steady) const |
void | compute_tau_and_derivs (AssemblyContext &c, unsigned int qp, libMesh::Real mat_prop_sq, libMesh::RealGradient &g, libMesh::RealTensor &G, libMesh::Real rho, libMesh::Gradient U, libMesh::Real &tau, libMesh::Real &d_tau_d_rho, libMesh::Gradient &d_tau_d_U, bool is_steady) const |
libMesh::Real | compute_res_spalart_steady (AssemblyContext &context, unsigned int qp, const libMesh::Real rho, const libMesh::Real mu, const libMesh::Real distance_qp, const bool infinite_distance) const |
void | compute_res_spalart_steady_and_derivs (AssemblyContext &context, unsigned int qp, const libMesh::Real rho, const libMesh::Real mu, libMesh::Gradient &res_M, libMesh::Tensor &d_res_M_dgradp, libMesh::Tensor &d_res_M_dU, libMesh::Gradient &d_res_Muvw_dgraduvw, libMesh::Tensor &d_res_Muvw_dhessuvw) const |
libMesh::Real | compute_res_spalart_transient (AssemblyContext &context, unsigned int qp, const libMesh::Real rho) const |
void | compute_res_spalart_transient_and_derivs (AssemblyContext &context, unsigned int qp, const libMesh::Real rho, libMesh::RealGradient &res_M, libMesh::Real &d_res_Muvw_duvw) const |
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... | |
Public Member Functions inherited from GRINS::StabilizationHelper | |
StabilizationHelper (const std::string &helper_name) | |
~StabilizationHelper () | |
libMesh::RealGradient | compute_g (libMesh::FEBase *fe, AssemblyContext &c, unsigned int qp) const |
libMesh::RealTensor | compute_G (libMesh::FEBase *fe, AssemblyContext &c, unsigned int qp) 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... | |
Protected Attributes | |
libMesh::Real | _C |
libMesh::Real | _tau_factor |
const VelocityVariable & | _flow_vars |
const PressureFEVariable & | _press_var |
const TurbulenceFEVariables & | _turbulence_vars |
SpalartAllmarasHelper | _spalart_allmaras_helper |
SpalartAllmarasParameters | _sa_params |
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... | |
Definition at line 46 of file spalart_allmaras_stab_helper.h.
GRINS::SpalartAllmarasStabilizationHelper::SpalartAllmarasStabilizationHelper | ( | const std::string & | helper_name, |
const GetPot & | input | ||
) |
Definition at line 43 of file spalart_allmaras_stab_helper.C.
References _C, _tau_factor, and GRINS::ParameterUser::set_parameter().
|
inline |
Definition at line 52 of file spalart_allmaras_stab_helper.h.
libMesh::Real GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady | ( | AssemblyContext & | context, |
unsigned int | qp, | ||
const libMesh::Real | rho, | ||
const libMesh::Real | mu, | ||
const libMesh::Real | distance_qp, | ||
const bool | infinite_distance | ||
) | const |
Definition at line 66 of file spalart_allmaras_stab_helper.C.
References _flow_vars, _sa_params, _spalart_allmaras_helper, _turbulence_vars, GRINS::SpalartAllmarasParameters::destruction_fn(), GRINS::MultcomponentVectorVariable::dim(), GRINS::SpalartAllmarasParameters::get_cb1(), GRINS::SpalartAllmarasParameters::get_cb2(), GRINS::SpalartAllmarasParameters::get_kappa(), GRINS::SpalartAllmarasParameters::get_sigma(), GRINS::TurbulenceFEVariables::nu(), GRINS::SpalartAllmarasParameters::source_fn(), GRINS::MultcomponentVectorVariable::u(), GRINS::MultcomponentVectorVariable::v(), GRINS::SpalartAllmarasHelper::vorticity(), and GRINS::MultcomponentVectorVariable::w().
void GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_steady_and_derivs | ( | AssemblyContext & | context, |
unsigned int | qp, | ||
const libMesh::Real | rho, | ||
const libMesh::Real | mu, | ||
libMesh::Gradient & | res_M, | ||
libMesh::Tensor & | d_res_M_dgradp, | ||
libMesh::Tensor & | d_res_M_dU, | ||
libMesh::Gradient & | d_res_Muvw_dgraduvw, | ||
libMesh::Tensor & | d_res_Muvw_dhessuvw | ||
) | const |
Definition at line 117 of file spalart_allmaras_stab_helper.C.
libMesh::Real GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_transient | ( | AssemblyContext & | context, |
unsigned int | qp, | ||
const libMesh::Real | rho | ||
) | const |
Definition at line 131 of file spalart_allmaras_stab_helper.C.
References _turbulence_vars, and GRINS::TurbulenceFEVariables::nu().
void GRINS::SpalartAllmarasStabilizationHelper::compute_res_spalart_transient_and_derivs | ( | AssemblyContext & | context, |
unsigned int | qp, | ||
const libMesh::Real | rho, | ||
libMesh::RealGradient & | res_M, | ||
libMesh::Real & | d_res_Muvw_duvw | ||
) | const |
Definition at line 140 of file spalart_allmaras_stab_helper.C.
|
inline |
Definition at line 184 of file spalart_allmaras_stab_helper.h.
References _C, and _tau_factor.
Referenced by compute_tau_spalart().
|
inline |
Definition at line 204 of file spalart_allmaras_stab_helper.h.
|
inline |
Definition at line 151 of file spalart_allmaras_stab_helper.h.
References compute_tau().
|
inline |
Definition at line 165 of file spalart_allmaras_stab_helper.h.
|
virtual |
Each subclass will register its copy of an independent.
Reimplemented from GRINS::ParameterUser.
Definition at line 59 of file spalart_allmaras_stab_helper.C.
References GRINS::ParameterUser::register_parameter().
|
protected |
Definition at line 135 of file spalart_allmaras_stab_helper.h.
Referenced by compute_tau(), and SpalartAllmarasStabilizationHelper().
|
protected |
Definition at line 137 of file spalart_allmaras_stab_helper.h.
Referenced by compute_res_spalart_steady().
|
protected |
Definition at line 138 of file spalart_allmaras_stab_helper.h.
|
protected |
Definition at line 144 of file spalart_allmaras_stab_helper.h.
Referenced by compute_res_spalart_steady().
|
protected |
Definition at line 142 of file spalart_allmaras_stab_helper.h.
Referenced by compute_res_spalart_steady().
|
protected |
Definition at line 135 of file spalart_allmaras_stab_helper.h.
Referenced by compute_tau(), and SpalartAllmarasStabilizationHelper().
|
protected |
Definition at line 140 of file spalart_allmaras_stab_helper.h.
Referenced by compute_res_spalart_steady(), and compute_res_spalart_transient().