30 #include "libmesh/getpot.h"
31 #include "libmesh/parsed_function.h"
44 std::string warning =
"WARNING: Use of this constructor is DEPRECATED.\n";
45 warning +=
" Please update to use constructor with input material name.\n";
49 if( !input.have_variable(
"Materials/Viscosity/mu") )
51 std::cerr<<
"No viscosity has been specified."<<std::endl;
68 (
const std::string & param_name,
73 this->_mu.register_parameter(param_name, param_pointer);
74 this->_sa_params.register_parameter(param_name, param_pointer);
81 libMesh::Real mu_physical = this->_mu(context, qp);
84 libMesh::Real nu = context.interior_value(this->_turbulence_vars.nu(),qp);
89 libmesh_warning(
"Negative turbulent viscosity encountered !");
97 libMesh::Real chi = nu/mu_physical;
100 libMesh::Real fv1 = _sa_params.fv1(chi);
103 libMesh::Real mu_turbulent = nu*fv1;
106 libMesh::Number mu_value = mu_turbulent + mu_physical;
libMesh::Real operator()(AssemblyContext &context, unsigned int qp) const
INSTANTIATE_TURBULENT_VISCOSITY_SUBCLASS(SpalartAllmarasViscosity)
#define grins_warning(message)
ParameterUser base class. Utility methods for subclasses.
SpalartAllmarasViscosity()
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.
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.