https://mooseframework.inl.gov
ADConservativeAdvectionBC.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 "ADIntegratedBC.h"
13 
14 class Function;
15 
22 {
23 public:
25 
27 
28 protected:
29  virtual ADReal computeQpResidual() override;
30 
33 
36 
39 
41  const Function * const _primal_dirichlet;
42 
45 };
Base class for function objects.
Definition: Function.h:36
const Function *const _velocity_function
The velocity as a function.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:127
const Function *const _primal_dirichlet
Dirichlet value for the primal variable.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual ADReal computeQpResidual() override
Compute this IntegratedBC's contribution to the residual at the current quadrature point...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:46
ADConservativeAdvectionBC(const InputParameters &parameters)
const ADMaterialProperty< Real > & _primal_coeff
Coefficient for multiplying the primal Dirichlet value.
Base class for deriving any boundary condition of a integrated type.
const ADMaterialProperty< RealVectorValue > *const _velocity_mat_prop
The velocity as a material property.
const MooseArray< ADReal > & _adv_quant
The advected quantity.
static InputParameters validParams()
A boundary condition for when the advection term is integrated by parts.