OGS
StokesFlowProcess.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "ProcessLib/Process.h"
14#include "StokesFlowFEM.h"
16
17namespace ProcessLib
18{
19namespace StokesFlow
20{
24template <int GlobalDim>
25class StokesFlowProcess final : public Process
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,
38 StokesFlowProcessData&& process_data,
39 SecondaryVariableCollection&& secondary_variables,
40 bool const use_monolithic_scheme);
41
42 bool isLinear() const override { return false; }
43
45 const int /*process_id*/) const override;
46
48 const int /*process_id*/) const override;
49
50 void computeSecondaryVariableConcrete(double const /*t*/,
51 double const /*dt*/,
52 std::vector<GlobalVector*> const& x,
53 GlobalVector const& /*x_prev*/,
54 int const /*process_id*/) override;
55
56 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
57 std::vector<GlobalVector*> const& x_prev,
58 const double t,
59 const double dt,
60 int const process_id) override;
61
62private:
63 void constructDofTable() override;
64
66 NumLib::LocalToGlobalIndexMap const& dof_table,
67 MeshLib::Mesh const& mesh,
68 unsigned const integration_order) override;
69
71 std::map<int, std::shared_ptr<MaterialPropertyLib::Medium>> const&
72 media) override;
73
74 void assembleConcreteProcess(const double t, double const dt,
75 std::vector<GlobalVector*> const& x,
76 std::vector<GlobalVector*> const& x_prev,
77 int const process_id, GlobalMatrix& M,
78 GlobalMatrix& K, GlobalVector& b) override;
79
81 const double t, double const dt, std::vector<GlobalVector*> const& x,
82 std::vector<GlobalVector*> const& x_prev, int const process_id,
83 GlobalVector& b, GlobalMatrix& Jac) override;
84
85 std::vector<MeshLib::Node*> _base_nodes;
86 std::unique_ptr<MeshLib::MeshSubset const> _mesh_subset_base_nodes;
87
89
90 std::vector<std::unique_ptr<StokesFlowLocalAssemblerInterface>>
92
93 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
95
98 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
100};
101
102extern template class StokesFlowProcess<2>;
103} // namespace StokesFlow
104} // 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.
std::unique_ptr< MeshLib::MeshSubset const > _mesh_subset_base_nodes
std::vector< MeshLib::Node * > _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, double const, std::vector< GlobalVector * > const &x, GlobalVector const &, int const) 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::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_single_component
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 postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, const double t, const double dt, int const process_id) override
void initializeBoundaryConditions(std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media) override
NumLib::LocalToGlobalIndexMap const & getDOFTable(const int) const override
std::vector< std::unique_ptr< StokesFlowLocalAssemblerInterface > > _local_assemblers
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_with_base_nodes
StokesFlowProcess(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, StokesFlowProcessData &&process_data, SecondaryVariableCollection &&secondary_variables, bool const use_monolithic_scheme)
MathLib::MatrixSpecifications getMatrixSpecifications(const int) const override