OGS
TwoPhaseFlowWithPPProcess.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "ProcessLib/Process.h"
15
16namespace MathLib
17{
18class PiecewiseLinearInterpolation;
19}
20namespace MeshLib
21{
22class Mesh;
23} // namespace MeshLib
24namespace NumLib
25{
26class LocalToGlobalIndexMap;
27}
28
29namespace ProcessLib
30{
31namespace TwoPhaseFlowWithPP
32{
40{
41public:
43 std::string name,
44 MeshLib::Mesh& mesh,
45 std::unique_ptr<AbstractJacobianAssembler>&& jacobian_assembler,
46 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
47 parameters,
48 unsigned const integration_order,
49 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
50 process_variables,
51 TwoPhaseFlowWithPPProcessData&& process_data,
52 SecondaryVariableCollection&& secondary_variables);
53
54 bool isLinear() const override { return false; }
55
56private:
58 NumLib::LocalToGlobalIndexMap const& dof_table,
59 MeshLib::Mesh const& mesh, unsigned const integration_order) override;
60
61 void assembleConcreteProcess(const double t, double const dt,
62 std::vector<GlobalVector*> const& x,
63 std::vector<GlobalVector*> const& x_prev,
64 int const process_id, GlobalMatrix& M,
65 GlobalMatrix& K, GlobalVector& b) override;
66
68 const double t, double const dt, std::vector<GlobalVector*> const& x,
69 std::vector<GlobalVector*> const& x_prev, int const process_id,
70 GlobalVector& b, GlobalMatrix& Jac) override;
71
73
74 std::vector<std::unique_ptr<TwoPhaseFlowWithPPLocalAssemblerInterface>>
76};
77
78} // namespace TwoPhaseFlowWithPP
79} // 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.
A class to simulate the isothermal two-phase flow process with P-P model in porous media.
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
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< TwoPhaseFlowWithPPLocalAssemblerInterface > > _local_assemblers
TwoPhaseFlowWithPPProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< 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, TwoPhaseFlowWithPPProcessData &&process_data, SecondaryVariableCollection &&secondary_variables)
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