https://mooseframework.inl.gov
Loading...
Searching...
No Matches
BoundaryFlux3EqnBC.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 "OneDIntegratedBC.h"
13#include "BoundaryFluxBase.h"
14
20{
21public:
23
24protected:
25 virtual Real computeQpResidual() override;
26 virtual Real computeQpJacobian() override;
27 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
28
34 std::map<unsigned int, unsigned int> getIndexMapping() const;
35
40
41 // coupled variables
45
46 // coupled variable indices
47 const unsigned int _rhoA_var;
48 const unsigned int _rhouA_var;
49 const unsigned int _rhoEA_var;
50
52 const std::map<unsigned int, unsigned int> _jmap;
53
55 const unsigned int _equation_index;
56
59
60public:
62};
Boundary conditions for the 1-D, 1-phase, variable-area Euler equations using a boundary flux user ob...
const BoundaryFluxBase & _flux
boundary flux user object
const std::map< unsigned int, unsigned int > _jmap
map of coupled variable index to equations variable index convention
const unsigned int _equation_index
index within the Euler system of the equation upon which this BC acts
const unsigned int _rhoA_var
const unsigned int _rhoEA_var
virtual Real computeQpResidual() override
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
static InputParameters validParams()
const VariableValue & _rhoA
const VariableValue & _A_elem
Cross-sectional area, elemental.
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates the mapping of coupled variable index to index in Euler system.
const VariableValue & _A_linear
Cross-sectional area, linear.
const VariableValue & _rhoEA
const VariableValue & _rhouA
virtual Real computeQpJacobian() override
const unsigned int _rhouA_var
A base class for computing/caching fluxes at boundaries.
const InputParameters & parameters() const
Base class for integrated boundary conditions for 1D problems in 3D space.
VariableValueTempl< false > VariableValue