OGS
TESProcess.h
Go to the documentation of this file.
1
11#pragma once
12
14#include "ProcessLib/Process.h"
15#include "TESAssemblyParams.h"
16#include "TESLocalAssembler.h"
17
18namespace MeshLib
19{
20class Element;
21class Mesh;
22template <typename PROP_VAL_TYPE>
23class PropertyVector;
24} // namespace MeshLib
25
26namespace ProcessLib
27{
28namespace TES
29{
30class TESProcess final : public Process
31{
32public:
34 std::string name,
35 MeshLib::Mesh& mesh,
36 std::unique_ptr<AbstractJacobianAssembler>&& jacobian_assembler,
37 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
38 parameters,
39 unsigned const integration_order,
40 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
41 process_variables,
42 SecondaryVariableCollection&& secondary_variables,
43 BaseLib::ConfigTree const& config);
44
45 void preTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
46 const double t, const double delta_t,
47 const int process_id) override;
48 void preIterationConcreteProcess(const unsigned iter,
49 GlobalVector const& x) override;
51 GlobalVector const& x) override;
52
53 bool isLinear() const override { return false; }
54
55private:
57 NumLib::LocalToGlobalIndexMap const& dof_table,
58 MeshLib::Mesh const& mesh, unsigned const integration_order) override;
59
60 void assembleConcreteProcess(const double t, double const dt,
61 std::vector<GlobalVector*> const& x,
62 std::vector<GlobalVector*> const& x_prev,
63 int const process_id, GlobalMatrix& M,
64 GlobalMatrix& K, GlobalVector& b) override;
65
67
69 const double t, double const dt, std::vector<GlobalVector*> const& x,
70 std::vector<GlobalVector*> const& x_prev, int const process_id,
71 GlobalVector& b, GlobalMatrix& Jac) override;
72
74 const double t,
75 std::vector<GlobalVector*> const& x,
76 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table,
77 std::unique_ptr<GlobalVector>& result_cache);
78
80 const double t,
81 std::vector<GlobalVector*> const& x,
82 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table,
83 std::unique_ptr<GlobalVector>& result_cache);
84
86 const double t,
87 std::vector<GlobalVector*> const& x,
88 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table,
89 std::unique_ptr<GlobalVector>& result_cache);
90
91 std::vector<std::unique_ptr<TESLocalAssemblerInterface>> _local_assemblers;
92
94
95 // used for checkBounds()
96 std::unique_ptr<GlobalVector> _x_previous_timestep;
97};
98
99} // namespace TES
100
101} // 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.
std::vector< std::unique_ptr< TESLocalAssemblerInterface > > _local_assemblers
Definition TESProcess.h:91
TESProcess(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, SecondaryVariableCollection &&secondary_variables, BaseLib::ConfigTree const &config)
GlobalVector const & computeRelativeHumidity(const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::unique_ptr< GlobalVector > &result_cache)
bool isLinear() const override
Definition TESProcess.h:53
void preTimestepConcreteProcess(std::vector< GlobalVector * > const &x, const double t, const double delta_t, const int process_id) override
NumLib::IterationResult postIterationConcreteProcess(GlobalVector const &x) override
std::unique_ptr< GlobalVector > _x_previous_timestep
Definition TESProcess.h:96
GlobalVector const & computeEquilibriumLoading(const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::unique_ptr< GlobalVector > &result_cache)
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, GlobalVector &b, GlobalMatrix &Jac) override
GlobalVector const & computeVapourPartialPressure(const double t, std::vector< GlobalVector * > const &x, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_table, std::unique_ptr< GlobalVector > &result_cache)
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
void preIterationConcreteProcess(const unsigned iter, GlobalVector const &x) override
AssemblyParams _assembly_params
Definition TESProcess.h:93
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.