https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
21public:
23
24protected:
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
56public:
58};
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for integrated boundary conditions for 1D problems in 3D space.
Adds boundary fluxes for flow channels connected to a 1-phase volume junction.
virtual ADReal computeQpResidual() override
const unsigned int _rhoEA_jvar
Flow channel rho*E*A coupled variable index.
static InputParameters validParams()
const unsigned int _rhoA_jvar
Flow channel rho*A coupled variable index.
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 ADVariableValue & _A_elem
Cross-sectional area, elemental.
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.
const unsigned int _equation_index
Index within local system of the equation upon which this object acts.
const unsigned int _rhouA_jvar
Flow channel rho*u*A coupled variable index.
const ADVolumeJunction1PhaseUserObject & _volume_junction_uo
1-phase volume junction user object
const unsigned int _connection_index
Index of the connected flow channel.
const ADVariableValue & _A_linear
Cross-sectional area, linear.
Computes and caches flux and residual vectors for a 1-phase volume junction.
VariableValueTempl< true > ADVariableValue