https://mooseframework.inl.gov
ADVolumeJunction1PhaseBC.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:
23 
24 protected:
25  virtual ADReal computeQpResidual() override;
26 
31  std::map<unsigned int, unsigned int> getFlowChannelIndexMapping() const;
32 
34  const unsigned int _connection_index;
35 
38 
43 
45  const unsigned int _rhoA_jvar;
47  const unsigned int _rhouA_jvar;
49  const unsigned int _rhoEA_jvar;
50 
52  const std::map<unsigned int, unsigned int> _flow_channel_jvar_map;
54  const unsigned int _equation_index;
55 
56 public:
58 };
const ADVariableValue & _A_linear
Cross-sectional area, linear.
const ADVariableValue & _A_elem
Cross-sectional area, elemental.
const unsigned int _connection_index
Index of the connected flow channel.
const ADVolumeJunction1PhaseUserObject & _volume_junction_uo
1-phase volume junction user object
virtual ADReal computeQpResidual() override
std::map< unsigned int, unsigned int > getFlowChannelIndexMapping() const
Creates the mapping of coupled variable index to local equation system index for flow channel variabl...
const unsigned int _rhoA_jvar
Flow channel rho*A coupled variable index.
const std::map< unsigned int, unsigned int > _flow_channel_jvar_map
Map of coupled variable index to local equation system index for flow channel variables.
Computes and caches flux and residual vectors for a 1-phase volume junction.
const unsigned int _rhoEA_jvar
Flow channel rho*E*A coupled variable index.
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
Adds boundary fluxes for flow channels connected to a 1-phase volume junction.
const unsigned int _rhouA_jvar
Flow channel rho*u*A coupled variable index.
ADVolumeJunction1PhaseBC(const InputParameters &params)
Base class for integrated boundary conditions for 1D problems in 3D space.
static InputParameters validParams()