OGS
LargeDeformationProcess.h
Go to the documentation of this file.
1
11#pragma once
12
15#include "ProcessLib/Process.h"
16
17namespace ProcessLib
18{
19namespace LargeDeformation
20{
21template <int DisplacementDim>
22class LargeDeformationProcess 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
40 bool isLinear() const override;
42
43private:
46
48 NumLib::LocalToGlobalIndexMap const& dof_table,
49 MeshLib::Mesh const& mesh,
50 unsigned const integration_order) override;
51
52 void assembleConcreteProcess(double const t, double const dt,
53 std::vector<GlobalVector*> const& x,
54 std::vector<GlobalVector*> const& x_prev,
55 int const process_id, GlobalMatrix& M,
56 GlobalMatrix& K, GlobalVector& b) override;
57
59 const double t, double const dt, std::vector<GlobalVector*> const& x,
60 std::vector<GlobalVector*> const& x_prev, int const process_id,
62 GlobalMatrix& Jac) override;
63
64 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
65 std::vector<GlobalVector*> const& x_prev,
66 double const t, double const dt,
67 int const process_id) override;
68
69 void computeSecondaryVariableConcrete(double const t, double const dt,
70 std::vector<GlobalVector*> const& x,
71 GlobalVector const& x_prev,
72 int const process_id) override;
73
74private:
76
77 std::vector<std::unique_ptr<LocalAssemblerInterface>> _local_assemblers;
78
81
83};
84
85extern template class LargeDeformationProcess<2>;
86extern template class LargeDeformationProcess<3>;
87
88} // namespace LargeDeformation
89} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
void assembleConcreteProcess(double const 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
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, double const t, double const dt, int const process_id) override
LargeDeformationProcess(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, LargeDeformationProcessData< DisplacementDim > &&process_data, SecondaryVariableCollection &&secondary_variables)
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().
std::vector< std::unique_ptr< LocalAssemblerInterface > > _local_assemblers
LargeDeformationProcessData< DisplacementDim > _process_data
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id) override
std::string const name
Definition Process.h:355
Handles configuration of several secondary variables from the project file.
Writes global matrices to disk for debugging purposes.