OGS
ThermoRichardsFlowProcess.h
Go to the documentation of this file.
1
11#pragma once
12
15#include "ProcessLib/Process.h"
17
18namespace ProcessLib
19{
20namespace ThermoRichardsFlow
21{
82{
83public:
85 std::string name,
86 MeshLib::Mesh& mesh,
87 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
88 jacobian_assembler,
89 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
90 parameters,
91 unsigned const integration_order,
92 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
93 process_variables,
94 ThermoRichardsFlowProcessData&& process_data,
95 SecondaryVariableCollection&& secondary_variables,
96 bool const use_monolithic_scheme);
97
100
101 bool isLinear() const override { return false; }
103
104private:
106
108 NumLib::LocalToGlobalIndexMap const& dof_table,
109 MeshLib::Mesh const& mesh,
110 unsigned const integration_order) override;
111
112 void setInitialConditionsConcreteProcess(std::vector<GlobalVector*>& x,
113 double const t,
114 int const /*process_id*/) override;
115
116 void assembleConcreteProcess(const double t, double const dt,
117 std::vector<GlobalVector*> const& x,
118 std::vector<GlobalVector*> const& x_prev,
119 int const process_id, GlobalMatrix& M,
120 GlobalMatrix& K, GlobalVector& b) override;
121
123 const double t, double const dt, std::vector<GlobalVector*> const& x,
124 std::vector<GlobalVector*> const& x_prev, int const process_id,
125 GlobalVector& b, GlobalMatrix& Jac) override;
126
127 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
128 std::vector<GlobalVector*> const& x_prev,
129 double const t, double const dt,
130 const int process_id) override;
131
132private:
133 std::vector<MeshLib::Node*> _base_nodes;
134 std::unique_ptr<MeshLib::MeshSubset const> _mesh_subset_base_nodes;
136
138
139 std::vector<std::unique_ptr<LocalAssemblerIF>> _local_assemblers;
140
144
145 void computeSecondaryVariableConcrete(double const t, double const dt,
146 std::vector<GlobalVector*> const& x,
147 GlobalVector const& x_prev,
148 int const process_id) override;
149
152};
153
154} // namespace ThermoRichardsFlow
155} // namespace ProcessLib
MathLib::SparsityPattern< GlobalIndexType > GlobalSparsityPattern
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::string const name
Definition Process.h:362
std::unique_ptr< ProcessLib::AbstractJacobianAssembler > _jacobian_assembler
Definition Process.h:376
Handles configuration of several secondary variables from the project file.
Global assembler for the monolithic scheme of the non-isothermal Richards flow.
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, double const t, double const dt, const int process_id) override
std::vector< std::unique_ptr< LocalAssemblerIF > > _local_assemblers
void setInitialConditionsConcreteProcess(std::vector< GlobalVector * > &x, double const t, int const) override
std::unique_ptr< MeshLib::MeshSubset const > _mesh_subset_base_nodes
void computeSecondaryVariableConcrete(double const t, double const dt, std::vector< GlobalVector * > const &x, GlobalVector const &x_prev, int const process_id) override
ThermoRichardsFlowProcess(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, ThermoRichardsFlowProcessData &&process_data, SecondaryVariableCollection &&secondary_variables, bool const use_monolithic_scheme)
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 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