https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
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
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", FVTwoVarContinuityConstraint)
const FaceInfo * _face_info
The face that this object is currently operating on.
const MooseVariableFV< Real > & var1() const
const MooseVariableFV< Real > & var2() const
FVTwoVarContinuityConstraint(const InputParameters &params)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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.
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:457
ADReal getBoundaryFaceValue(const FaceInfo &fi, const StateArg &state, bool correct_skewness=false) const
Retrieve the solution value at a boundary face.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.