34 #include "libmesh/getpot.h"
47 std::string warning =
"WARNING: Use of this constructor is DEPRECATED.\n";
48 warning +=
" Please update to use constructor with input material name.\n";
53 "Materials/Viscosity/mu",
56 std::string viscosity_function = input(
"Materials/Viscosity/mu",std::string(
"0"));
60 libmesh_error_msg(
"ERROR: Detected '0' function for ParsedConductivity!");
70 std::string viscosity_function =
"0";
73 if( input.have_variable(
"Materials/"+material+
"/Viscosity/value") )
76 "Materials/"+material+
"/Viscosity/value",
79 viscosity_function = input(
"Materials/"+material+
"/Viscosity/value",std::string(
"0"));
82 else if( input.have_variable(
"Materials/Viscosity/mu") )
87 "Materials/Viscosity/mu",
90 viscosity_function = input(
"Materials/Viscosity/mu",std::string(
"0"));
95 libmesh_error_msg(
"Error: Could not find either Materials/"+material+
"/Viscosity/value or Materials/Viscosity/mu");
100 libmesh_error_msg(
"ERROR: Detected '0' function for ParsedConductivity!");
libMesh::ParsedFunction< libMesh::Number > _func
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.
void old_mu_warning() const
virtual ~ParsedViscosity()
#define grins_warning(message)
Base class for viscosity models.
bool check_func_nonzero(const std::string &function) const
Returns true if function string is nonzero.
ParameterUser base class. Utility methods for subclasses.
Base class for material properties based on ParsedFunction.
void check_input_consistency(const GetPot &input, const std::string &material) const