OGS
HeatConductionProcess.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "HeatConductionFEM.h"
16#include "ProcessLib/Process.h"
17
18namespace ProcessLib
19{
20namespace HeatConduction
21{
22class HeatConductionProcess final : public Process
23{
24public:
26 std::string name,
27 MeshLib::Mesh& mesh,
28 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
29 jacobian_assembler,
30 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
31 parameters,
32 unsigned const integration_order,
33 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
34 process_variables,
35 HeatConductionProcessData&& process_data,
36 SecondaryVariableCollection&& secondary_variables,
37 bool const is_linear,
38 bool const ls_compute_only_upon_timestep_change);
39
42
43 bool isLinear() const override { return _asm_mat_cache.isLinear(); }
45
46 void computeSecondaryVariableConcrete(double const t, double const dt,
47 std::vector<GlobalVector*> const& x,
48 GlobalVector const& x_prev,
49 int const process_id) override;
50
52 {
53 // TODO move this feature to some common location for all processes.
55 }
56
57private:
59 NumLib::LocalToGlobalIndexMap const& dof_table,
60 MeshLib::Mesh const& mesh,
61 unsigned const integration_order) override;
62
63 void assembleConcreteProcess(const double t, double const /*dt*/,
64 std::vector<GlobalVector*> const& x,
65 std::vector<GlobalVector*> const& x_prev,
66 int const process_id, GlobalMatrix& M,
67 GlobalMatrix& K, GlobalVector& b) override;
68
70 const double t, double const /*dt*/,
71 std::vector<GlobalVector*> const& x,
72 std::vector<GlobalVector*> const& x_prev, int const process_id,
73 GlobalVector& b, GlobalMatrix& Jac) override;
74
75 void preOutputConcreteProcess(const double t, double const dt,
76 std::vector<GlobalVector*> const& x,
77 std::vector<GlobalVector*> const& x_prev,
78 int const process_id) override;
79
81
82 std::vector<std::unique_ptr<HeatConductionLocalAssemblerInterface>>
84
86
88
90};
91
92} // namespace HeatConduction
93} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id) override
void assembleWithJacobianConcreteProcess(const double t, double const, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, int const process_id, 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().
HeatConductionProcess(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, HeatConductionProcessData &&process_data, SecondaryVariableCollection &&secondary_variables, bool const is_linear, bool const ls_compute_only_upon_timestep_change)
std::vector< std::unique_ptr< HeatConductionLocalAssemblerInterface > > _local_assemblers
void preOutputConcreteProcess(const double t, double const dt, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, int const process_id) override
void assembleConcreteProcess(const double t, double const, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, int const process_id, GlobalMatrix &M, GlobalMatrix &K, GlobalVector &b) override
std::string const name
Definition Process.h:362
Handles configuration of several secondary variables from the project file.