Loading [MathJax]/extensions/MathMenu.js
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 setInitialConditionsConcreteProcess(std::vector<GlobalVector*>& x,
62 double const t,
63 int const process_id) override;
64
65 void assembleConcreteProcess(const double t, double const dt,
66 std::vector<GlobalVector*> const& x,
67 std::vector<GlobalVector*> const& x_prev,
68 int const process_id, GlobalMatrix& M,
69 GlobalMatrix& K, GlobalVector& b) override;
70
72 const double t, double const dt, std::vector<GlobalVector*> const& x,
73 std::vector<GlobalVector*> const& x_prev, int const process_id,
74 GlobalVector& b, GlobalMatrix& Jac) override;
75
77
78 std::vector<std::unique_ptr<TwoPhaseFlowWithPPLocalAssemblerInterface>>
80};
81
82} // namespace TwoPhaseFlowWithPP
83} // 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 setInitialConditionsConcreteProcess(std::vector< GlobalVector * > &x, double const 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