18 params.
addClassDescription(
"Computes the residual for diffusion operator across an interface for "
19 "the finite volume method.");
21 "The diffusion coefficient on the 1st subdomain");
23 "The diffusion coefficient on the 2nd subdomain");
24 MooseEnum coeff_interp_method(
"average harmonic",
"harmonic");
26 "coeff_interp_method",
28 "Switch that can select face interpolation method for diffusion coefficients.");
34 _coeff1(getFunctor<
ADReal>(
"coeff1")),
35 _coeff2(getFunctor<
ADReal>(
"coeff2"))
37 const auto & interp_method = getParam<MooseEnum>(
"coeff_interp_method");
38 if (interp_method ==
"average")
40 else if (interp_method ==
"harmonic")
49 one_over_gradient_support /= (one_over_gradient_support * one_over_gradient_support);
53 one_over_gradient_support;
58 return -diffusivity *
normal() * gradient;
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", FVDiffusionInterface)
static InputParameters validParams()
const Moose::Functor< ADReal > & _coeff2
FVDiffusionInterface(const InputParameters ¶ms)
Moose::FV::InterpMethod _coeff_interp_method
Decides if a geometric arithmetic or harmonic average is used for the face interpolation of the diffu...
const Moose::Functor< ADReal > & _coeff1
ADReal computeQpResidual() override
Base class for creating kernels that interface physics between subdomains.
const Elem & elem2() const
const Elem & elem1() const
static InputParameters validParams()
Moose::ElemArg elemArg2(bool correct_skewness=false) const
Moose::ElemArg elemArg1(bool correct_skewness=false) const
ADReal interpolateValue(Moose::FV::InterpMethod method, const ADReal &value1, const ADReal &value2) const
Interpolate values from the two user-defined sides to the face.
const Point & centroid1() const
const MooseVariableFV< Real > & var1() const
const Point & centroid2() const
const MooseVariableFV< Real > & var2() const
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
ADReal getElemValue(const Elem *elem, const StateArg &state) const
Get the solution value for the provided element and seed the derivative for the corresponding dof ind...
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
@ HarmonicAverage
1/(gc/elem+(1-gc)/neighbor)
@ Average
gc*elem+(1-gc)*neighbor