OGS
PythonSourceTermLocalAssembler.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include "
PythonSourceTerm.h
"
14
#include "
Utils/BcAndStLocalAssemblerImpl.h
"
15
16
namespace
ProcessLib
17
{
18
namespace
SourceTerms
19
{
20
namespace
Python
21
{
22
template
<
typename
ShapeFunction,
typename
LowerOrderShapeFunction,
23
int
GlobalDim>
24
class
PythonSourceTermLocalAssembler
final
25
:
public
PythonSourceTermLocalAssemblerInterface
26
{
27
using
LocAsmImpl
= ProcessLib::BoundaryConditionAndSourceTerm::Python::
28
BcAndStLocalAssemblerImpl<
PythonStData
, ShapeFunction,
29
LowerOrderShapeFunction, GlobalDim>;
30
using
Traits
=
typename
LocAsmImpl::Traits;
31
32
public
:
33
PythonSourceTermLocalAssembler
(
34
MeshLib::Element
const
& e,
35
std::size_t
const
/*local_matrix_size*/
,
36
NumLib::GenericIntegrationMethod
const
& integration_method,
37
bool
const
is_axially_symmetric,
38
PythonStData
const
& data)
39
:
impl_
{e, integration_method, is_axially_symmetric, data}
40
{
41
}
42
43
void
assemble
(std::size_t
const
source_term_element_id,
44
NumLib::LocalToGlobalIndexMap
const
& dof_table_source_term,
45
double
const
t,
const
GlobalVector
& x,
GlobalVector
& b,
46
GlobalMatrix
*
const
Jac)
override
47
{
48
impl_
.assemble(source_term_element_id, dof_table_source_term, t, x, b,
49
Jac);
50
}
51
52
private
:
53
LocAsmImpl
const
impl_
;
54
};
55
56
}
// namespace Python
57
}
// namespace SourceTerms
58
}
// namespace ProcessLib
BcAndStLocalAssemblerImpl.h
PythonSourceTerm.h
MathLib::EigenMatrix
Definition
EigenMatrix.h:29
MathLib::EigenVector
Global vector based on Eigen vector.
Definition
EigenVector.h:25
MeshLib::Element
Definition
Element.h:34
NumLib::GenericIntegrationMethod
Definition
GenericIntegrationMethod.h:24
NumLib::LocalToGlobalIndexMap
Definition
LocalToGlobalIndexMap.h:41
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssemblerInterface
Definition
PythonSourceTermLocalAssemblerInterface.h:19
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler
Definition
PythonSourceTermLocalAssembler.h:26
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler::impl_
LocAsmImpl const impl_
Definition
PythonSourceTermLocalAssembler.h:53
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler::LocAsmImpl
ProcessLib::BoundaryConditionAndSourceTerm::Python:: BcAndStLocalAssemblerImpl< PythonStData, ShapeFunction, LowerOrderShapeFunction, GlobalDim > LocAsmImpl
Definition
PythonSourceTermLocalAssembler.h:27
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler::Traits
typename LocAsmImpl::Traits Traits
Definition
PythonSourceTermLocalAssembler.h:30
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler::PythonSourceTermLocalAssembler
PythonSourceTermLocalAssembler(MeshLib::Element const &e, std::size_t const, NumLib::GenericIntegrationMethod const &integration_method, bool const is_axially_symmetric, PythonStData const &data)
Definition
PythonSourceTermLocalAssembler.h:33
ProcessLib::SourceTerms::Python::PythonSourceTermLocalAssembler::assemble
void assemble(std::size_t const source_term_element_id, NumLib::LocalToGlobalIndexMap const &dof_table_source_term, double const t, const GlobalVector &x, GlobalVector &b, GlobalMatrix *const Jac) override
Definition
PythonSourceTermLocalAssembler.h:43
ProcessLib
Definition
ProjectData.h:51
ProcessLib::SourceTerms::Python::PythonStData
Definition
PythonSourceTerm.h:27
ProcessLib
BoundaryConditionAndSourceTerm
Python
PythonSourceTermLocalAssembler.h
Generated by
1.12.0