22 "num_L",
"specifies the number of complex L variables will be solved for");
23 params.
addRequiredParam<NonlinearVariableName>(
"n_name",
"Variable name used for the n variable");
24 params.
addRequiredParam<std::string>(
"L_name_base",
"Base name for the complex L variables");
25 params.
addParam<MaterialPropertyName>(
"mob_name",
"M",
"The mobility used for n in this model");
26 MooseEnum log_options(
"tolerance cancelation expansion");
28 "log_approach", log_options,
"Which approach will be used to handle the natural log");
29 params.
addParam<
Real>(
"tol", 1.0e-9,
"Tolerance used when the tolerance approach is chosen");
31 "n_exp_terms", 4.0,
"Number of terms used in the Taylor expansion of the natural log term");
33 "use_displaced_mesh",
false,
"Whether to use displaced mesh in the kernels");
39 _num_L(getParam<unsigned
int>(
"num_L")),
40 _L_name_base(getParam<
std::string>(
"L_name_base")),
41 _n_name(getParam<NonlinearVariableName>(
"n_name"))
50 poly_params.
set<NonlinearVariableName>(
"variable") =
_n_name;
51 poly_params.
set<
bool>(
"use_displaced_mesh") = getParam<bool>(
"use_displaced_mesh");
52 _problem->addKernel(
"TimeDerivative",
"IE_n", poly_params);
55 std::vector<VariableName> real_v(
_num_L);
56 for (
unsigned int l = 0; l <
_num_L; ++l)
62 poly_params.
set<NonlinearVariableName>(
"variable") =
_n_name;
63 poly_params.
set<std::vector<VariableName>>(
"v") = real_v;
64 _problem->addKernel(
"CHPFCRFF",
"CH_bulk_n", poly_params);
const NonlinearVariableName _n_name
InputParameters getValidParams(const std::string &name) const
registerMooseAction("PhaseFieldApp", CHPFCRFFSplitKernelAction, "add_kernel")
static InputParameters validParams()
const std::string _L_name_base
const unsigned int _num_L
CHPFCRFFSplitKernelAction(const InputParameters ¶ms)
std::string stringify(const T &t)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::shared_ptr< FEProblemBase > & _problem
const InputParameters & parameters() const
void ErrorVector unsigned int
static InputParameters validParams()