OGS
TwoPhaseFlowWithPrhoProcess.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 TwoPhaseFlowWithPrho
32{
38{
39public:
41 std::string name,
42 MeshLib::Mesh& mesh,
43 std::unique_ptr<AbstractJacobianAssembler>&& jacobian_assembler,
44 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
45 parameters,
46 unsigned const integration_order,
47 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
48 process_variables,
50 SecondaryVariableCollection&& secondary_variables);
51
52 bool isLinear() const override { return false; }
53
54private:
56 NumLib::LocalToGlobalIndexMap const& dof_table,
57 MeshLib::Mesh const& mesh, unsigned const integration_order) override;
58
59 void assembleConcreteProcess(const double t, double const dt,
60 std::vector<GlobalVector*> const& x,
61 std::vector<GlobalVector*> const& x_prev,
62 int const process_id, GlobalMatrix& M,
63 GlobalMatrix& K, GlobalVector& b) override;
64
66 const double t, double const dt, std::vector<GlobalVector*> const& x,
67 std::vector<GlobalVector*> const& x_prev, int const process_id,
69 GlobalMatrix& Jac) override;
70
72
73 std::vector<std::unique_ptr<TwoPhaseFlowWithPrhoLocalAssemblerInterface>>
75};
76
77} // namespace TwoPhaseFlowWithPrho
78} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::string const name
Definition Process.h:351
Handles configuration of several secondary variables from the project file.
A class to simulate the two-phase flow process with P-rho model in porous media.
TwoPhaseFlowWithPrhoProcess(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, TwoPhaseFlowWithPrhoProcessData &&process_data, SecondaryVariableCollection &&secondary_variables)
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
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 assembleWithJacobianConcreteProcess(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, GlobalMatrix &Jac) override
std::vector< std::unique_ptr< TwoPhaseFlowWithPrhoLocalAssemblerInterface > > _local_assemblers