26 params.addRequiredParam<MaterialPropertyName>(
"diffusivity",
"The diffusivity");
27 params.addRequiredParam<Real>(
"alpha",
28 "The stabilization coefficient required for discontinuous Galerkin "
40 const std::set<SubdomainID> & block_ids,
41 const std::set<BoundaryID> & boundary_ids)
43 moose_obj, mvdi, ti, sys, assembly, tid, block_ids, boundary_ids),
44 _grad_u_sol(_u_var.adGradSln()),
45 _grad_scalar_phi_face(_u_var.gradPhiFace()),
46 _diff(this->getADMaterialProperty<Real>(
"diffusivity")),
47 _face_diff(this->getFaceADMaterialProperty<Real>(
"diffusivity")),
48 _alpha(moose_obj->getParam<Real>(
"alpha"))
82 for (
const auto i : index_range(
_lm_re))
99 const auto scalar_value = dirichlet_value(
Keeps track of stuff related to assembling.
const MooseArray< ADRealVectorValue > & _grad_u_sol
Element-interior scalar gradients at quadrature points.
virtual void scalarDirichlet(const Moose::Functor< Real > &dirichlet_value) override
Weakly imposes a Dirichlet condition for the scalar field in the scalar field equation.
DiffusionIPHDGAssemblyHelper(const MooseObject *const moose_obj, MooseVariableDependencyInterface *const mvdi, const TransientInterface *const ti, SystemBase &sys, const Assembly &assembly, const THREAD_ID tid, const std::set< SubdomainID > &block_ids, const std::set< BoundaryID > &boundary_ids)
const MooseArray< std::vector< RealVectorValue > > & _grad_scalar_phi_face
Element-interior scalar test-function gradients evaluated on a face.
virtual void scalarVolume() override
Computes a local residual vector for the weak form: (Dq, grad(w)) - (f, w) where D is the diffusivity...
const Real _alpha
Our stabilization coefficient.
virtual void scalarFace() override
Computes a local residual vector for the weak form: -<Dq*n, w> + <\tau * (u - \hat{u}) * n * n,...
const ADMaterialProperty< Real > & _face_diff
The diffusivity on the element faces.
const ADMaterialProperty< Real > & _diff
The diffusivity in the element volume.
virtual void lmFace() override
Computes a local residual vector for the weak form: -<Dq*n, \mu> + <\tau * (u - \hat{u}) * n * n,...
static InputParameters validParams()
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
const MooseArray< Real > & _JxW
Element quadrature weights including the transformed Jacobian.
DenseVector< ADReal > _scalar_re
Residual for the element-interior scalar equation.
const MooseArray< Point > & _q_point_face
Physical face quadrature points.
DenseVector< ADReal > _lm_re
Residual for the facet trace equation.
const TransientInterface & _ti
Transient state used to evaluate boundary functors.
const std::vector< dof_id_type > & _u_dof_indices
Degree-of-freedom indices for the element-interior scalar.
static InputParameters validParams()
const MooseArray< ADReal > & _lm_u_sol
Facet trace values at face quadrature points.
const libMesh::QBase *const & _qrule
Element quadrature rule.
const MooseArray< Point > & _normals
Outward unit normals on the current face.
const MooseArray< std::vector< Real > > & _lm_phi_face
Facet trace test functions evaluated on a face.
const MooseArray< ADReal > & _u_sol
Element-interior scalar values at quadrature points.
const MooseArray< std::vector< RealVectorValue > > & _grad_scalar_phi
Gradients of the element-interior scalar test functions.
const unsigned int & _current_side
Current element-side index.
const MooseArray< std::vector< Real > > & _scalar_phi_face
Element-interior scalar test functions evaluated on a face.
const libMesh::QBase *const & _qrule_face
Face quadrature rule.
const MooseArray< Real > & _JxW_face
Face quadrature weights including the transformed Jacobian.
const Elem *const & _current_elem
Current element.
Every object that can be built by the factory should be derived from this class.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
Base class for a system (of equations)
Interface for objects that needs transient capabilities.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
unsigned int n_points() const
Argument for requesting functor evaluation at quadrature point locations on an element side.