#include <PFCEnergyDensity.h>
|
std::vector< const VariableValue * > | _vals |
|
std::vector< const MaterialProperty< Real > * > | _coeff |
|
unsigned int | _order |
|
const MaterialProperty< Real > & | _a |
|
const MaterialProperty< Real > & | _b |
|
Definition at line 20 of file PFCEnergyDensity.h.
◆ PFCEnergyDensity()
PFCEnergyDensity::PFCEnergyDensity |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 24 of file PFCEnergyDensity.C.
25 : AuxKernel(parameters),
26 _order(coupledComponents(
"v")),
27 _a(getMaterialProperty<Real>(
"a")),
28 _b(getMaterialProperty<Real>(
"b"))
33 std::string coeff_name_base =
"C";
35 for (
unsigned int i = 0; i <
_order; ++i)
37 _vals[i] = &coupledValue(
"v", i);
38 std::string coeff_name = coeff_name_base;
39 std::stringstream out;
41 coeff_name.append(out.str());
42 _console << coeff_name << std::endl;
43 _coeff[i] = &getMaterialProperty<Real>(coeff_name);
◆ computeValue()
Real PFCEnergyDensity::computeValue |
( |
| ) |
|
|
protectedvirtual |
Definition at line 48 of file PFCEnergyDensity.C.
50 Real val = Utility::pow<2>((*
_vals[0])[_qp]) * (1.0 - (*
_coeff[0])[_qp]) / 2.0;
54 for (
unsigned int i = 1; i <
_order; ++i)
57 val += (
_b[_qp] / 12.0 * Utility::pow<4>((*
_vals[0])[_qp])) -
58 (
_a[_qp] / 6.0 * Utility::pow<3>((*
_vals[0])[_qp]));
◆ _a
const MaterialProperty<Real>& PFCEnergyDensity::_a |
|
protected |
◆ _b
const MaterialProperty<Real>& PFCEnergyDensity::_b |
|
protected |
◆ _coeff
std::vector<const MaterialProperty<Real> *> PFCEnergyDensity::_coeff |
|
protected |
◆ _order
unsigned int PFCEnergyDensity::_order |
|
protected |
◆ _vals
std::vector<const VariableValue *> PFCEnergyDensity::_vals |
|
protected |
The documentation for this class was generated from the following files: