OGS
HeatTransportBHELocalAssemblerSoil.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <vector>
14
23#include "SecondaryData.h"
24
25namespace ProcessLib
26{
27namespace HeatTransportBHE
28{
29template <typename ShapeFunction>
32{
33public:
35 ShapeMatrixPolicyType<ShapeFunction, 3 /* GlobalDim */>;
39
43
47 delete;
48
50 MeshLib::Element const& e,
51 NumLib::GenericIntegrationMethod const& integration_method,
52 bool const is_axially_symmetric,
53 HeatTransportBHEProcessData& process_data);
54
55 void assemble(double const /*t*/, double const /*dt*/,
56 std::vector<double> const& /*local_x*/,
57 std::vector<double> const& /*local_x_prev*/,
58 std::vector<double>& /*local_M_data*/,
59 std::vector<double>& /*local_K_data*/,
60 std::vector<double>& /*local_b_data*/) override;
61
62 void assembleWithJacobian(double const t, double const dt,
63 std::vector<double> const& local_x,
64 std::vector<double> const& local_x_prev,
65 std::vector<double>& local_rhs_data,
66 std::vector<double>& local_Jac_data) override;
67
68 Eigen::Map<const Eigen::RowVectorXd> getShapeMatrix(
69 const unsigned integration_point) const override
70 {
71 auto const& N = _secondary_data.N[integration_point];
72
73 // assumes N is stored contiguously in memory
74 return Eigen::Map<const Eigen::RowVectorXd>(N.data(), N.size());
75 }
76
77private:
79
80 std::vector<
82 Eigen::aligned_allocator<IntegrationPointDataSoil<
85
87
88 std::vector<ShapeMatrices, Eigen::aligned_allocator<ShapeMatrices>>
90
91 std::size_t const _element_id;
92
94};
95} // namespace HeatTransportBHE
96} // namespace ProcessLib
97
HeatTransportBHELocalAssemblerSoil(HeatTransportBHELocalAssemblerSoil &&)=delete
typename ShapeMatricesType::GlobalDimNodalMatrixType GlobalDimNodalMatrixType
std::vector< ShapeMatrices, Eigen::aligned_allocator< ShapeMatrices > > _shape_matrices
void assemble(double const, double const, std::vector< double > const &, std::vector< double > const &, std::vector< double > &, std::vector< double > &, std::vector< double > &) override
void assembleWithJacobian(double const t, double const dt, std::vector< double > const &local_x, std::vector< double > const &local_x_prev, std::vector< double > &local_rhs_data, std::vector< double > &local_Jac_data) override
std::vector< IntegrationPointDataSoil< NodalRowVectorType, GlobalDimNodalMatrixType >, Eigen::aligned_allocator< IntegrationPointDataSoil< NodalRowVectorType, GlobalDimNodalMatrixType > > > _ip_data
Eigen::Map< const Eigen::RowVectorXd > getShapeMatrix(const unsigned integration_point) const override
Provides the shape matrix at the given integration point.
HeatTransportBHELocalAssemblerSoil(HeatTransportBHELocalAssemblerSoil const &)=delete
NumLib::ShapeMatrices< NodalRowVectorType, DimNodalMatrixType, DimMatrixType, GlobalDimNodalMatrixType > ShapeMatrices
MatrixType< ShapeFunction::NPOINTS, ShapeFunction::NPOINTS > NodalMatrixType
MatrixType< GlobalDim, ShapeFunction::NPOINTS > GlobalDimNodalMatrixType
VectorType< ShapeFunction::NPOINTS > NodalVectorType
RowVectorType< ShapeFunction::NPOINTS > NodalRowVectorType
std::vector< ShapeMatrixType, Eigen::aligned_allocator< ShapeMatrixType > > N