OGS
WellboreSimulatorProcess.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "ProcessLib/Process.h"
15
16namespace NumLib
17{
18class LocalToGlobalIndexMap;
19}
20
21namespace ProcessLib
22{
23namespace WellboreSimulator
24{
25class WellboreSimulatorLocalAssemblerInterface;
26
32{
33public:
35 std::string name,
36 MeshLib::Mesh& mesh,
37 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
38 jacobian_assembler,
39 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
40 parameters,
41 unsigned const integration_order,
42 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
43 process_variables,
44 WellboreSimulatorProcessData&& process_data,
45 SecondaryVariableCollection&& secondary_variables);
48
49 bool isLinear() const override { return false; }
51
52private:
54 NumLib::LocalToGlobalIndexMap const& dof_table,
55 MeshLib::Mesh const& mesh,
56 unsigned const integration_order) override;
57
58 void assembleConcreteProcess(const double t, double const dt,
59 std::vector<GlobalVector*> const& x,
60 std::vector<GlobalVector*> const& x_prev,
61 int const process_id, GlobalMatrix& M,
62 GlobalMatrix& K, GlobalVector& b) override;
63
65 const double t, double const dt, std::vector<GlobalVector*> const& x,
66 std::vector<GlobalVector*> const& x_prev, int const process_id,
67 GlobalVector& b, GlobalMatrix& Jac) override;
68
70
71 std::vector<std::unique_ptr<WellboreSimulatorLocalAssemblerInterface>>
73
74 void computeSecondaryVariableConcrete(double const t,
75 double const dt,
76 std::vector<GlobalVector*> const& x,
77 GlobalVector const& x_dot,
78 int const process_id) override;
79
80 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
81 std::vector<GlobalVector*> const& x_dot,
82 const double t,
83 const double dt,
84 int const process_id) override;
85};
86
87} // namespace WellboreSimulator
88} // 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.
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_dot, const double t, const double dt, int const process_id) override
WellboreSimulatorProcess(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, WellboreSimulatorProcessData &&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
std::vector< std::unique_ptr< WellboreSimulatorLocalAssemblerInterface > > _local_assemblers
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_dot, int const process_id) 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