https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
27public:
29
30 virtual void initialize() override;
31 virtual void threadJoin(const UserObject & uo) override;
32 virtual void finalize() override;
33
34protected:
35 virtual void computeFluxesAndResiduals(const unsigned int & c) override;
36
39
41 RealVectorValue _dir_c0;
43 RealVectorValue _d_flow;
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
63public:
65};
Computes and caches flux and residual vectors for a 1-phase junction that connects flow channels that...
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.
RealVectorValue _d_flow
Flow direction for the first connection.
const ADMaterialProperty< Real > & _p
Pressure material property.
std::vector< bool > _is_inlet
Check if the connection is an inlet.
virtual void computeFluxesAndResiduals(const unsigned int &c) override
Computes and stores the fluxes, the scalar residuals, and their Jacobians.
std::vector< unsigned int > _c_in
Connection index for inlet flow channel connections.
std::vector< unsigned int > _c_out
Connection index for outlet flow channel connections.
Base class for computing numerical fluxes for FlowModelSinglePhase.
Computes and caches flux and residual vectors for a 1-phase volume junction.
Common class for single phase fluid properties.