OGS
LiquidFlowProcess.h
Go to the documentation of this file.
1
13#pragma once
14
15#include <memory>
16
17#include "LiquidFlowData.h"
20#include "ProcessLib/Process.h"
22
23namespace MeshLib
24{
25class Element;
26class Mesh;
27template <typename PROP_VAL_TYPE>
28class PropertyVector;
29}
30
31namespace ProcessLib
32{
33namespace LiquidFlow
34{
81class LiquidFlowProcess final : public Process
82{
83public:
85 std::string name, MeshLib::Mesh& mesh,
86 std::unique_ptr<AbstractJacobianAssembler>&& jacobian_assembler,
87 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
88 parameters,
89 unsigned const integration_order,
90 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
91 process_variables,
92 LiquidFlowData&& process_data,
93 SecondaryVariableCollection&& secondary_variables,
94 std::unique_ptr<ProcessLib::SurfaceFluxData>&& surfaceflux,
95 bool const is_linear);
96
97 void computeSecondaryVariableConcrete(double const t, double const dt,
98 std::vector<GlobalVector*> const& x,
99 GlobalVector const& x_prev,
100 int const process_id) override;
101
102 bool isLinear() const override { return _is_linear; }
103
104 Eigen::Vector3d getFlux(std::size_t const element_id,
105 MathLib::Point3d const& p,
106 double const t,
107 std::vector<GlobalVector*> const& x) const override;
108
109 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
110 std::vector<GlobalVector*> const& x_prev,
111 const double t,
112 const double dt,
113 int const process_id) override;
114
115private:
117 NumLib::LocalToGlobalIndexMap const& dof_table,
118 MeshLib::Mesh const& mesh, unsigned const integration_order) override;
119
120 void assembleConcreteProcess(const double t, double const dt,
121 std::vector<GlobalVector*> const& x,
122 std::vector<GlobalVector*> const& x_prev,
123 int const process_id, GlobalMatrix& M,
124 GlobalMatrix& K, GlobalVector& b) override;
125
127 const double t, double const dt, std::vector<GlobalVector*> const& x,
128 std::vector<GlobalVector*> const& x_prev, int const process_id,
129 GlobalVector& b, GlobalMatrix& Jac) override;
130
132
133 std::vector<std::unique_ptr<LiquidFlowLocalAssemblerInterface>>
135
136 std::unique_ptr<ProcessLib::SurfaceFluxData> _surfaceflux;
138 bool _is_linear = false;
139};
140
141} // namespace LiquidFlow
142} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
A class to simulate the single phase flow process in porous media described by the governing equation...
Eigen::Vector3d getFlux(std::size_t const element_id, MathLib::Point3d const &p, double const t, std::vector< GlobalVector * > const &x) 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
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, const double t, const double dt, int const process_id) override
std::vector< std::unique_ptr< LiquidFlowLocalAssemblerInterface > > _local_assemblers
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id) override
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
std::unique_ptr< ProcessLib::SurfaceFluxData > _surfaceflux
LiquidFlowProcess(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, LiquidFlowData &&process_data, SecondaryVariableCollection &&secondary_variables, std::unique_ptr< ProcessLib::SurfaceFluxData > &&surfaceflux, bool const is_linear)
MeshLib::PropertyVector< double > * _hydraulic_flow
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
std::string const name
Definition Process.h:362
Handles configuration of several secondary variables from the project file.