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