https://mooseframework.inl.gov
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 {
21 public:
22  ADGateValve1PhaseBC(const InputParameters & params);
23 
24 protected:
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 
55 public:
57 };
const ADVariableValue & _A_elem
Cross-sectional area, elemental.
Gate valve user object for 1-phase flow.
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates mapping of coupled variable index to local equation system index.
ADGateValve1PhaseBC(const InputParameters &params)
const unsigned int _rhouA_jvar
rho*u*A coupled variable index
const unsigned int _rhoA_jvar
rho*A coupled variable index
const std::map< unsigned int, unsigned int > _jvar_map
Map of coupled variable index to local equation system index.
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
const ADGateValve1PhaseUserObject & _gate_valve_uo
1-phase gate valve user object
const unsigned int _rhoEA_jvar
rho*E*A coupled variable index
const unsigned int _connection_index
Index of connected flow channel.
static InputParameters validParams()
Adds boundary fluxes for flow channels connected to a 1-phase gate valve.
virtual ADReal computeQpResidual() override
Base class for integrated boundary conditions for 1D problems in 3D space.
const ADVariableValue & _A_linear
Cross-sectional area, linear.