https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14class Function;
15
21template <bool is_ad>
52
54{
55public:
57
59
61
62protected:
63 virtual Real computeQpJacobian() override;
64};
65
ConservativeAdvectionBCTempl< true > ADConservativeAdvectionBC
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
Moose::GenericType< Real, is_ad > GenericReal
Definition MooseTypes.h:698
A boundary condition for when the advection term is integrated by parts.
const bool _user_supplied_adv_quant
Flag to check if user has supplied an advective quantity or not.
const MooseArray< GenericReal< is_ad > > & _adv_quant
The advected quantity.
const Function *const _primal_dirichlet
Dirichlet value for the primal variable.
const GenericMaterialProperty< Real, is_ad > & _primal_coeff
Coefficient for multiplying the primal Dirichlet value.
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 GenericMaterialProperty< RealVectorValue, is_ad > *const _velocity_mat_prop
The velocity as a material property.
static InputParameters validParams()
static InputParameters validParams()
virtual Real computeQpJacobian() override
Method for computing the diagonal Jacobian at quadrature points.
Base class for function objects.
Definition Function.h:30
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
forward declarations
Definition MooseArray.h:18
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131