OGS
SmallDeformationNonlocalProcess.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <cassert>
14
16#include "ProcessLib/Process.h"
19
20namespace ProcessLib
21{
22namespace SmallDeformationNonlocal
23{
24template <int DisplacementDim>
26{
27public:
29 std::string name,
30 MeshLib::Mesh& mesh,
31 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
32 jacobian_assembler,
33 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
34 parameters,
35 unsigned const integration_order,
36 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
37 process_variables,
39 SecondaryVariableCollection&& secondary_variables);
40
43
44 bool isLinear() const override;
46
47private:
49 NumLib::LocalToGlobalIndexMap const& dof_table,
50 MeshLib::Mesh const& mesh,
51 unsigned const integration_order) override;
52
53 void assembleConcreteProcess(const double t, double const dt,
54 std::vector<GlobalVector*> const& x,
55 std::vector<GlobalVector*> const& x_prev,
56 int const process_id, GlobalMatrix& M,
57 GlobalMatrix& K, GlobalVector& b) override;
58
59 void preAssembleConcreteProcess(const double t, double const dt,
60 GlobalVector const& x) override;
61
63 const double t, double const dt, std::vector<GlobalVector*> const& x,
64 std::vector<GlobalVector*> const& x_prev, int const process_id,
65 GlobalVector& b, GlobalMatrix& Jac) override;
66
67 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
68 std::vector<GlobalVector*> const& x_prev,
69 double const t, double const dt,
70 int const process_id) override;
71
73 GlobalVector const& x) override;
74
75private:
77
80 std::vector<std::unique_ptr<LocalAssemblerInterface>> _local_assemblers;
81
82 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
84
86};
87
88extern template class ProcessLib::SmallDeformationNonlocal::
89 SmallDeformationNonlocalProcess<2>;
90extern template class ProcessLib::SmallDeformationNonlocal::
91 SmallDeformationNonlocalProcess<3>;
92
93} // namespace SmallDeformationNonlocal
94} // 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.
SmallDeformationNonlocalProcess(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, SmallDeformationNonlocalProcessData< DisplacementDim > &&process_data, SecondaryVariableCollection &&secondary_variables)
void preAssembleConcreteProcess(const double t, double const dt, GlobalVector const &x) 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
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
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
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
NumLib::IterationResult postIterationConcreteProcess(GlobalVector const &x) override
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_single_component
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.