OGS
HTProcess.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <array>
14
15#include "HTProcessData.h"
18#include "ProcessLib/Process.h"
19
20namespace NumLib
21{
22class LocalToGlobalIndexMap;
23}
24
25namespace ProcessLib
26{
27struct SurfaceFluxData;
28
29namespace HT
30{
31class HTLocalAssemblerInterface;
32
52class HTProcess final : public Process
53{
54public:
56 std::string name,
57 MeshLib::Mesh& mesh,
58 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&&
59 jacobian_assembler,
60 std::vector<std::unique_ptr<ParameterLib::ParameterBase>> const&
61 parameters,
62 unsigned const integration_order,
63 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>&&
64 process_variables,
65 HTProcessData&& process_data,
66 SecondaryVariableCollection&& secondary_variables,
67 bool const use_monolithic_scheme,
68 std::unique_ptr<ProcessLib::SurfaceFluxData>&& surfaceflux);
71
72 bool isLinear() const override { return false; }
74
75 Eigen::Vector3d getFlux(std::size_t element_id,
76 MathLib::Point3d const& p,
77 double const t,
78 std::vector<GlobalVector*> const& x) const override;
79
80 void postTimestepConcreteProcess(std::vector<GlobalVector*> const& x,
81 std::vector<GlobalVector*> const& x_prev,
82 const double t,
83 const double delta_t,
84 int const process_id) override;
85
86private:
88 NumLib::LocalToGlobalIndexMap const& dof_table,
89 MeshLib::Mesh const& mesh,
90 unsigned const integration_order) override;
91
92 void assembleConcreteProcess(const double t, double const dt,
93 std::vector<GlobalVector*> const& x,
94 std::vector<GlobalVector*> const& x_prev,
95 int const process_id, GlobalMatrix& M,
96 GlobalMatrix& K, GlobalVector& b) override;
97
99 const double t, double const dt, std::vector<GlobalVector*> const& x,
100 std::vector<GlobalVector*> const& x_prev, int const process_id,
101 GlobalVector& b, GlobalMatrix& Jac) override;
102
106 std::tuple<NumLib::LocalToGlobalIndexMap*, bool>
107 getDOFTableForExtrapolatorData() const override;
108
110
111 std::vector<std::unique_ptr<HTLocalAssemblerInterface>> _local_assemblers;
112
113 std::unique_ptr<ProcessLib::SurfaceFluxData> _surfaceflux;
114};
115
116} // namespace HT
117} // namespace ProcessLib
Global vector based on Eigen vector.
Definition EigenVector.h:25
void initializeConcreteProcess(NumLib::LocalToGlobalIndexMap const &dof_table, MeshLib::Mesh const &mesh, unsigned const integration_order) override
Process specific initialization called by initialize().
Definition HTProcess.cpp:47
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
std::tuple< NumLib::LocalToGlobalIndexMap *, bool > getDOFTableForExtrapolatorData() const override
HTProcess(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, HTProcessData &&process_data, SecondaryVariableCollection &&secondary_variables, bool const use_monolithic_scheme, std::unique_ptr< ProcessLib::SurfaceFluxData > &&surfaceflux)
Definition HTProcess.cpp:27
std::unique_ptr< ProcessLib::SurfaceFluxData > _surfaceflux
Definition HTProcess.h:113
Eigen::Vector3d getFlux(std::size_t element_id, MathLib::Point3d const &p, double const t, std::vector< GlobalVector * > const &x) const override
bool isLinear() const override
Definition HTProcess.h:72
HTProcessData _process_data
Definition HTProcess.h:109
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
Definition HTProcess.cpp:76
void postTimestepConcreteProcess(std::vector< GlobalVector * > const &x, std::vector< GlobalVector * > const &x_prev, const double t, const double delta_t, int const process_id) override
std::vector< std::unique_ptr< HTLocalAssemblerInterface > > _local_assemblers
Definition HTProcess.h:111
std::string const name
Definition Process.h:362
Handles configuration of several secondary variables from the project file.