27 vector_tag_enum = vtags;
30 "variable",
"The name of the variable that this boundary condition applies to");
59 _subproblem(*getCheckedPointerParam<
SubProblem *>(
"_subproblem")),
60 _mesh(_subproblem.
mesh()),
61 _fv_problem(*getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base")),
62 _var(*mooseLinearVariableFV()),
64 _var_num(_var.number()),
65 _sys_num(_sys.number())
83 const bool correct_skewness)
const 85 mooseAssert(fi,
"FaceInfo should not be null!");
86 return makeFace(*fi, limiter_type,
true, correct_skewness);
105 template <
typename FunctorType>
110 const bool correct_skewness)
const 113 const auto on_elem = functor.hasFaceSide(*fi,
true);
114 const auto on_neighbor = functor.hasFaceSide(*fi,
false);
116 if (on_elem && on_neighbor)
117 face.face_side =
nullptr;
119 face.face_side = fi->
elemPtr();
120 else if (on_neighbor)
124 "The functor '", functor.functorName(),
"' is not defined on either side of the face.");
131 template Moose::FaceArg LinearFVBoundaryCondition::functorFaceArg<Moose::Functor<Real>>(
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
virtual bool hasFaceSide(const FaceInfo &fi, bool fi_elem_side) const override
RealVectorValue computeCellToFaceVector() const
Computes the vector connecting the cell and boundary face centers.
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
A class for requiring an object to be boundary restricted.
Moose::FaceArg functorFaceArg(const FunctorType &functor, const FaceInfo *fi, Moose::FV::LimiterType limiter_type=Moose::FV::LimiterType::CentralDifference, bool correct_skewness=false) const
Determine a face argument for evaluating a functor on a face.
Real computeCellToFaceDistance() const
Compute the distance between the cell center and the face.
const unsigned int _sys_num
Cache for the system number.
const Point & faceCentroid() const
Returns the coordinates of the face centroid.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
const Point & neighborCentroid() const
static InputParameters validParams()
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
static InputParameters validParams()
Interface for objects that needs transient capabilities.
This data structure is used to store geometric and variable related metadata about each cell face in ...
const Elem * neighborPtr() const
Interface for notifications that the mesh has changed.
const Point & elemCentroid() const
Returns the element centroids of the elements on the elem and neighbor sides of the face...
A structure defining a "face" evaluation calling argument for Moose functors.
Every object that can be built by the factory should be derived from this class.
An interface for producers of functor face arguments, e.g.
Interface for objects that need to use distributions.
VarKindType
Framework-wide stuff.
LinearFVBoundaryCondition(const InputParameters ¶meters)
Class constructor.
FaceInfo::VarFaceNeighbors _current_face_type
Face ownership information for the current face.
const unsigned int _var_num
Cache for the variable number.
Interface for objects that need to use UserObjects.
const Point & normal() const
Returns the unit normal vector for the face oriented outward from the face's elem element...
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable object.
const Elem * elemPtr() const
void addMooseVariableDependency(MooseVariableFieldBase *var)
Call this function to add the passed in MooseVariableFieldBase as a variable that this object depends...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
const FaceInfo * _current_face_info
Pointer to the face info we are operating on right now.
Interface for objects that need to get values of MooseVariables.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
static InputParameters validParams()
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
Moose::FaceArg singleSidedFaceArg(const FaceInfo *fi, Moose::FV::LimiterType limiter_type=Moose::FV::LimiterType::CentralDifference, bool correct_skewness=false) const
Determine the single sided face argument when evaluating a functor on a face.
static InputParameters validParams()
static InputParameters validParams()
static InputParameters validParams()
Interface for objects that need to use functions.
const Elem & get(const ElemType type_in)
Moose::FaceArg makeFace(const FaceInfo &fi, const Moose::FV::LimiterType limiter_type, const bool elem_is_upwind, const bool correct_skewness=false, const Moose::StateArg *state_limiter=nullptr) const
Create a functor face argument from provided component arguments.
Interface class for classes which interact with Postprocessors.
static InputParameters validParams()
VarFaceNeighbors faceType(const std::pair< unsigned int, unsigned int > &var_sys) const
Returns which side(s) the given variable-system number pair is defined on for this face...