https://mooseframework.inl.gov
ADBoundaryFlux3EqnGhostBase.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 "ADBoundaryFluxBase.h"
13 
15 
21 {
22 public:
24 
25 protected:
26  virtual void calcFlux(unsigned int iside,
27  dof_id_type ielem,
28  const std::vector<ADReal> & U1,
29  const RealVectorValue & normal,
30  std::vector<ADReal> & flux) const override;
31 
39  virtual std::vector<ADReal> getGhostCellSolution(const std::vector<ADReal> & U1) const = 0;
40 
44  const Real & _normal;
45 
46 public:
48 };
static InputParameters validParams()
Computes boundary fluxes for the 1-D, variable-area Euler equations using a numerical flux user objec...
Base class for computing numerical fluxes for FlowModelSinglePhase.
ADBoundaryFlux3EqnGhostBase(const InputParameters &parameters)
A base class for computing/caching fluxes at boundaries.
const ADNumericalFlux3EqnBase & _numerical_flux
Numerical flux user object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
const Real & _normal
Outward normal.
virtual std::vector< ADReal > getGhostCellSolution(const std::vector< ADReal > &U1) const =0
Gets the solution vector in the ghost cell.
uint8_t dof_id_type
virtual void calcFlux(unsigned int iside, dof_id_type ielem, const std::vector< ADReal > &U1, const RealVectorValue &normal, std::vector< ADReal > &flux) const override
Solve the Riemann problem on the boundary face.