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
42 bool isLinear() const override { return false; }
43
44 void computeSecondaryVariableConcrete(double const t, double const dt,
45 std::vector<GlobalVector*> const& x,
46 GlobalVector const& x_prev,
47 int const process_id) override;
48
49private:
50 void constructDofTable() override;
51
53 NumLib::LocalToGlobalIndexMap const& dof_table,
54 MeshLib::Mesh const& mesh,
55 unsigned const integration_order) override;
56
57 void assembleConcreteProcess(const double t, double const dt,
58 std::vector<GlobalVector*> const& x,
59 std::vector<GlobalVector*> const& x_prev,
60 int const process_id, GlobalMatrix& M,
61 GlobalMatrix& K, GlobalVector& b) override;
62
64 const double t, double const dt, std::vector<GlobalVector*> const& x,
65 std::vector<GlobalVector*> const& x_prev, int const process_id,
67 GlobalMatrix& Jac) override;
68
70 std::vector<std::vector<MeshLib::Node*>> const& all_bhe_nodes);
71 void preTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
72 const double t, const double dt,
73 int const process_id) override;
74
75 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
76 std::vector<GlobalVector*> const& x_prev,
77 const double t, const double dt,
78 int const process_id) override;
79
81 GlobalVector const& x) override;
82
84
85 std::vector<std::unique_ptr<HeatTransportBHELocalAssemblerInterface>>
87
88 std::vector<std::unique_ptr<MeshLib::MeshSubset const>>
90
91 std::vector<std::unique_ptr<MeshLib::MeshSubset const>>
93
94 std::unique_ptr<MeshLib::MeshSubset const> _mesh_subset_soil_nodes;
95
97};
98} // namespace HeatTransportBHE
99} // 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
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
NumLib::IterationResult postIterationConcreteProcess(GlobalVector const &x) override
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)
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
void assembleWithJacobianConcreteProcess(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, GlobalMatrix &Jac) override
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
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:354
Handles configuration of several secondary variables from the project file.
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.