OGS
RichardsMechanicsProcess.h
Go to the documentation of this file.
1
11#pragma once
12
14#include "ProcessLib/Process.h"
16
17namespace ProcessLib
18{
19namespace RichardsMechanics
20{
25template <int DisplacementDim>
27{
28public:
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 bool const use_monolithic_scheme);
42
45
46 bool isLinear() const override;
48
62 const int process_id) const override;
63
64private:
66
67 void constructDofTable() override;
68
70 NumLib::LocalToGlobalIndexMap const& dof_table,
71 MeshLib::Mesh const& mesh,
72 unsigned const integration_order) override;
73
75 std::map<int, std::shared_ptr<MaterialPropertyLib::Medium>> const&
76 media) override;
77
78 void setInitialConditionsConcreteProcess(std::vector<GlobalVector*>& x,
79 double const t,
80 int const process_id) override;
81
82 void assembleConcreteProcess(const double t, double const dt,
83 std::vector<GlobalVector*> const& x,
84 std::vector<GlobalVector*> const& x_prev,
85 int const process_id, GlobalMatrix& M,
86 GlobalMatrix& K, GlobalVector& b) override;
87
89 const double t, double const dt, std::vector<GlobalVector*> const& x,
90 std::vector<GlobalVector*> const& x_prev, int const process_id,
91 GlobalVector& b, GlobalMatrix& Jac) override;
92
93 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
94 std::vector<GlobalVector*> const& x_prev,
95 double const t, double const dt,
96 const int process_id) override;
97
99 const int process_id) const override;
100
101private:
102 std::vector<MeshLib::Node*> _base_nodes;
103 std::unique_ptr<MeshLib::MeshSubset const> _mesh_subset_base_nodes;
105
106 std::vector<std::unique_ptr<LocalAssemblerIF>> _local_assemblers;
107
108 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
110
113 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
115
119
120 void computeSecondaryVariableConcrete(double const t, double const dt,
121 std::vector<GlobalVector*> const& x,
122 GlobalVector const& x_prev,
123 int const process_id) override;
127 std::tuple<NumLib::LocalToGlobalIndexMap*, bool>
128 getDOFTableForExtrapolatorData() const override;
129
133 bool hasMechanicalProcess(int const process_id) const
134 {
135 return _use_monolithic_scheme || process_id == 1;
136 }
137
140};
141
142extern template class RichardsMechanicsProcess<2>;
143extern template class RichardsMechanicsProcess<3>;
144
145} // namespace RichardsMechanics
146} // namespace ProcessLib
MathLib::SparsityPattern< GlobalIndexType > GlobalSparsityPattern
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::string const name
Definition Process.h:362
const bool _use_monolithic_scheme
Definition Process.h:379
std::vector< std::unique_ptr< LocalAssemblerIF > > _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
MathLib::MatrixSpecifications getMatrixSpecifications(const int process_id) const override
std::unique_ptr< MeshLib::MeshSubset const > _mesh_subset_base_nodes
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id) override
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_with_base_nodes
RichardsMechanicsProcess(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, RichardsMechanicsProcessData< DisplacementDim > &&process_data, SecondaryVariableCollection &&secondary_variables, bool const use_monolithic_scheme)
void setInitialConditionsConcreteProcess(std::vector< GlobalVector * > &x, double const t, 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
void initializeBoundaryConditions(std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media) override
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, double const t, double const dt, const int process_id) override
RichardsMechanicsProcessData< DisplacementDim > _process_data
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_single_component
NumLib::LocalToGlobalIndexMap const & getDOFTable(const int process_id) const override
std::tuple< NumLib::LocalToGlobalIndexMap *, bool > getDOFTableForExtrapolatorData() const override
Handles configuration of several secondary variables from the project file.