Go to the documentation of this file.
16 InputParameters params = validParams<GeneralUserObject>();
17 params.addClassDescription(
18 "Abstract base class for computing and caching internal or boundary fluxes for RDG");
23 : ThreadedGeneralUserObject(parameters),
24 _cached_flux_elem_id(
libMesh::invalid_uint),
25 _cached_flux_side_id(
libMesh::invalid_uint),
26 _cached_jacobian_elem_id(
libMesh::invalid_uint),
27 _cached_jacobian_side_id(
libMesh::invalid_uint)
55 const std::vector<Real> &
57 const dof_id_type ielem,
58 const std::vector<Real> & uvec1,
59 const std::vector<Real> & uvec2,
60 const RealVectorValue & normal)
const
72 const DenseMatrix<Real> &
74 const unsigned int iside,
75 const dof_id_type ielem,
76 const std::vector<Real> & uvec1,
77 const std::vector<Real> & uvec2,
78 const RealVectorValue & normal)
const
88 if (get_first_jacobian)
DenseMatrix< Real > _jac1
Jacobian matrix contribution to the "left" cell.
unsigned int _cached_flux_elem_id
element ID of the cached flux values
virtual const DenseMatrix< Real > & getJacobian(const bool get_first_jacobian, const unsigned int iside, const dof_id_type ielem, const std::vector< Real > &uvec1, const std::vector< Real > &uvec2, const RealVectorValue &normal) const
Gets the flux Jacobian matrix for an element/side combination.
virtual void initialize() override
unsigned int _cached_jacobian_elem_id
element ID of the cached Jacobian values
virtual const std::vector< Real > & getFlux(const unsigned int iside, const dof_id_type ielem, const std::vector< Real > &uvec1, const std::vector< Real > &uvec2, const RealVectorValue &normal) const
Gets the flux vector for an element/side combination.
virtual void calcFlux(const std::vector< Real > &uvec1, const std::vector< Real > &uvec2, const RealVectorValue &normal, std::vector< Real > &flux) const =0
Calculates the flux vector given "left" and "right" states.
virtual void threadJoin(const UserObject &) override
DenseMatrix< Real > _jac2
Jacobian matrix contribution to the "right" cell.
unsigned int _cached_jacobian_side_id
side ID of the cached Jacobian values
virtual void execute() override
RDGFluxBase(const InputParameters ¶meters)
std::vector< Real > _flux
flux vector
virtual void finalize() override
InputParameters validParams< RDGFluxBase >()
unsigned int _cached_flux_side_id
side ID of the cached flux values
virtual void calcJacobian(const std::vector< Real > &uvec1, const std::vector< Real > &uvec2, const RealVectorValue &normal, DenseMatrix< Real > &jac1, DenseMatrix< Real > &jac2) const =0
Calculates the flux Jacobian matrices given "left" and "right" states.