https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADGateValve1PhaseBC.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
15
20{
21public:
23
24protected:
25 virtual ADReal computeQpResidual() override;
26
30 std::map<unsigned int, unsigned int> getIndexMapping() const;
31
33 const unsigned int _connection_index;
34
37
42
44 const unsigned int _rhoA_jvar;
46 const unsigned int _rhouA_jvar;
48 const unsigned int _rhoEA_jvar;
49
51 const std::map<unsigned int, unsigned int> _jvar_map;
53 const unsigned int _equation_index;
54
55public:
57};
DualNumber< Real, DNDerivativeType, true > ADReal
Adds boundary fluxes for flow channels connected to a 1-phase gate valve.
const ADVariableValue & _A_linear
Cross-sectional area, linear.
const ADVariableValue & _A_elem
Cross-sectional area, elemental.
const unsigned int _connection_index
Index of connected flow channel.
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates mapping of coupled variable index to local equation system index.
const ADGateValve1PhaseUserObject & _gate_valve_uo
1-phase gate valve user object
const unsigned int _rhoEA_jvar
rho*E*A coupled variable index
const std::map< unsigned int, unsigned int > _jvar_map
Map of coupled variable index to local equation system index.
virtual ADReal computeQpResidual() override
const unsigned int _rhouA_jvar
rho*u*A coupled variable index
const unsigned int _rhoA_jvar
rho*A coupled variable index
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
static InputParameters validParams()
Gate valve user object for 1-phase flow.
Base class for integrated boundary conditions for 1D problems in 3D space.
VariableValueTempl< true > ADVariableValue