33 #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";
51 if( !input.have_variable(
"Physics/MooneyRivlin/C1") ||
52 !input.have_variable(
"Physics/MooneyRivlin/C2") )
54 std::cerr <<
"Error: Must specify both C1 and C2 for Mooney-Rivlin material." << std::endl
55 <<
" They can be specified in Physics/MooneyRivlin/C1 and Physics/MooneyRivlin/C2" << std::endl;
60 (
_C1, input,
"Physics/MooneyRivlin/C1",
_C1);
63 (
_C2, input,
"Physics/MooneyRivlin/C2",
_C2);
74 "Materials/"+material+
"/StressStrainLaw/MooneyRivlin/C1",
75 "Physics/MooneyRivlin/C1");
77 "Materials/"+material+
"/StressStrainLaw/MooneyRivlin/C2",
78 "Physics/MooneyRivlin/C2");
81 if( input.have_variable(
"Materials/"+material+
"/StressStrainLaw/MooneyRivlin/C1") &&
82 input.have_variable(
"Materials/"+material+
"/StressStrainLaw/MooneyRivlin/C2") )
85 (
_C1, input,
"Materials/"+material+
"/StressStrainLaw/MooneyRivlin/C1",
_C1);
87 (
_C2, input,
"Materials/"+material+
"/StressStrainLaw/MooneyRivlin/C2",
_C2);
90 else if( input.have_variable(
"Physics/MooneyRivlin/C1") &&
91 input.have_variable(
"Physics/MooneyRivlin/C2") )
94 "StressStrainLaw/MooneyRivlin/C1" );
96 "StressStrainLaw/MooneyRivlin/C2" );
99 (
_C1, input,
"Physics/MooneyRivlin/C1",
_C1);
101 (
_C2, input,
"Physics/MooneyRivlin/C2",
_C2);
105 libmesh_error_msg(
"ERROR: Could not find consistent Mooney-Rivlin input!");
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)
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.