18 params.
addParam<std::string>(
"function_name",
"g",
"actual name for g(eta_i)");
21 "Free Energy contribution that penalizes more than two order parameters being non-zero");
27 _function_name(getParam<
std::string>(
"function_name")),
28 _num_eta(coupledComponents(
"etas")),
29 _eta(coupledValues(
"etas")),
30 _prop_g(declareProperty<
Real>(_function_name)),
36 for (
unsigned int i = 0; i <
_num_eta; ++i)
39 for (
unsigned int i = 0; i <
_num_eta; ++i)
45 &declarePropertyDerivative<Real>(
_function_name, eta_name[i], eta_name[
j]);
55 for (
unsigned int i = 0; i <
_num_eta; ++i)
63 for (
unsigned int i = 0; i <
_num_eta; ++i)
64 for (
unsigned int j = 0;
j < i; ++
j)
65 for (
unsigned int k = 0;
k <
j; ++
k)
const unsigned int _num_eta
order parameters
static InputParameters validParams()
std::vector< std::vector< MaterialProperty< Real > * > > _prop_d2g
Material properties to store the second derivatives.
virtual void computeQpProperties()
const std::vector< const VariableValue * > _eta
std::vector< VariableName > coupledNames(const std::string &var_name) const
static InputParameters validParams()
ThirdPhaseSuppressionMaterial(const InputParameters ¶meters)
OPInterfaceBarrierMaterial is a Free Energy Penalty contribution material that acts on all of the eta...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("PhaseFieldApp", ThirdPhaseSuppressionMaterial)
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
MaterialProperty< Real > & _prop_g
Barrier functions and their drivatives.
std::vector< MaterialProperty< Real > * > _prop_dg
std::string _function_name
name of the function of eta (used to generate the material property names)
static const std::string k