https://mooseframework.inl.gov
ADNumericalFlux3EqnCentered.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 
14 
20 {
21 public:
23 
24  virtual void calcFlux(const std::vector<ADReal> & U1,
25  const std::vector<ADReal> & U2,
26  const RealVectorValue & nLR,
27  const RealVectorValue & t1,
28  const RealVectorValue & t2,
29  std::vector<ADReal> & FL,
30  std::vector<ADReal> & FR) const override;
31 
32  virtual unsigned int getNumberOfRegions() const override { return 1; }
33 
34 protected:
35  std::vector<ADReal> computeFlux(const std::vector<ADReal> & U,
36  const RealVectorValue & n,
37  const RealVectorValue & t1,
38  const RealVectorValue & t2) const;
39 
42 
43 public:
45 };
std::vector< ADReal > computeFlux(const std::vector< ADReal > &U, const RealVectorValue &n, const RealVectorValue &t1, const RealVectorValue &t2) const
virtual unsigned int getNumberOfRegions() const override
Returns the total possible number of regions.
virtual void calcFlux(const std::vector< ADReal > &U1, const std::vector< ADReal > &U2, const RealVectorValue &nLR, const RealVectorValue &t1, const RealVectorValue &t2, std::vector< ADReal > &FL, std::vector< ADReal > &FR) const override
Calculates the 3D flux vectors given "left" and "right" states.
ADNumericalFlux3EqnCentered(const InputParameters &parameters)
const SinglePhaseFluidProperties & _fp
fluid properties user object
Common class for single phase fluid properties.
Base class for computing numerical fluxes for FlowModelSinglePhase.
Computes internal side flux for the 1-D, 1-phase, variable-area Euler equations using a centered aver...
const InputParameters & parameters() const
static InputParameters validParams()