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,
72 GlobalMatrix& Jac) override;
73
75 const double t,
76 std::vector<GlobalVector*> const& x,
77 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table,
78 std::unique_ptr<GlobalVector>& result_cache);
79
81 const double t,
82 std::vector<GlobalVector*> const& x,
83 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table,
84 std::unique_ptr<GlobalVector>& result_cache);
85
87 const double t,
88 std::vector<GlobalVector*> const& x,
89 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_table,
90 std::unique_ptr<GlobalVector>& result_cache);
91
92 std::vector<std::unique_ptr<TESLocalAssemblerInterface>> _local_assemblers;
93
95
96 // used for checkBounds()
97 std::unique_ptr<GlobalVector> _x_previous_timestep;
98};
99
100} // namespace TES
101
102} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
std::string const name
Definition Process.h:354
Handles configuration of several secondary variables from the project file.
std::vector< std::unique_ptr< TESLocalAssemblerInterface > > _local_assemblers
Definition TESProcess.h:92
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 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
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:97
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
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:94
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.