https://mooseframework.inl.gov
BoundaryFlux1PhaseBaseBC.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 "ADOneDIntegratedBC.h"
13 #include "ADBoundaryFluxBase.h"
14 
20 {
21 public:
23 
25 
26  virtual void initialSetup() override;
27 
28 protected:
29  virtual ADReal computeQpResidual() override;
30 
34  virtual std::vector<ADReal> fluxInputVector() const = 0;
35 
41  virtual std::map<unsigned int, unsigned int> getIndexMapping() const = 0;
42 
45 
46  // conservative variables
50 
51  // coupled variable indices
52  const unsigned int _rhoA_var;
53  const unsigned int _rhouA_var;
54  const unsigned int _rhoEA_var;
55 
57  unsigned int _equation_index;
58 
61 };
virtual ADReal computeQpResidual() override
virtual std::vector< ADReal > fluxInputVector() const =0
Returns the flux input vector.
const ADMaterialProperty< Real > & _rhoEA
static InputParameters validParams()
const InputParameters & parameters() const
const ADVariableValue & _A_linear
Cross-sectional area, linear.
virtual void initialSetup() override
VariableValueTempl< true > ADVariableValue
unsigned int _equation_index
index within the Euler system of the equation upon which this BC acts
A base class for computing/caching fluxes at boundaries.
const ADBoundaryFluxBase & _flux
boundary flux user object
virtual std::map< unsigned int, unsigned int > getIndexMapping() const =0
Creates the mapping of coupled variable index to index in Euler system.
const ADMaterialProperty< Real > & _rhoA
BoundaryFlux1PhaseBaseBC(const InputParameters &parameters)
Boundary conditions base class for the 1-phase, variable-area Euler equations using a boundary flux u...
const ADMaterialProperty< Real > & _rhouA
Base class for integrated boundary conditions for 1D problems in 3D space.