OGS
SmallDeformationProcess.h
Go to the documentation of this file.
1
11#pragma once
12
14#include "ProcessLib/Process.h"
16
17namespace ProcessLib
18{
19namespace SmallDeformation
20{
21template <int DisplacementDim>
22class SmallDeformationProcess 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,
61 GlobalVector& b, GlobalMatrix& Jac) override;
62
63 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
64 std::vector<GlobalVector*> const& x_prev,
65 double const t, double const dt,
66 int const process_id) override;
67
68 void computeSecondaryVariableConcrete(double const t, double const dt,
69 std::vector<GlobalVector*> const& x,
70 GlobalVector const& x_prev,
71 int const process_id) override;
72
73private:
75
76 std::vector<std::unique_ptr<LocalAssemblerInterface>> _local_assemblers;
77
80
82};
83
84extern template class SmallDeformationProcess<2>;
85extern template class SmallDeformationProcess<3>;
86
87} // namespace SmallDeformation
88} // namespace ProcessLib
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.
SmallDeformationProcess(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, SmallDeformationProcessData< DisplacementDim > &&process_data, SecondaryVariableCollection &&secondary_variables)
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, double const t, double const dt, int const process_id) override
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 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
SmallDeformationProcessData< 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::vector< std::unique_ptr< LocalAssemblerInterface > > _local_assemblers
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
Writes global matrices to disk for debugging purposes.