DUNE-ACFEM (2.5.1)

zerooperatorparts.hh
1#ifndef __DUNE_ACFEM_MODELS_OPERATORPARTS_ZEROOPERATORPART_HH__
2#define __DUNE_ACFEM_MODELS_OPERATORPARTS_ZEROOPERATORPART_HH__
3
4#include "../operatorparts/operatorpartsexpressionbase.hh"
5
6namespace Dune {
7
8 namespace ACFem {
9
28 template<class FunctionSpace>
30 : public ZeroOperatorPartsExpression<ZeroOperatorParts<FunctionSpace> >
31 {
36 public:
37 ZeroOperatorParts(const std::string& name = "0")
38 : name_(name)
39 {}
40
41 std::string name() const
42 {
43 return name_;
44 }
45
46 protected:
47 const std::string name_;
48 };
49
50 template<class FunctionSpace>
51 struct OperatorPartsTraits<ZeroOperatorParts<FunctionSpace> >
52 : public DefaultOperatorPartsTraits<FunctionSpace>
53 {
54 enum StructureFlage {
55 isLinear = true,
56 isSymmetric = true,
57 isSemiDefinite = true
58 };
59
61 hasFlux = false,
62 hasSources = false,
63 hasRobinFlux = false,
64 };
65
66 };
67
69
71
73
74 } // namespace ACFem
75
76} //Namespace Dune
77
78
79#endif // __DUNE_ACFEM_MODELS_MODULES_ZEROMODEL_HH__
Default model implementation.
Definition: operatorparts.hh:387
Interface class for second order elliptic models.
Definition: operatorparts.hh:92
Define a simple zero model to optimize expression templates.
Definition: zerooperatorparts.hh:31
A structure defining some trivial default values for the template structure OperatorPartsTraits<Parts...
Definition: operatorparts.hh:45
ConstituentFlags
Provide information about the constituents of the model.
Definition: operatorparts.hh:62
Traits-template which has to be specialized for each individual model.
Definition: operatorparts.hh:36
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)