OGS
ThermoMechanicsProcess.h
Go to the documentation of this file.
1
11#pragma once
12
14#include "ProcessLib/Process.h"
16
17namespace ProcessLib
18{
19namespace ThermoMechanics
20{
21template <int DisplacementDim>
22class ThermoMechanicsProcess 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,
36 SecondaryVariableCollection&& secondary_variables,
37 bool const use_monolithic_scheme);
38
41 bool isLinear() const override;
43
54 const int process_id) const override;
55
56private:
59
60 void constructDofTable() override;
61
63 NumLib::LocalToGlobalIndexMap const& dof_table,
64 MeshLib::Mesh const& mesh,
65 unsigned const integration_order) override;
66
68 std::map<int, std::shared_ptr<MaterialPropertyLib::Medium>> const&
69 media) override;
70
71 void assembleConcreteProcess(const double t, double const dt,
72 std::vector<GlobalVector*> const& x,
73 std::vector<GlobalVector*> const& x_prev,
74 int const process_id, GlobalMatrix& M,
75 GlobalMatrix& K, GlobalVector& b) override;
76
78 const double t, double const dt, std::vector<GlobalVector*> const& x,
79 std::vector<GlobalVector*> const& x_prev, int const process_id,
80 GlobalVector& b, GlobalMatrix& Jac) override;
81
82 void preTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
83 double const t, double const dt,
84 const int 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
92 const int process_id) const override;
93
94private:
96
97 std::vector<std::unique_ptr<LocalAssemblerInterface>> _local_assemblers;
98
99 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
101
105
108};
109
110extern template class ThermoMechanicsProcess<2>;
111extern template class ThermoMechanicsProcess<3>;
112
113} // namespace ThermoMechanics
114} // namespace ProcessLib
MathLib::SparsityPattern< GlobalIndexType > GlobalSparsityPattern
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::string const name
Definition Process.h:362
Handles configuration of several secondary variables from the project file.
void initializeBoundaryConditions(std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media) override
void preTimestepConcreteProcess(std::vector< GlobalVector * > const &x, double const t, double const dt, const int process_id) override
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_single_component
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
MathLib::MatrixSpecifications getMatrixSpecifications(const int process_id) const override
ThermoMechanicsProcess(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, ThermoMechanicsProcessData< DisplacementDim > &&process_data, SecondaryVariableCollection &&secondary_variables, bool const use_monolithic_scheme)
std::vector< std::unique_ptr< LocalAssemblerInterface > > _local_assemblers
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
ThermoMechanicsProcessData< DisplacementDim > _process_data
NumLib::LocalToGlobalIndexMap const & getDOFTable(const int process_id) const override
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().