https://mooseframework.inl.gov
FVDivergence.h
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 
10 #pragma once
11 
12 #include "FVFluxKernel.h"
13 
22 class FVDivergence : public FVFluxKernel
23 {
24 public:
26  FVDivergence(const InputParameters & params);
27 
28 protected:
29  virtual ADReal computeQpResidual() override;
30 
33 };
virtual ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
Definition: FVDivergence.C:31
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:46
const Moose::Functor< ADRealVectorValue > & _vector_field
The vector field whose divergence is added to the residual.
Definition: FVDivergence.h:32
FVDivergence(const InputParameters &params)
Definition: FVDivergence.C:25
FVDivergence implements a standard divergence term:
Definition: FVDivergence.h:22
FVFluxKernel is used for calculating residual contributions from numerical fluxes from surface integr...
Definition: FVFluxKernel.h:30
static InputParameters validParams()
Definition: FVDivergence.C:15