https://mooseframework.inl.gov
ConservativeAdvectionBC.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 "GenericIntegratedBC.h"
13 
14 class Function;
15 
21 template <bool is_ad>
23 {
24 public:
26 
28 
29 protected:
30  virtual GenericReal<is_ad> computeQpResidual() override;
31 
34 
37 
40 
43 
45  const Function * const _primal_dirichlet;
46 
49 
51 };
52 
54 {
55 public:
57 
59 
61 
62 protected:
63  virtual Real computeQpJacobian() override;
64 };
65 
Moose::GenericType< Real, is_ad > GenericReal
Definition: MooseTypes.h:649
Base class for function objects.
Definition: Function.h:36
const bool _user_supplied_adv_quant
Flag to check if user has supplied an advective quantity or not.
ConservativeAdvectionBCTempl(const InputParameters &parameters)
static InputParameters validParams()
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
ConservativeAdvectionBCTempl< true > ADConservativeAdvectionBC
static InputParameters validParams()
const GenericMaterialProperty< Real, is_ad > & _primal_coeff
Coefficient for multiplying the primal Dirichlet value.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual GenericReal< is_ad > computeQpResidual() override
Method for computing the residual at quadrature points.
const Function *const _velocity_function
The velocity as a function.
const MooseArray< GenericReal< is_ad > > & _adv_quant
The advected quantity.
const Function *const _primal_dirichlet
Dirichlet value for the primal variable.
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
forward declarations
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ConservativeAdvectionBC(const InputParameters &parameters)
const GenericMaterialProperty< RealVectorValue, is_ad > *const _velocity_mat_prop
The velocity as a material property.
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
A boundary condition for when the advection term is integrated by parts.