11#include "libmesh/utility.h"
26 _vals(coupledValues(
"v")),
27 _order(coupledComponents(
"v")),
28 _a(getMaterialProperty<Real>(
"a")),
29 _b(getMaterialProperty<Real>(
"b"))
33 std::string coeff_name_base =
"C";
35 for (
unsigned int i = 0; i <
_order; ++i)
37 std::string coeff_name = coeff_name_base;
38 std::stringstream out;
40 coeff_name.append(out.str());
42 _coeff[i] = &getMaterialProperty<Real>(coeff_name);
53 for (
unsigned int i = 1; i <
_order; ++i)
registerMooseObject("PhaseFieldApp", PFCEnergyDensity)
static InputParameters validParams()
const ConsoleStream _console
const MaterialProperty< Real > & _b
PFCEnergyDensity(const InputParameters ¶meters)
virtual Real computeValue()
const std::vector< const VariableValue * > _vals
static InputParameters validParams()
std::vector< const MaterialProperty< Real > * > _coeff
const MaterialProperty< Real > & _a