https://mooseframework.inl.gov
FVTwoVarContinuityConstraint.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
16 {
18  params.addClassDescription(
19  "Forces two variables to be equal on an interface for the finite volume method.");
20 
21  return params;
22 }
23 
26 {
27  if (&var1() == &var2())
28  paramError("variable1",
29  "FVTwoVarContinuityConstraint may not be applied on a single variable.");
30 }
31 
32 ADReal
34 {
37 }
const FaceInfo * _face_info
The face that this object is currently operating on.
const MooseVariableFV< Real > & var1() const
void paramError(const std::string &param, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
Definition: MooseBase.h:435
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
FVTwoVarContinuityConstraint(const InputParameters &params)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:46
registerMooseObject("MooseApp", FVTwoVarContinuityConstraint)
ADReal getBoundaryFaceValue(const FaceInfo &fi, const StateArg &state, bool correct_skewness=false) const
Retrieve the solution value at a boundary face.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
const MooseVariableFV< Real > & var2() const