28 params.addRequiredParam<MaterialPropertyName>(
"diffusivity",
"The diffusivity");
29 params.addRequiredParam<
Real>(
"alpha",
30 "The stabilization coefficient required for discontinuous Galerkin " 42 const std::set<SubdomainID> & block_ids,
43 const std::set<BoundaryID> & boundary_ids)
45 moose_obj, mvdi, ti, sys, assembly, tid, block_ids, boundary_ids),
46 _grad_u_sol(_u_var.adGradSln()),
47 _grad_scalar_phi_face(_u_var.gradPhiFace()),
48 _diff(this->getADMaterialProperty<
Real>(
"diffusivity")),
49 _face_diff(this->getFaceADMaterialProperty<
Real>(
"diffusivity")),
50 _alpha(moose_obj->getParam<
Real>(
"alpha"))
101 const auto scalar_value = dirichlet_value(
const ADMaterialProperty< Real > & _diff
The diffusivity in the element volume.
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.
Keeps track of stuff related to assembling.
const Real _alpha
Our stabilization coefficient.
virtual void scalarVolume() override
Computes a local residual vector for the weak form: (Dq, grad(w)) - (f, w) where D is the diffusivity...
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
const MooseArray< Real > & _JxW_face
Face quadrature weights including the transformed Jacobian.
const MooseArray< ADReal > & _lm_u_sol
Facet trace values at face quadrature points.
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
virtual Real hmax() const
Base class for a system (of equations)
Interface for objects that needs transient capabilities.
Every object that can be built by the factory should be derived from this class.
unsigned int n_points() const
const ADMaterialProperty< Real > & _face_diff
The diffusivity on the element faces.
static InputParameters validParams()
const MooseArray< Point > & _q_point_face
Physical face quadrature points.
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
const MooseArray< ADReal > & _u_sol
Element-interior scalar values at quadrature points.
const libMesh::QBase *const & _qrule
Element quadrature rule.
const Elem *const & _current_elem
Current element.
static InputParameters validParams()
const unsigned int & _current_side
Current element-side index.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void lmFace() override
Computes a local residual vector for the weak form: -<Dq*n, > + < * (u - {u}) * n * n...
DenseVector< ADReal > _scalar_re
Residual for the element-interior scalar equation.
IntRange< T > make_range(T beg, T end)
const MooseArray< std::vector< RealVectorValue > > & _grad_scalar_phi_face
Element-interior scalar test-function gradients evaluated on a face.
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)
virtual void scalarFace() override
Computes a local residual vector for the weak form: -<Dq*n, w> + < * (u - {u}) * n * n...
virtual void scalarDirichlet(const Moose::Functor< Real > &dirichlet_value) override
Weakly imposes a Dirichlet condition for the scalar field in the scalar field equation.
const TransientInterface & _ti
Transient state used to evaluate boundary functors.
const MooseArray< ADRealVectorValue > & _grad_u_sol
Element-interior scalar gradients at quadrature points.
const libMesh::QBase *const & _qrule_face
Face quadrature rule.
const MooseArray< std::vector< Real > > & _scalar_phi_face
Element-interior scalar test functions evaluated on a face.
auto index_range(const T &sizable)
Argument for requesting functor evaluation at quadrature point locations on an element side...
const std::vector< dof_id_type > & _u_dof_indices
Degree-of-freedom indices for the element-interior scalar.
const MooseArray< Real > & _JxW
Element quadrature weights including the transformed Jacobian.
const MooseArray< std::vector< RealVectorValue > > & _grad_scalar_phi
Gradients of the element-interior scalar test functions.
DenseVector< ADReal > _lm_re
Residual for the facet trace equation.