https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADJunctionOneToOne1PhaseBC.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
39 const unsigned int _rhoA_jvar;
41 const unsigned int _rhouA_jvar;
43 const unsigned int _rhoEA_jvar;
44
46 const std::map<unsigned int, unsigned int> _jvar_map;
48 const unsigned int _equation_index;
49
50public:
52};
DualNumber< Real, DNDerivativeType, true > ADReal
Adds boundary fluxes for flow channels connected to a 1-phase one-to-one junction.
const unsigned int _rhoA_jvar
rho*A coupled variable index
virtual ADReal computeQpResidual() override
static InputParameters validParams()
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 unsigned int _equation_index
Index within local system of the equation upon which this object acts.
const unsigned int _rhoEA_jvar
rho*E*A coupled variable index
const ADJunctionOneToOne1PhaseUserObject & _junction_uo
1-phase one-to-one junction user object
const unsigned int _rhouA_jvar
rho*u*A coupled variable index
const std::map< unsigned int, unsigned int > _jvar_map
Map of coupled variable index to local equation system index.
Computes flux between two subdomains for 1-phase one-to-one junction.
Base class for integrated boundary conditions for 1D problems in 3D space.