18 params.
addClassDescription(
"Double well phase transformation barrier free energy contribution.");
19 params.
addParam<std::string>(
"function_name",
"g",
"actual name for g(eta_i)");
22 "g_order", h_order,
"Polynomial order of the switching function h(eta)");
25 "Make the g zero in [0:1] so it only contributes to " 26 "enforcing the eta range and not to the phase " 27 "transformation barrier.");
34 _function_name(getParam<
std::string>(
"function_name")),
36 _well_only(getParam<bool>(
"well_only")),
37 _num_eta(coupledComponents(
"etas")),
38 _eta(coupledValues(
"etas")),
39 _prop_g(declareProperty<
Real>(_function_name)),
44 for (
unsigned int i = 0; i <
_num_eta; ++i)
46 const VariableName & eta_name =
coupledName(
"etas", i);
60 for (
unsigned int i = 0; i <
_num_eta; ++i)
74 g += n * n * (1.0 - n) * (1.0 - n);
77 (*
_prop_dg[i])[
_qp] = 2.0 * n * (n - 1.0) * (2.0 * n - 1.0);
std::vector< MaterialProperty< Real > * > _prop_dg
const unsigned int _num_eta
order parameters
virtual void computeQpProperties()
MooseEnum _g_order
Polynomial order of the barrier function .
virtual bool isCoupledConstant(const std::string &var_name) const
VariableName coupledName(const std::string &var_name, unsigned int comp=0) const
registerMooseObject("PhaseFieldApp", MultiBarrierFunctionMaterial)
MultiBarrierFunctionMaterial(const InputParameters ¶meters)
static InputParameters validParams()
const std::vector< const VariableValue * > _eta
std::string _function_name
name of the function of eta (used to generate the material property names)
Double well phase transformation barrier free energy contribution.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
bool _well_only
zero out g contribution in the eta interval [0:1]
static InputParameters validParams()
std::vector< MaterialProperty< Real > * > _prop_d2g
MaterialProperty< Real > & _prop_g
Barrier functions and their drivatives.