OGS
SmallDeformationNonlocalProcess.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <cassert>
14 
16 #include "ProcessLib/Process.h"
17 
20 
21 namespace ProcessLib
22 {
23 namespace SmallDeformationNonlocal
24 {
25 template <int DisplacementDim>
27 {
28 public:
30  std::string name,
31  MeshLib::Mesh& mesh,
32  std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
33  jacobian_assembler,
34  std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
35  parameters,
36  unsigned const integration_order,
37  std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
38  process_variables,
40  SecondaryVariableCollection&& secondary_variables);
41 
44 
45  bool isLinear() const override;
47 
48 private:
50  NumLib::LocalToGlobalIndexMap const& dof_table,
51  MeshLib::Mesh const& mesh,
52  unsigned const integration_order) override;
53 
54  void assembleConcreteProcess(const double t, double const dt,
55  std::vector<GlobalVector*> const& x,
56  std::vector<GlobalVector*> const& xdot,
57  int const process_id, GlobalMatrix& M,
58  GlobalMatrix& K, GlobalVector& b) override;
59 
60  void preAssembleConcreteProcess(const double t, double const dt,
61  GlobalVector const& x) override;
62 
64  const double t, double const dt, std::vector<GlobalVector*> const& x,
65  std::vector<GlobalVector*> const& xdot, int const process_id,
67  GlobalMatrix& Jac) override;
68 
69  void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
70  double const t, double const dt,
71  int const process_id) override;
72 
74  GlobalVector const& x) override;
75 
76 private:
78 
81  std::vector<std::unique_ptr<LocalAssemblerInterface>> _local_assemblers;
82 
83  std::unique_ptr<NumLib::LocalToGlobalIndexMap>
85 
87 };
88 
89 extern template class ProcessLib::SmallDeformationNonlocal::
90  SmallDeformationNonlocalProcess<2>;
91 extern template class ProcessLib::SmallDeformationNonlocal::
92  SmallDeformationNonlocalProcess<3>;
93 
94 } // namespace SmallDeformationNonlocal
95 } // namespace ProcessLib
Global vector based on Eigen vector.
Definition: EigenVector.h:28
std::string const name
Definition: Process.h:328
Handles configuration of several secondary variables from the project file.
void preAssembleConcreteProcess(const double t, double const dt, GlobalVector const &x) override
void assembleWithJacobianConcreteProcess(const double t, double const dt, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &xdot, int const process_id, GlobalMatrix &M, GlobalMatrix &K, GlobalVector &b, GlobalMatrix &Jac) override
void assembleConcreteProcess(const double t, double const dt, std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &xdot, int const process_id, GlobalMatrix &M, GlobalMatrix &K, GlobalVector &b) override
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)
std::vector< std::unique_ptr< LocalAssemblerInterface > > _local_assemblers
SmallDeformationNonlocalProcessData< DisplacementDim > _process_data
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
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, double const t, double const dt, int const process_id) override
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_single_component
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.
static const double t