34 #include "libmesh/getpot.h"
45 std::string warning =
"WARNING: Use of this constructor is DEPRECATED.\n";
46 warning +=
" Please update to use constructor with input material name.\n";
50 if( !input.have_variable(
"Materials/Conductivity/Pr") )
52 libmesh_error_msg(
"Error: Must specify Prandtl number for constant_prandtl conductivity model!");
56 (
_Pr, input,
"Materials/Conductivity/Pr",
_Pr);
65 "Materials/"+material+
"/PrandtlNumber/value",
66 "Materials/Conductivity/Pr" );
69 if( input.have_variable(
"Materials/"+material+
"/PrandtlNumber/value") )
72 (
_Pr, input,
"Materials/"+material+
"/PrandtlNumber/value",
_Pr);
75 else if( input.have_variable(
"Materials/Conductivity/Pr") )
78 "PrandtlNumber/value" );
81 (
_Pr, input,
"Materials/Conductivity/Pr",
_Pr);
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.
#define grins_warning(message)
ConstantPrandtlConductivity(const GetPot &input, const std::string &material)
Constructor with specified material.
ParameterUser base class. Utility methods for subclasses.
static void dep_input_warning(const std::string &old_option, const std::string &property)
Helper function for parsing/maintaing backward compatibility.
static void duplicate_input_test(const GetPot &input, const std::string &option1, const std::string &option2)
Helper function for parsing/maintaing backward compatibility.
~ConstantPrandtlConductivity()