OGS
HeatTransportBHELocalAssemblerSoil.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <vector>
7
16#include "SecondaryData.h"
17
18namespace ProcessLib
19{
20namespace HeatTransportBHE
21{
22template <typename ShapeFunction>
25{
26public:
28 ShapeMatrixPolicyType<ShapeFunction, 3 /* GlobalDim */>;
32
36
40 delete;
41
43 MeshLib::Element const& e,
44 NumLib::GenericIntegrationMethod const& integration_method,
45 bool const is_axially_symmetric,
46 HeatTransportBHEProcessData& process_data);
47
48 void assemble(double const /*t*/, double const /*dt*/,
49 std::vector<double> const& /*local_x*/,
50 std::vector<double> const& /*local_x_prev*/,
51 std::vector<double>& /*local_M_data*/,
52 std::vector<double>& /*local_K_data*/,
53 std::vector<double>& /*local_b_data*/) override;
54
55 void assembleWithJacobian(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_rhs_data,
59 std::vector<double>& local_Jac_data) override;
60
61 Eigen::Map<const Eigen::RowVectorXd> getShapeMatrix(
62 const unsigned integration_point) const override
63 {
64 auto const& N = _secondary_data.N[integration_point];
65
66 // assumes N is stored contiguously in memory
67 return Eigen::Map<const Eigen::RowVectorXd>(N.data(), N.size());
68 }
69
70private:
72
73 std::vector<
75 Eigen::aligned_allocator<IntegrationPointDataSoil<
78
80
81 std::vector<ShapeMatrices, Eigen::aligned_allocator<ShapeMatrices>>
83
85
87};
88} // namespace HeatTransportBHE
89} // namespace ProcessLib
90
EigenFixedShapeMatrixPolicy< ShapeFunction, GlobalDim > ShapeMatrixPolicyType
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