OGS
HeatTransportBHEProcess.h
Go to the documentation of this file.
1
11#pragma once
12
16#include "ProcessLib/Process.h"
17
18namespace ProcessLib
19{
20namespace HeatTransportBHE
21{
22struct BHEMeshData;
23
24class HeatTransportBHEProcess final : public Process
25{
26public:
28 std::string name,
29 MeshLib::Mesh& mesh,
30 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
31 jacobian_assembler,
32 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
33 parameters,
34 unsigned const integration_order,
35 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
36 process_variables,
37 HeatTransportBHEProcessData&& process_data,
38 SecondaryVariableCollection&& secondary_variables,
39 BHEMeshData&& bhe_mesh_data);
40
43 bool isLinear() const override
44 {
46 }
47
48 bool requiresNormalization() const override
49 {
50 // In the current setup, when using algebraic bc,
51 // then normalization is always required
53 }
55
56 void computeSecondaryVariableConcrete(double const t, double const dt,
57 std::vector<GlobalVector*> const& x,
58 GlobalVector const& x_prev,
59 int const process_id) override;
60
61private:
62 void constructDofTable() override;
63
65 NumLib::LocalToGlobalIndexMap const& dof_table,
66 MeshLib::Mesh const& mesh,
67 unsigned const integration_order) override;
68
69 void assembleConcreteProcess(const double t, double const dt,
70 std::vector<GlobalVector*> const& x,
71 std::vector<GlobalVector*> const& x_prev,
72 int const process_id, GlobalMatrix& M,
73 GlobalMatrix& K, GlobalVector& b) override;
74
76 const double t, double const dt, std::vector<GlobalVector*> const& x,
77 std::vector<GlobalVector*> const& x_prev, int const process_id,
78 GlobalVector& b, GlobalMatrix& Jac) override;
79
81 std::vector<std::vector<MeshLib::Node*>> const& all_bhe_nodes);
82 void preTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
83 const double t, const double dt,
84 int const process_id) override;
85
86 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
87 std::vector<GlobalVector*> const& x_prev,
88 const double t, const double dt,
89 int const process_id) override;
90
91 void algebraicBcConcreteProcess(const double t, double const dt,
92 std::vector<GlobalVector*> const& x,
93 std::vector<GlobalVector*> const& xdot,
94 int const process_id, GlobalMatrix& M,
96
98 GlobalVector const& x) override;
99
101
102 std::vector<std::unique_ptr<HeatTransportBHELocalAssemblerInterface>>
104
105 std::vector<std::unique_ptr<MeshLib::MeshSubset const>>
107
108 std::vector<std::unique_ptr<MeshLib::MeshSubset const>>
110 // a vector of tuple structure containing the indices of BHE top nodes,
111 // used only for algebraic boundary conditions
112 // first object is the index of BHE
113 // second and third object is the global indices of a pair of unknowns,
114 // pointing to the inflow and outflow temperature
115 std::vector<std::tuple<std::size_t, GlobalIndexType, GlobalIndexType>>
117 // a vector of tuple structure containing the indices of BHE bottom nodes,
118 // used only for algebraic boundary conditions
119 // same structure as the top node vector
120 std::vector<std::tuple<std::size_t, GlobalIndexType, GlobalIndexType>>
122
123 std::unique_ptr<MeshLib::MeshSubset const> _mesh_subset_soil_nodes;
124
126};
127} // namespace HeatTransportBHE
128} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::unique_ptr< MeshLib::MeshSubset const > _mesh_subset_soil_nodes
void assembleConcreteProcess(const double t, double const dt, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, int const process_id, GlobalMatrix &M, GlobalMatrix &K, GlobalVector &b) override
std::vector< std::unique_ptr< MeshLib::MeshSubset const > > _mesh_subset_BHE_nodes
std::vector< std::tuple< std::size_t, GlobalIndexType, GlobalIndexType > > _vec_bottom_BHE_node_indices
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id) override
std::vector< std::unique_ptr< HeatTransportBHELocalAssemblerInterface > > _local_assemblers
HeatTransportBHEProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< std::unique_ptr< ParameterLib::ParameterBase > > const &parameters, unsigned const integration_order, std::vector< std::vector< std::reference_wrapper< ProcessVariable > > > &&process_variables, HeatTransportBHEProcessData &&process_data, SecondaryVariableCollection &&secondary_variables, BHEMeshData &&bhe_mesh_data)
NumLib::IterationResult postIterationConcreteProcess(GlobalVector const &x) override
std::vector< std::unique_ptr< MeshLib::MeshSubset const > > _mesh_subset_BHE_soil_nodes
void preTimestepConcreteProcess(std::vector< GlobalVector * > const &x, const double t, const double dt, int const process_id) override
std::vector< std::tuple< std::size_t, GlobalIndexType, GlobalIndexType > > _vec_top_BHE_node_indices
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
void algebraicBcConcreteProcess(const double t, double const dt, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &xdot, int const process_id, GlobalMatrix &M, GlobalMatrix &K, GlobalVector &b)
void assembleWithJacobianConcreteProcess(const double t, double const dt, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, int const process_id, GlobalVector &b, GlobalMatrix &Jac) override
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, const double t, const double dt, int const process_id) override
void createBHEBoundaryConditionTopBottom(std::vector< std::vector< MeshLib::Node * > > const &all_bhe_nodes)
std::string const name
Definition Process.h:362
Handles configuration of several secondary variables from the project file.
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.