27 vector_tag_enum = vtags;
30 "variable",
"The name of the variable that this boundary condition applies to");
53 Moose::VarKindType::VAR_ANY,
54 Moose::VarFieldType::VAR_FIELD_STANDARD),
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);
105template <
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.");
131template Moose::FaceArg LinearFVBoundaryCondition::functorFaceArg<Moose::Functor<Real>>(
A class for requiring an object to be boundary restricted.
static InputParameters validParams()
Interface for objects that need to use distributions.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
An interface for producers of functor face arguments, e.g.
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.
This data structure is used to store geometric and variable related metadata about each cell face in ...
const Point & normal() const
Returns the unit normal vector for the face oriented outward from the face's elem element.
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.
const Elem * neighborPtr() const
const Elem * elemPtr() const
const Point & neighborCentroid() const
const Point & elemCentroid() const
Returns the element centroids of the elements on the elem and neighbor sides of the face.
const Point & faceCentroid() const
Returns the coordinates of the face centroid.
Interface for objects that need to use functions.
static InputParameters validParams()
const FaceInfo * _current_face_info
Pointer to the face info we are operating on right now.
const unsigned int _sys_num
Cache for the system number.
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.
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.
FaceInfo::VarFaceNeighbors _current_face_type
Face ownership information for the current face.
RealVectorValue computeCellToFaceVector() const
Computes the vector connecting the cell and boundary face centers.
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable object.
static InputParameters validParams()
LinearFVBoundaryCondition(const InputParameters ¶meters)
Class constructor.
virtual bool hasFaceSide(const FaceInfo &fi, bool fi_elem_side) const override
const unsigned int _var_num
Cache for the variable number.
Interface for notifications that the mesh has changed.
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...
Every object that can be built by the factory should be derived from this class.
static InputParameters validParams()
void addMooseVariableDependency(MooseVariableFieldBase *var)
Call this function to add the passed in MooseVariableFieldBase as a variable that this object depends...
Interface for objects that need to get values of MooseVariables.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
static InputParameters validParams()
Interface class for classes which interact with Postprocessors.
Generic class for solving transient nonlinear problems.
static InputParameters validParams()
Interface for objects that needs transient capabilities.
static InputParameters validParams()
Interface for objects that need to use UserObjects.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
A structure defining a "face" evaluation calling argument for Moose functors.