https://mooseframework.inl.gov
ADJunctionParallelChannels1PhaseUserObject.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 
13 
16 
26 {
27 public:
29 
30  virtual void initialize() override;
31  virtual void threadJoin(const UserObject & uo) override;
32  virtual void finalize() override;
33 
34 protected:
35  virtual void computeFluxesAndResiduals(const unsigned int & c) override;
36 
39 
44 
46  std::vector<ADReal> _stored_pA;
47 
49  std::vector<ADReal> _areas;
51  std::vector<bool> _is_inlet;
52 
54  std::vector<unsigned int> _c_in;
56  std::vector<unsigned int> _c_out;
58  std::vector<unsigned int> _c_wall;
59 
61  const std::string & _component_name;
62 
63 public:
65 };
std::vector< ADReal > _areas
Areas at each connection.
std::vector< bool > _is_inlet
Check if the connection is an inlet.
Computes and caches flux and residual vectors for a 1-phase junction that connects flow channels that...
std::vector< unsigned int > _c_in
Connection index for inlet flow channel connections.
RealVectorValue _d_flow
Flow direction for the first connection.
std::vector< unsigned int > _c_out
Connection index for outlet flow channel connections.
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
const ADMaterialProperty< Real > & _p
Pressure material property.
Common class for single phase fluid properties.
Base class for computing numerical fluxes for FlowModelSinglePhase.
Computes and caches flux and residual vectors for a 1-phase volume junction.
RealVectorValue _dir_c0
Channel direction for the first connection.
std::vector< unsigned int > _c_wall
Connection index for connections that contribute to the wall pressure.
const std::string & _component_name
Name of the associated component.