19 params.addClassDescription(
"Weakly imposes Dirichlet boundary conditions for the velocity for a "
20 "hybridized discretization of the Navier-Stokes equations");
21 params.addRequiredParam<MooseFunctorName>(
"dirichlet_u",
22 "The Dirichlet value for the x-component of velocity");
23 params.addRequiredParam<MooseFunctorName>(
"dirichlet_v",
24 "The Dirichlet value for the y-component of velocity");
25 params.addParam<MooseFunctorName>(
26 "dirichlet_w", 0,
"The Dirichlet value for the z-component of velocity");
27 params.renameParam(
"variable",
"u",
"The x-component of velocity");
35 _cached_side(
libMesh::invalid_uint)
39 "For a 3D simulation, the Dirichlet value of the z-velocity must be supplied");
registerMooseObject("NavierStokesApp", NavierStokesLHDGVelocityDirichletBC)
const std::vector< dof_id_type > & _qu_dof_indices
void createIdentityResidual(const MooseArray< Real > &JxW, const libMesh::QBase &qrule, const MooseArray< std::vector< Real > > &phi, const MooseArray< Number > &sol, DenseVector< Number > &re)
const MooseVariableFE< Real > & _u_var
void createIdentityJacobian(const MooseArray< Real > &JxW, const libMesh::QBase &qrule, const MooseArray< std::vector< Real > > &phi, DenseMatrix< Number > &ke)
const MooseArray< Number > & _u_sol
const std::vector< dof_id_type > & _lm_u_dof_indices
const MooseArray< libMesh::Gradient > & _qu_sol
void vectorDirichletResidual(const Moose::Functor< Real > &dirichlet_value, const MooseArray< Real > &JxW_face, const libMesh::QBase &qrule_face, const MooseArray< Point > &normals, const Elem *const current_elem, const unsigned int current_side, const MooseArray< Point > &q_point_face, DenseVector< Number > &vector_re)
const MooseArray< std::vector< Real > > & _lm_phi_face
const Elem * _cached_elem
const MooseArray< Number > & _lm_u_sol
const std::vector< dof_id_type > & _u_dof_indices
const MooseVariableFE< Real > & _u_face_var
const MooseVariableFE< RealVectorValue > & _grad_u_var
const unsigned int & _current_side
const QBase *const & _qrule
const MooseArray< Real > & _JxW
const Elem *const & _current_elem
const MooseArray< Point > & _q_point
static InputParameters validParams()
const MooseArray< Point > & _normals
void paramError(const std::string ¶m, Args... args) const
bool isParamSetByUser(const std::string &name) const
virtual unsigned int dimension() const
void scalingFactor(const std::vector< Real > &factor)
Implements all the methods for assembling a hybridized local discontinuous Galerkin (LDG-H),...
const MooseVariableFE< Real > & _v_var
DenseMatrix< Number > _v_v_jac
DenseVector< Number > _u_vel_re
static InputParameters validParams()
const std::vector< dof_id_type > & _lm_v_dof_indices
const std::vector< dof_id_type > & _qv_dof_indices
Containers for dof indices.
DenseVector< Number > _grad_v_vel_re
const MooseArray< Number > & _lm_v_sol
const MooseArray< Gradient > & _qv_sol
local solutions at quadrature points
DenseVector< Number > _grad_u_vel_re
DenseMatrix< Number > _lm_v_lm_v_jac
DenseMatrix< Number > _u_u_jac
const std::vector< dof_id_type > & _p_dof_indices
DenseMatrix< Number > _v_p_jac
void pressureDirichletResidual(const std::array< const Moose::Functor< Real > *, 3 > &dirichlet_vel, const MooseArray< Real > &JxW_face, const libMesh::QBase &qrule_face, const MooseArray< Point > &normals, const Elem *const current_elem, const unsigned int current_side, const MooseArray< Point > &q_point_face, DenseVector< Number > &pressure_re)
DenseVector< Number > _lm_v_vel_re
const MooseVariableFE< Real > & _v_face_var
const MooseVariableFE< Real > & _pressure_var
DenseMatrix< Number > _lm_u_lm_u_jac
void scalarDirichletResidual(const MooseArray< Gradient > &vector_sol, const MooseArray< Number > &scalar_sol, const unsigned int vel_component, const std::array< const Moose::Functor< Real > *, 3 > &dirichlet_vel, const MooseArray< Real > &JxW_face, const libMesh::QBase &qrule_face, const MooseArray< Point > &normals, const Elem *const current_elem, const unsigned int current_side, const MooseArray< Point > &q_point_face, DenseVector< Number > &scalar_re)
DenseMatrix< Number > _u_grad_u_jac
DenseMatrix< Number > _v_grad_v_jac
DenseVector< Number > _p_re
void scalarDirichletJacobian(const unsigned int vel_component, const MooseArray< Real > &JxW_face, const libMesh::QBase &qrule_face, const MooseArray< Point > &normals, DenseMatrix< Number > &scalar_vector_jac, DenseMatrix< Number > &scalar_scalar_jac, DenseMatrix< Number > &scalar_pressure_jac)
DenseMatrix< Number > _u_p_jac
const MooseVariableFE< RealVectorValue > & _grad_v_var
const MooseArray< Number > & _v_sol
DenseVector< Number > _v_vel_re
DenseVector< Number > _lm_u_vel_re
const std::vector< dof_id_type > & _v_dof_indices
Weakly imposes Dirichlet boundary conditions for the velocity for a hybridized discretization of the ...
NavierStokesLHDGVelocityDirichletBC(const InputParameters ¶meters)
unsigned int _cached_side
A cache variable to prevent multiple computations of Jacobians.
virtual void initialSetup() override
virtual void jacobianSetup() override
virtual void computeJacobian() override
virtual void computeResidual() override
static InputParameters validParams()
std::array< const Moose::Functor< Real > *, 3 > _dirichlet_vel
Dirichlet velocity.
virtual void computeOffDiagJacobian(unsigned int jvar) override
void addJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
void addResiduals(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
void resize(const unsigned int new_m, const unsigned int new_n)
void resize(const unsigned int n)
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
const unsigned int invalid_uint