21 "$(\\vec{J} = -D \\nabla C)$.");
26 "The name of the diffusivity material property that will be used in the flux computation.");
32 _use_normal(getParam<
MooseEnum>(
"component") ==
"normal"),
33 _component(getParam<
MooseEnum>(
"component")),
34 _grad_u(coupledGradient(
"diffusion_variable")),
35 _diffusion_coef(hasMaterialProperty<
Real>(
"diffusivity")
36 ? &getMaterialProperty<
Real>(
"diffusivity")
38 _ad_diffusion_coef(!_diffusion_coef ? &getADMaterialProperty<
Real>(
"diffusivity") : nullptr),
39 _normals(_assembly.normals())
42 paramError(
"boundary",
"A boundary must be provided if using the normal component!");
const ADMaterialProperty< Real > *const _ad_diffusion_coef
Holds the diffusivity from the material system if AD.
const bool _use_normal
Whether the normal component has been selected.
const int _component
Will hold 0, 1, or 2 corresponding to x, y, or z.
const MaterialProperty< Real > *const _diffusion_coef
Holds the diffusivity from the material system if non-AD.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
DiffusionFluxAux(const InputParameters ¶meters)
registerMooseObject("MooseApp", DiffusionFluxAux)
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
const MooseArray< Point > & _normals
normals at quadrature points
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
virtual Real computeValue()
Compute and return the value of the aux variable.
Auxiliary kernel responsible for computing the components of the flux vector in diffusion problems...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const OutputTools< Real >::VariableGradient & gradient()
The gradient of the variable this object is operating on.
unsigned int _qp
Quadrature point index.
static InputParameters validParams()
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
static InputParameters validParams()
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.