OGS
PhaseFieldProcess.h
Go to the documentation of this file.
1
11#pragma once
12
15#include "ProcessLib/Process.h"
16
17namespace ProcessLib
18{
19namespace PhaseField
20{
21template <int DisplacementDim>
22class PhaseFieldProcess 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 bool const use_monolithic_scheme);
38
41 bool isLinear() const override;
43
45 const int process_id) const override;
46
48 const int process_id) const override;
49
50private:
52
53 void constructDofTable() override;
54
56 std::map<int, std::shared_ptr<MaterialPropertyLib::Medium>> const&
57 media) override;
58
60 NumLib::LocalToGlobalIndexMap const& dof_table,
61 MeshLib::Mesh const& mesh,
62 unsigned const integration_order) override;
63
64 void assembleConcreteProcess(const double t, double const dt,
65 std::vector<GlobalVector*> const& x,
66 std::vector<GlobalVector*> const& x_prev,
67 int const process_id, GlobalMatrix& M,
68 GlobalMatrix& K, GlobalVector& b) override;
69
71 const double t, double const dt, std::vector<GlobalVector*> const& x,
72 std::vector<GlobalVector*> const& x_prev, int const process_id,
73 GlobalVector& b, GlobalMatrix& Jac) override;
74
75 void preTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
76 double const t, double const dt,
77 const int process_id) override;
78
79 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
80 std::vector<GlobalVector*> const& x_prev,
81 const double t, const double delta_t,
82 int const process_id) override;
83
85 std::vector<GlobalVector*> const& x,
86 std::vector<GlobalVector*> const& x_prev, const double t,
87 double const dt, int const process_id) override;
88
90 int const process_id) override;
91
92private:
94
95 std::vector<std::unique_ptr<LocalAssemblerInterface>> _local_assemblers;
96
97 std::unique_ptr<NumLib::LocalToGlobalIndexMap>
99
101
105
106 std::unique_ptr<GlobalVector> _x_previous_timestep;
107
111 bool isPhaseFieldProcess(int const process_id) const;
112};
113
114extern template class PhaseFieldProcess<2>;
115extern template class PhaseFieldProcess<3>;
116
117} // namespace PhaseField
118} // namespace ProcessLib
MathLib::SparsityPattern< GlobalIndexType > GlobalSparsityPattern
Global vector based on Eigen vector.
Definition EigenVector.h:25
bool isPhaseFieldProcess(int const process_id) const
NumLib::LocalToGlobalIndexMap const & getDOFTable(const int process_id) const override
void updateConstraints(GlobalVector &lower, GlobalVector &upper, int const process_id) override
std::unique_ptr< GlobalVector > _x_previous_timestep
MathLib::MatrixSpecifications getMatrixSpecifications(const int process_id) const override
MeshLib::PropertyVector< double > * _nodal_forces
void postNonLinearSolverConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, const double t, double const dt, int const process_id) override
std::unique_ptr< NumLib::LocalToGlobalIndexMap > _local_to_global_index_map_single_component
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, const double t, const double delta_t, int const process_id) override
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
GlobalSparsityPattern _sparsity_pattern_with_single_component
void preTimestepConcreteProcess(std::vector< GlobalVector * > const &x, double const t, double const dt, const int process_id) override
std::vector< std::unique_ptr< LocalAssemblerInterface > > _local_assemblers
void initializeBoundaryConditions(std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > const &media) override
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
PhaseFieldProcessData< DisplacementDim > _process_data
PhaseFieldProcess(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, PhaseFieldProcessData< DisplacementDim > &&process_data, SecondaryVariableCollection &&secondary_variables, bool const use_monolithic_scheme)
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::string const name
Definition Process.h:362
Handles configuration of several secondary variables from the project file.