ddfem 1.0.3__py3-none-any.whl → 1.0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ddfem/__init__.py +72 -0
- ddfem/__main__.py +24 -0
- ddfem/data/adapt_010e1455a389aa01992af42c0a3f4b14.cc +27 -0
- ddfem/data/femscheme_f2a3cb32a864b08c0236366e732fb908.cc +43 -0
- ddfem/data/femspace_4ff9049b6f297245e5d33296d14cd684_d5b136dbe3c5077b69c99b8c322eb563.cc +45 -0
- ddfem/data/generate.py +30 -0
- ddfem/data/hierarchicalgrid_d827e80243feae36e8b9006bb24207e7.cc +26 -0
- ddfem/data/indexset_e9c0cdc96a4fc702a0969c29910954e6.cc +32 -0
- ddfem/data/integrands_008eefa148b772fa3192dd3c1728c140v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +587 -0
- ddfem/data/integrands_00ee9b3b89e4e44212e5b7ad7948a24ev1_3_a524c1196983e65de1c06d7d6afdeb44.cc +587 -0
- ddfem/data/integrands_1da925f6548e47811d4ee37ac8afd85ev1_3_a524c1196983e65de1c06d7d6afdeb44.cc +453 -0
- ddfem/data/integrands_2339be3c67df1d67b18125c34ced69c2v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +244 -0
- ddfem/data/integrands_3a7c822d5ac1692781ee4bcf2964fce7v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +409 -0
- ddfem/data/integrands_3bde0abfafcf45a3cff4d1029568ab5cv1_3_a524c1196983e65de1c06d7d6afdeb44.cc +409 -0
- ddfem/data/integrands_472696f050a50e3f5017ab5ecdab564bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc +533 -0
- ddfem/data/integrands_5d65834d43b1dbae0ceafbcc9ec60542v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +453 -0
- ddfem/data/integrands_9fbeb56ff6a7df9b8535d767ca7725d6v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +588 -0
- ddfem/data/integrands_cf38a832d97016edac4179e31ea45a48v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +533 -0
- ddfem/data/localfunction_00f2e5593eeb23f01906255d67244f6e_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_0cb4ca9e24e2891510640b0737aaab21_a524c1196983e65de1c06d7d6afdeb44.cc +170 -0
- ddfem/data/localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44.cc +393 -0
- ddfem/data/localfunction_10ad0a2d88c74db5f4bf5f81e138974f_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_191355e6250b2d2e260d96f519ad9976_a524c1196983e65de1c06d7d6afdeb44.cc +192 -0
- ddfem/data/localfunction_1d13146d4bff10e178aba773fe2a9f1d_a524c1196983e65de1c06d7d6afdeb44.cc +263 -0
- ddfem/data/localfunction_1d27a90a52b9053192c9cc902283f79b_a524c1196983e65de1c06d7d6afdeb44.cc +189 -0
- ddfem/data/localfunction_2021505441469e99dd3c9b164e083239_a524c1196983e65de1c06d7d6afdeb44.cc +620 -0
- ddfem/data/localfunction_228c55d163ca194a905826bcc20fcbc0_a524c1196983e65de1c06d7d6afdeb44.cc +903 -0
- ddfem/data/localfunction_22e797a8f3e8c322f33c41e07bd15165_a524c1196983e65de1c06d7d6afdeb44.cc +1445 -0
- ddfem/data/localfunction_2a97db5a6a479d02138a836cb0890cf2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/localfunction_32613626342183eafa360dc1f0f18924_a524c1196983e65de1c06d7d6afdeb44.cc +1425 -0
- ddfem/data/localfunction_33933b99fbea8227fedf6cfb180ea878_a524c1196983e65de1c06d7d6afdeb44.cc +386 -0
- ddfem/data/localfunction_3e323e81c52891c0ecb656eac273e52f_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_42ff56710f3bd510798ecabb32a6cbf0_a524c1196983e65de1c06d7d6afdeb44.cc +490 -0
- ddfem/data/localfunction_42ff56710f3bd510798ecabb32a6cbf0_af122c1df944c95cd395ec0f91d0f970.cc +488 -0
- ddfem/data/localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/localfunction_6363af791dde11d699a9a3d876cc5d9a_a524c1196983e65de1c06d7d6afdeb44.cc +549 -0
- ddfem/data/localfunction_65bda5736a84d4aa0ef2d48ebcc90ed5_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/localfunction_762aa49bc5a47ad3d8d8bbde36b42ee5_a524c1196983e65de1c06d7d6afdeb44.cc +723 -0
- ddfem/data/localfunction_7d81d496538f240d504e5597484ee746_a524c1196983e65de1c06d7d6afdeb44.cc +462 -0
- ddfem/data/localfunction_83d9e6dd70d1c31c973224e210cc36b4_a524c1196983e65de1c06d7d6afdeb44.cc +647 -0
- ddfem/data/localfunction_86a0670f34bf2ac8155423a1c1bc2e75_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_a46a988b5d8571e80fd401a36d7341b7_a524c1196983e65de1c06d7d6afdeb44.cc +170 -0
- ddfem/data/localfunction_a854465b265a1a51dacb4f71f7eeb06b_a524c1196983e65de1c06d7d6afdeb44.cc +266 -0
- ddfem/data/localfunction_a8c726f728cd35d137188b33301aeef1_a524c1196983e65de1c06d7d6afdeb44.cc +176 -0
- ddfem/data/localfunction_a9bb07439605d560b583608f20441342_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/localfunction_ae8173bdb67b8ea50ce75c3912841100_a524c1196983e65de1c06d7d6afdeb44.cc +1290 -0
- ddfem/data/localfunction_aeb3d963412cdc65630e0a4c3c0dde0f_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_b20910b6c8d57cb5e6a7ff4b89b91618_a524c1196983e65de1c06d7d6afdeb44.cc +437 -0
- ddfem/data/localfunction_b8239bf849ec7c1903f627833e6dac5a_a524c1196983e65de1c06d7d6afdeb44.cc +1270 -0
- ddfem/data/localfunction_bcafb581216501f273e23c0e26cd57af_af122c1df944c95cd395ec0f91d0f970.cc +698 -0
- ddfem/data/localfunction_bdfb7ddf42a423f7d0791458634d4b8f_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_d0f33c2dc1ae0e619d85a7621c8e83a6_a524c1196983e65de1c06d7d6afdeb44.cc +325 -0
- ddfem/data/localfunction_d75993d7ae5919d23117b153e900840d_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_dd1fb4bd60f2d8b3a062dbbdaedb9fee_a524c1196983e65de1c06d7d6afdeb44.cc +869 -0
- ddfem/data/localfunction_e6b6d8d3826590442cc40f3834124254_a524c1196983e65de1c06d7d6afdeb44.cc +553 -0
- ddfem/data/localfunction_e85b93fe9b8fcd40ee82782fc600b65b_a524c1196983e65de1c06d7d6afdeb44.cc +247 -0
- ddfem/data/localfunction_f4b1d42cbb447375f39ed834570cd3f0_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
- ddfem/data/localfunction_f626cd43dc8558135fe0b32cde016644_a524c1196983e65de1c06d7d6afdeb44.cc +294 -0
- ddfem/data/referenceelements_0fff57b283123cc055345ec95574c857.cc +24 -0
- ddfem/data/referenceelements_de274310a0055100b832a0e8892b0258.cc +24 -0
- ddfem/data/referenceelements_f4457f35395151d83a965d4cf5fce70d.cc +24 -0
- ddfem/data/view_a524c1196983e65de1c06d7d6afdeb44.cc +39 -0
- ddfem/data/view_af122c1df944c95cd395ec0f91d0f970.cc +62 -0
- ddfem/examples/beam.py +2 -2
- ddfem/examples/five_circle_flat.py +18 -37
- ddfem/examples/single_circle.py +1 -1
- ddfem/examples/triple_circle.py +2 -2
- ddfem/examples/triple_circle_beam.py +2 -2
- ddfem/geometry/domain.py +1 -1
- ddfem/geometry/domain_dune.py +46 -28
- ddfem/geometry/primitive_base.py +11 -6
- ddfem/plot.py +67 -7
- {ddfem-1.0.3.dist-info → ddfem-1.0.6.dist-info}/METADATA +10 -1
- ddfem-1.0.6.dist-info/RECORD +103 -0
- ddfem-1.0.3.dist-info/RECORD +0 -41
- {ddfem-1.0.3.dist-info → ddfem-1.0.6.dist-info}/WHEEL +0 -0
- {ddfem-1.0.3.dist-info → ddfem-1.0.6.dist-info}/licenses/LICENSE +0 -0
- {ddfem-1.0.3.dist-info → ddfem-1.0.6.dist-info}/top_level.txt +0 -0
ddfem/data/integrands_472696f050a50e3f5017ab5ecdab564bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc
ADDED
@@ -0,0 +1,533 @@
|
|
1
|
+
#ifndef GuardIntegrands_472696f050a50e3f5017ab5ecdab564bv1_3
|
2
|
+
#define GuardIntegrands_472696f050a50e3f5017ab5ecdab564bv1_3
|
3
|
+
#define USING_DUNE_PYTHON 1
|
4
|
+
#include <config.h>
|
5
|
+
#include <dune/alugrid/dgf.hh>
|
6
|
+
#include <dune/alugrid/grid.hh>
|
7
|
+
#include <dune/fem/gridpart/adaptiveleafgridpart.hh>
|
8
|
+
#include <dune/fem/gridpart/filter/simple.hh>
|
9
|
+
#include <dune/fem/gridpart/filteredgridpart.hh>
|
10
|
+
#include <dune/fempy/py/gridview.hh>
|
11
|
+
#include <dune/python/grid/gridview.hh>
|
12
|
+
#include <dune/python/grid/hierarchical.hh>
|
13
|
+
#include <cmath>
|
14
|
+
#include <tuple>
|
15
|
+
#include <dune/python/pybind11/pybind11.h>
|
16
|
+
#include <dune/python/pybind11/extensions.h>
|
17
|
+
#include <dune/fempy/py/grid/gridpart.hh>
|
18
|
+
#include <dune/fempy/geometry/edgelength.hh>
|
19
|
+
#include <dune/fempy/function/virtualizedgridfunction.hh>
|
20
|
+
#include <dune/fempy/function/simplegridfunction.hh>
|
21
|
+
#include <dune/fem/misc/gridfunctionview.hh>
|
22
|
+
#include <dune/fempy/py/integrands.hh>
|
23
|
+
|
24
|
+
namespace Integrands_472696f050a50e3f5017ab5ecdab564bv1_3
|
25
|
+
{
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
// Integrands
|
31
|
+
// ----------
|
32
|
+
|
33
|
+
template< class GridPart, class Coeffbndproj, class Coeffextproj, class Coeffsdfprojfull, class Coeffphidomain, class CoeffsdfprojfullA >
|
34
|
+
struct Integrands
|
35
|
+
{
|
36
|
+
typedef GridPart GridPartType;
|
37
|
+
typedef typename GridPartType::GridViewType GridView;
|
38
|
+
typedef typename GridView::ctype ctype;
|
39
|
+
typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
|
40
|
+
typedef typename GridPartType::IntersectionType IntersectionType;
|
41
|
+
typedef typename EntityType::Geometry Geometry;
|
42
|
+
typedef typename Geometry::GlobalCoordinate GlobalCoordinateType;
|
43
|
+
typedef Dune::Fem::IntersectionSide Side;
|
44
|
+
typedef double Conepsilon;
|
45
|
+
typedef std::tuple< std::shared_ptr< Conepsilon > > ConstantTupleType;
|
46
|
+
template< std::size_t i >
|
47
|
+
using ConstantsRangeType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
|
48
|
+
typedef std::tuple< Dune::Fem::GridFunctionSpace< GridPartType, Dune::FieldVector< double, 2 > >, Dune::Fem::GridFunctionSpace< GridPartType, Dune::FieldVector< double, 2 > >, Dune::Fem::GridFunctionSpace< GridPartType, Dune::FieldVector< double, 1 > >, Dune::Fem::GridFunctionSpace< GridPartType, Dune::FieldVector< double, 1 > >, Dune::Fem::GridFunctionSpace< GridPartType, Dune::FieldVector< double, 1 > > > CoefficientFunctionSpaceTupleType;
|
49
|
+
typedef std::tuple< Coeffbndproj, Coeffextproj, Coeffsdfprojfull, Coeffphidomain, CoeffsdfprojfullA > CoefficientTupleType;
|
50
|
+
template< std::size_t i >
|
51
|
+
using CoefficientFunctionSpaceType = std::tuple_element_t< i, CoefficientFunctionSpaceTupleType >;
|
52
|
+
template< std::size_t i >
|
53
|
+
using CoefficientRangeType = typename CoefficientFunctionSpaceType< i >::RangeType;
|
54
|
+
template< std::size_t i >
|
55
|
+
using CoefficientJacobianRangeType = typename CoefficientFunctionSpaceType< i >::JacobianRangeType;
|
56
|
+
static constexpr bool gridPartValid = Dune::Fem::checkGridPartValid<GridPartType,Dune::Fem::ConstLocalFunction<Coeffbndproj>>() && Dune::Fem::checkGridPartValid<GridPartType,Dune::Fem::ConstLocalFunction<Coeffextproj>>() && Dune::Fem::checkGridPartValid<GridPartType,Dune::Fem::ConstLocalFunction<Coeffsdfprojfull>>() && Dune::Fem::checkGridPartValid<GridPartType,Dune::Fem::ConstLocalFunction<Coeffphidomain>>() && Dune::Fem::checkGridPartValid<GridPartType,Dune::Fem::ConstLocalFunction<CoeffsdfprojfullA>>();
|
57
|
+
template< std::size_t i >
|
58
|
+
using CoefficientType = std::tuple_element_t< i, CoefficientTupleType >;
|
59
|
+
template< std::size_t i >
|
60
|
+
using ConstantType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
|
61
|
+
|
62
|
+
Integrands ( const Coeffbndproj &coeffbndproj, const Coeffextproj &coeffextproj, const Coeffsdfprojfull &coeffsdfprojfull, const Coeffphidomain &coeffphidomain, const CoeffsdfprojfullA &coeffsdfprojfullA, const Dune::Fem::ParameterReader ¶meter = Dune::Fem::Parameter::container() )
|
63
|
+
: coefficients_( Dune::Fem::ConstLocalFunction< Coeffbndproj >( coeffbndproj ), Dune::Fem::ConstLocalFunction< Coeffextproj >( coeffextproj ), Dune::Fem::ConstLocalFunction< Coeffsdfprojfull >( coeffsdfprojfull ), Dune::Fem::ConstLocalFunction< Coeffphidomain >( coeffphidomain ), Dune::Fem::ConstLocalFunction< CoeffsdfprojfullA >( coeffsdfprojfullA ) )
|
64
|
+
{
|
65
|
+
std::get< 0 >( constants_ ) = std::make_shared< Conepsilon >( (Conepsilon(0)) );
|
66
|
+
}
|
67
|
+
|
68
|
+
bool init ( const EntityType &entity )
|
69
|
+
{
|
70
|
+
entity_ = entity;
|
71
|
+
std::get< 0 >( coefficients_ ).bind( this->entity() );
|
72
|
+
std::get< 1 >( coefficients_ ).bind( this->entity() );
|
73
|
+
std::get< 2 >( coefficients_ ).bind( this->entity() );
|
74
|
+
std::get< 3 >( coefficients_ ).bind( this->entity() );
|
75
|
+
std::get< 4 >( coefficients_ ).bind( this->entity() );
|
76
|
+
return true;
|
77
|
+
}
|
78
|
+
|
79
|
+
void unbind ()
|
80
|
+
{
|
81
|
+
std::get< 0 >( coefficients_ ).unbind();
|
82
|
+
std::get< 1 >( coefficients_ ).unbind();
|
83
|
+
std::get< 2 >( coefficients_ ).unbind();
|
84
|
+
std::get< 3 >( coefficients_ ).unbind();
|
85
|
+
std::get< 4 >( coefficients_ ).unbind();
|
86
|
+
}
|
87
|
+
|
88
|
+
bool init ( const IntersectionType &intersection )
|
89
|
+
{
|
90
|
+
intersection_ = intersection;
|
91
|
+
return (intersection.boundary() && init( intersection.inside() ));
|
92
|
+
}
|
93
|
+
typedef std::tuple< Dune::FieldVector< double, 1 >, Dune::FieldMatrix< double, 1, 2 > > DomainValueType;
|
94
|
+
typedef std::tuple< Dune::FieldVector< double, 1 >, Dune::FieldMatrix< double, 1, 2 > > RangeValueType;
|
95
|
+
static constexpr bool _nonlinear = false;
|
96
|
+
|
97
|
+
bool nonlinear () const
|
98
|
+
{
|
99
|
+
return _nonlinear;
|
100
|
+
}
|
101
|
+
|
102
|
+
template< class Point >
|
103
|
+
RangeValueType interior ( const Point &x, const DomainValueType &u ) const
|
104
|
+
{
|
105
|
+
using std::pow;
|
106
|
+
using std::sin;
|
107
|
+
double tmp0 = constant< 0 >();
|
108
|
+
const auto tmp1 = std::pow( tmp0, 2 );
|
109
|
+
typename CoefficientFunctionSpaceType< 3 >::RangeType tmp2 = evaluateCoefficient< 3 >( x );
|
110
|
+
const auto tmp3 = -1 * tmp2[ 0 ];
|
111
|
+
const auto tmp4 = 1 + tmp3;
|
112
|
+
const auto tmp5 = std::pow( tmp4, 2 );
|
113
|
+
typename CoefficientFunctionSpaceType< 4 >::RangeType tmp6 = evaluateCoefficient< 4 >( x );
|
114
|
+
const auto tmp7 = 1e-10 + tmp6[ 0 ];
|
115
|
+
typename CoefficientFunctionSpaceType< 0 >::RangeType tmp8 = evaluateCoefficient< 0 >( x );
|
116
|
+
const auto tmp9 = 3.141592653589793 * tmp8[ 1 ];
|
117
|
+
const auto tmp10 = std::sin( tmp9 );
|
118
|
+
const auto tmp11 = 3.141592653589793 * tmp8[ 0 ];
|
119
|
+
const auto tmp12 = std::sin( tmp11 );
|
120
|
+
const auto tmp13 = tmp12 * tmp10;
|
121
|
+
const auto tmp14 = -1 * tmp13;
|
122
|
+
const auto tmp15 = std::get< 0 >( u );
|
123
|
+
const auto tmp16 = tmp15[ 0 ] + tmp14;
|
124
|
+
const auto tmp17 = tmp6[ 0 ] * tmp16;
|
125
|
+
const auto tmp18 = tmp17 / tmp7;
|
126
|
+
const auto tmp19 = tmp18 * tmp5;
|
127
|
+
const auto tmp20 = tmp19 / tmp1;
|
128
|
+
const auto tmp21 = -1 * tmp20;
|
129
|
+
const auto tmp22 = 3 * tmp21;
|
130
|
+
typename CoefficientFunctionSpaceType< 1 >::RangeType tmp23 = evaluateCoefficient< 1 >( x );
|
131
|
+
const auto tmp24 = -1 * tmp23[ 0 ];
|
132
|
+
const auto tmp25 = 3 * tmp24;
|
133
|
+
const auto tmp26 = -1 * tmp18;
|
134
|
+
const auto tmp27 = 2 * tmp15[ 0 ];
|
135
|
+
const auto tmp28 = tmp27 + tmp26;
|
136
|
+
const auto tmp29 = tmp28 * tmp25;
|
137
|
+
const auto tmp30 = tmp2[ 0 ] * tmp29;
|
138
|
+
typename CoefficientFunctionSpaceType< 3 >::JacobianRangeType tmp31 = jacobianCoefficient< 3 >( x );
|
139
|
+
const auto tmp32 = (tmp31[ 0 ])[ 1 ] * tmp30;
|
140
|
+
const auto tmp33 = 3 * tmp23[ 1 ];
|
141
|
+
const auto tmp34 = tmp28 * tmp33;
|
142
|
+
const auto tmp35 = tmp2[ 0 ] * tmp34;
|
143
|
+
const auto tmp36 = (tmp31[ 0 ])[ 0 ] * tmp35;
|
144
|
+
const auto tmp37 = tmp36 + tmp32;
|
145
|
+
const auto tmp38 = tmp37 + tmp22;
|
146
|
+
const auto tmp39 = -1 * tmp38;
|
147
|
+
const auto tmp40 = (tmp31[ 0 ])[ 1 ] * tmp18;
|
148
|
+
const auto tmp41 = tmp23[ 1 ] * tmp23[ 1 ];
|
149
|
+
const auto tmp42 = tmp23[ 0 ] * tmp23[ 0 ];
|
150
|
+
const auto tmp43 = tmp42 + tmp41;
|
151
|
+
const auto tmp44 = 0.05 * tmp43;
|
152
|
+
const auto tmp45 = -1 * tmp44;
|
153
|
+
const auto tmp46 = 0.1 + tmp45;
|
154
|
+
const auto tmp47 = tmp46 * tmp40;
|
155
|
+
const auto tmp48 = (tmp31[ 0 ])[ 1 ] * tmp47;
|
156
|
+
const auto tmp49 = (tmp31[ 0 ])[ 0 ] * tmp18;
|
157
|
+
const auto tmp50 = tmp46 * tmp49;
|
158
|
+
const auto tmp51 = (tmp31[ 0 ])[ 0 ] * tmp50;
|
159
|
+
const auto tmp52 = tmp51 + tmp48;
|
160
|
+
const auto tmp53 = tmp52 / 4;
|
161
|
+
const auto tmp54 = tmp40 / tmp2[ 0 ];
|
162
|
+
const auto tmp55 = std::get< 1 >( u );
|
163
|
+
const auto tmp56 = (tmp55[ 0 ])[ 1 ] + tmp54;
|
164
|
+
const auto tmp57 = tmp46 * tmp56;
|
165
|
+
const auto tmp58 = 2 * tmp2[ 0 ];
|
166
|
+
const auto tmp59 = tmp58 * tmp57;
|
167
|
+
const auto tmp60 = (tmp31[ 0 ])[ 1 ] * tmp59;
|
168
|
+
const auto tmp61 = tmp49 / tmp2[ 0 ];
|
169
|
+
const auto tmp62 = (tmp55[ 0 ])[ 0 ] + tmp61;
|
170
|
+
const auto tmp63 = tmp46 * tmp62;
|
171
|
+
const auto tmp64 = tmp58 * tmp63;
|
172
|
+
const auto tmp65 = (tmp31[ 0 ])[ 0 ] * tmp64;
|
173
|
+
const auto tmp66 = tmp65 + tmp60;
|
174
|
+
const auto tmp67 = tmp66 + tmp53;
|
175
|
+
const auto tmp68 = -1 * tmp67;
|
176
|
+
const auto tmp69 = std::pow( tmp2[ 0 ], 2 );
|
177
|
+
const auto tmp70 = 0.01 * tmp15[ 0 ];
|
178
|
+
const auto tmp71 = -1 * tmp70;
|
179
|
+
const auto tmp72 = -1 * tmp43;
|
180
|
+
const auto tmp73 = 1 + tmp72;
|
181
|
+
const auto tmp74 = 0.1 * tmp73;
|
182
|
+
const auto tmp75 = tmp74 + tmp71;
|
183
|
+
const auto tmp76 = tmp75 * tmp69;
|
184
|
+
const auto tmp77 = 0.1 * tmp21;
|
185
|
+
const auto tmp78 = tmp77 + tmp76;
|
186
|
+
const auto tmp79 = tmp78 + tmp68;
|
187
|
+
const auto tmp80 = -1 * tmp79;
|
188
|
+
const auto tmp81 = tmp80 + tmp39;
|
189
|
+
const auto tmp82 = tmp63 * tmp69;
|
190
|
+
const auto tmp83 = tmp15[ 0 ] * tmp33;
|
191
|
+
const auto tmp84 = tmp83 * tmp69;
|
192
|
+
const auto tmp85 = -1 * tmp84;
|
193
|
+
const auto tmp86 = tmp85 + tmp82;
|
194
|
+
const auto tmp87 = tmp57 * tmp69;
|
195
|
+
const auto tmp88 = tmp15[ 0 ] * tmp25;
|
196
|
+
const auto tmp89 = tmp88 * tmp69;
|
197
|
+
const auto tmp90 = -1 * tmp89;
|
198
|
+
const auto tmp91 = tmp90 + tmp87;
|
199
|
+
return RangeValueType{ { tmp81 }, { { tmp86, tmp91 } } };
|
200
|
+
}
|
201
|
+
|
202
|
+
template< class Point >
|
203
|
+
auto linearizedInterior ( const Point &x, const DomainValueType &u ) const
|
204
|
+
{
|
205
|
+
using std::pow;
|
206
|
+
double tmp0 = constant< 0 >();
|
207
|
+
const auto tmp1 = std::pow( tmp0, 2 );
|
208
|
+
typename CoefficientFunctionSpaceType< 3 >::RangeType tmp2 = evaluateCoefficient< 3 >( x );
|
209
|
+
const auto tmp3 = -1 * tmp2[ 0 ];
|
210
|
+
const auto tmp4 = 1 + tmp3;
|
211
|
+
const auto tmp5 = std::pow( tmp4, 2 );
|
212
|
+
typename CoefficientFunctionSpaceType< 4 >::RangeType tmp6 = evaluateCoefficient< 4 >( x );
|
213
|
+
const auto tmp7 = 1e-10 + tmp6[ 0 ];
|
214
|
+
const auto tmp8 = tmp6[ 0 ] / tmp7;
|
215
|
+
const auto tmp9 = tmp8 * tmp5;
|
216
|
+
const auto tmp10 = tmp9 / tmp1;
|
217
|
+
const auto tmp11 = -1 * tmp10;
|
218
|
+
const auto tmp12 = 3 * tmp11;
|
219
|
+
typename CoefficientFunctionSpaceType< 1 >::RangeType tmp13 = evaluateCoefficient< 1 >( x );
|
220
|
+
const auto tmp14 = -1 * tmp13[ 0 ];
|
221
|
+
const auto tmp15 = 3 * tmp14;
|
222
|
+
const auto tmp16 = -1 * tmp8;
|
223
|
+
const auto tmp17 = 2 + tmp16;
|
224
|
+
const auto tmp18 = tmp17 * tmp15;
|
225
|
+
const auto tmp19 = tmp2[ 0 ] * tmp18;
|
226
|
+
typename CoefficientFunctionSpaceType< 3 >::JacobianRangeType tmp20 = jacobianCoefficient< 3 >( x );
|
227
|
+
const auto tmp21 = (tmp20[ 0 ])[ 1 ] * tmp19;
|
228
|
+
const auto tmp22 = 3 * tmp13[ 1 ];
|
229
|
+
const auto tmp23 = tmp17 * tmp22;
|
230
|
+
const auto tmp24 = tmp2[ 0 ] * tmp23;
|
231
|
+
const auto tmp25 = (tmp20[ 0 ])[ 0 ] * tmp24;
|
232
|
+
const auto tmp26 = tmp25 + tmp21;
|
233
|
+
const auto tmp27 = tmp26 + tmp12;
|
234
|
+
const auto tmp28 = -1 * tmp27;
|
235
|
+
const auto tmp29 = (tmp20[ 0 ])[ 1 ] * tmp8;
|
236
|
+
const auto tmp30 = tmp13[ 1 ] * tmp13[ 1 ];
|
237
|
+
const auto tmp31 = tmp13[ 0 ] * tmp13[ 0 ];
|
238
|
+
const auto tmp32 = tmp31 + tmp30;
|
239
|
+
const auto tmp33 = 0.05 * tmp32;
|
240
|
+
const auto tmp34 = -1 * tmp33;
|
241
|
+
const auto tmp35 = 0.1 + tmp34;
|
242
|
+
const auto tmp36 = tmp35 * tmp29;
|
243
|
+
const auto tmp37 = (tmp20[ 0 ])[ 1 ] * tmp36;
|
244
|
+
const auto tmp38 = (tmp20[ 0 ])[ 0 ] * tmp8;
|
245
|
+
const auto tmp39 = tmp35 * tmp38;
|
246
|
+
const auto tmp40 = (tmp20[ 0 ])[ 0 ] * tmp39;
|
247
|
+
const auto tmp41 = tmp40 + tmp37;
|
248
|
+
const auto tmp42 = tmp41 / 4;
|
249
|
+
const auto tmp43 = tmp29 / tmp2[ 0 ];
|
250
|
+
const auto tmp44 = tmp35 * tmp43;
|
251
|
+
const auto tmp45 = 2 * tmp2[ 0 ];
|
252
|
+
const auto tmp46 = tmp45 * tmp44;
|
253
|
+
const auto tmp47 = (tmp20[ 0 ])[ 1 ] * tmp46;
|
254
|
+
const auto tmp48 = tmp38 / tmp2[ 0 ];
|
255
|
+
const auto tmp49 = tmp35 * tmp48;
|
256
|
+
const auto tmp50 = tmp45 * tmp49;
|
257
|
+
const auto tmp51 = (tmp20[ 0 ])[ 0 ] * tmp50;
|
258
|
+
const auto tmp52 = tmp51 + tmp47;
|
259
|
+
const auto tmp53 = tmp52 + tmp42;
|
260
|
+
const auto tmp54 = -1 * tmp53;
|
261
|
+
const auto tmp55 = std::pow( tmp2[ 0 ], 2 );
|
262
|
+
const auto tmp56 = -0.01 * tmp55;
|
263
|
+
const auto tmp57 = 0.1 * tmp11;
|
264
|
+
const auto tmp58 = tmp57 + tmp56;
|
265
|
+
const auto tmp59 = tmp58 + tmp54;
|
266
|
+
const auto tmp60 = -1 * tmp59;
|
267
|
+
const auto tmp61 = tmp60 + tmp28;
|
268
|
+
const auto tmp62 = tmp35 * tmp45;
|
269
|
+
const auto tmp63 = (tmp20[ 0 ])[ 0 ] * tmp62;
|
270
|
+
const auto tmp64 = -1 * tmp63;
|
271
|
+
const auto tmp65 = -1 * tmp64;
|
272
|
+
const auto tmp66 = (tmp20[ 0 ])[ 1 ] * tmp62;
|
273
|
+
const auto tmp67 = -1 * tmp66;
|
274
|
+
const auto tmp68 = -1 * tmp67;
|
275
|
+
const auto tmp69 = tmp49 * tmp55;
|
276
|
+
const auto tmp70 = tmp22 * tmp55;
|
277
|
+
const auto tmp71 = -1 * tmp70;
|
278
|
+
const auto tmp72 = tmp71 + tmp69;
|
279
|
+
const auto tmp73 = tmp44 * tmp55;
|
280
|
+
const auto tmp74 = tmp15 * tmp55;
|
281
|
+
const auto tmp75 = -1 * tmp74;
|
282
|
+
const auto tmp76 = tmp75 + tmp73;
|
283
|
+
const auto tmp77 = tmp35 * tmp55;
|
284
|
+
return [ tmp61, tmp65, tmp68, tmp72, tmp76, tmp77 ] ( const DomainValueType &phi ) {
|
285
|
+
return RangeValueType{ { (tmp61 * (std::get< 0 >( phi ))[ 0 ] + tmp65 * ((std::get< 1 >( phi ))[ 0 ])[ 0 ]) + tmp68 * ((std::get< 1 >( phi ))[ 0 ])[ 1 ] }, { { tmp72 * (std::get< 0 >( phi ))[ 0 ] + tmp77 * ((std::get< 1 >( phi ))[ 0 ])[ 0 ], tmp76 * (std::get< 0 >( phi ))[ 0 ] + tmp77 * ((std::get< 1 >( phi ))[ 0 ])[ 1 ] } } };
|
286
|
+
};
|
287
|
+
}
|
288
|
+
typedef Dune::FieldVector< double, 1 > RRangeType;
|
289
|
+
typedef Dune::FieldMatrix< double, 1, GridPartType::dimension > RJacobianRangeType;
|
290
|
+
typedef Dune::Fem::BoundaryIdProvider< typename GridPartType::GridType > BoundaryIdProviderType;
|
291
|
+
typedef std::array<int,1> DirichletComponentType;
|
292
|
+
|
293
|
+
bool hasDirichletBoundary () const
|
294
|
+
{
|
295
|
+
return true;
|
296
|
+
}
|
297
|
+
|
298
|
+
bool isDirichletIntersection ( const IntersectionType &intersection, DirichletComponentType &dirichletComponent ) const
|
299
|
+
{
|
300
|
+
const int bndId = BoundaryIdProviderType::boundaryId( intersection );
|
301
|
+
{
|
302
|
+
std::fill( dirichletComponent.begin(), dirichletComponent.end(), bndId );
|
303
|
+
}
|
304
|
+
switch( bndId )
|
305
|
+
{
|
306
|
+
default:
|
307
|
+
{
|
308
|
+
int domainId;
|
309
|
+
{
|
310
|
+
using std::max;
|
311
|
+
using std::min;
|
312
|
+
using std::sqrt;
|
313
|
+
auto tmp0 = intersection.geometry().center( );
|
314
|
+
const auto tmp1 = tmp0[ 1 ] * tmp0[ 1 ];
|
315
|
+
const auto tmp2 = tmp0[ 0 ] * tmp0[ 0 ];
|
316
|
+
const auto tmp3 = tmp2 + tmp1;
|
317
|
+
const auto tmp4 = 1e-10 + tmp3;
|
318
|
+
const auto tmp5 = std::sqrt( tmp4 );
|
319
|
+
const auto tmp6 = -1.4 + tmp5;
|
320
|
+
const auto tmp7 = 1 + tmp0[ 0 ];
|
321
|
+
const auto tmp8 = tmp7 * tmp7;
|
322
|
+
const auto tmp9 = tmp1 + tmp8;
|
323
|
+
const auto tmp10 = 1e-10 + tmp9;
|
324
|
+
const auto tmp11 = std::sqrt( tmp10 );
|
325
|
+
const auto tmp12 = -0.5 + tmp11;
|
326
|
+
const auto tmp13 = -1 + tmp0[ 0 ];
|
327
|
+
const auto tmp14 = tmp13 * tmp13;
|
328
|
+
const auto tmp15 = tmp1 + tmp14;
|
329
|
+
const auto tmp16 = 1e-10 + tmp15;
|
330
|
+
const auto tmp17 = std::sqrt( tmp16 );
|
331
|
+
const auto tmp18 = -0.5 + tmp17;
|
332
|
+
const auto tmp19 = 0.8 + tmp0[ 1 ];
|
333
|
+
const auto tmp20 = tmp19 * tmp19;
|
334
|
+
const auto tmp21 = tmp2 + tmp20;
|
335
|
+
const auto tmp22 = 1e-10 + tmp21;
|
336
|
+
const auto tmp23 = std::sqrt( tmp22 );
|
337
|
+
const auto tmp24 = -0.5 + tmp23;
|
338
|
+
const auto tmp25 = -1 * tmp24;
|
339
|
+
const auto tmp26 = -0.8 + tmp0[ 1 ];
|
340
|
+
const auto tmp27 = tmp26 * tmp26;
|
341
|
+
const auto tmp28 = tmp2 + tmp27;
|
342
|
+
const auto tmp29 = 1e-10 + tmp28;
|
343
|
+
const auto tmp30 = std::sqrt( tmp29 );
|
344
|
+
const auto tmp31 = -0.5 + tmp30;
|
345
|
+
const auto tmp32 = -1 * tmp31;
|
346
|
+
const auto tmp33 = -1 + tmp5;
|
347
|
+
const auto tmp34 = std::max( tmp33, tmp32 );
|
348
|
+
const auto tmp35 = std::max( tmp34, tmp25 );
|
349
|
+
const auto tmp36 = std::min( tmp35, tmp18 );
|
350
|
+
const auto tmp37 = std::min( tmp36, tmp12 );
|
351
|
+
const auto tmp38 = std::max( tmp37, tmp6 );
|
352
|
+
domainId = (tmp38 <= 0.0 ? 1 : 0.0) < 0.5;
|
353
|
+
if (domainId)
|
354
|
+
{
|
355
|
+
std::fill( dirichletComponent.begin(), dirichletComponent.end(), 2 );
|
356
|
+
return true;
|
357
|
+
}
|
358
|
+
}
|
359
|
+
return false;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
}
|
363
|
+
|
364
|
+
template< class Point >
|
365
|
+
void dirichlet ( int bndId, const Point &x, RRangeType &result ) const
|
366
|
+
{
|
367
|
+
switch( bndId )
|
368
|
+
{
|
369
|
+
case 2:
|
370
|
+
{
|
371
|
+
using std::sin;
|
372
|
+
typename CoefficientFunctionSpaceType< 2 >::RangeType tmp0 = evaluateCoefficient< 2 >( x );
|
373
|
+
const auto tmp1 = 1e-10 + tmp0[ 0 ];
|
374
|
+
typename CoefficientFunctionSpaceType< 0 >::RangeType tmp2 = evaluateCoefficient< 0 >( x );
|
375
|
+
const auto tmp3 = 3.141592653589793 * tmp2[ 1 ];
|
376
|
+
const auto tmp4 = std::sin( tmp3 );
|
377
|
+
const auto tmp5 = 3.141592653589793 * tmp2[ 0 ];
|
378
|
+
const auto tmp6 = std::sin( tmp5 );
|
379
|
+
const auto tmp7 = tmp6 * tmp4;
|
380
|
+
const auto tmp8 = -1 * tmp7;
|
381
|
+
const auto tmp9 = tmp0[ 0 ] * tmp8;
|
382
|
+
const auto tmp10 = tmp9 / tmp1;
|
383
|
+
const auto tmp11 = -1 * tmp10;
|
384
|
+
result[ 0 ] = tmp11;
|
385
|
+
}
|
386
|
+
break;
|
387
|
+
default:
|
388
|
+
{
|
389
|
+
result = RRangeType( 0 );
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
template< class Point >
|
395
|
+
void dDirichlet ( int bndId, const Point &x, RJacobianRangeType &result ) const
|
396
|
+
{
|
397
|
+
switch( bndId )
|
398
|
+
{
|
399
|
+
case 2:
|
400
|
+
{
|
401
|
+
using std::cos;
|
402
|
+
using std::sin;
|
403
|
+
typename CoefficientFunctionSpaceType< 2 >::RangeType tmp0 = evaluateCoefficient< 2 >( x );
|
404
|
+
const auto tmp1 = 1e-10 + tmp0[ 0 ];
|
405
|
+
typename CoefficientFunctionSpaceType< 0 >::RangeType tmp2 = evaluateCoefficient< 0 >( x );
|
406
|
+
const auto tmp3 = 3.141592653589793 * tmp2[ 1 ];
|
407
|
+
const auto tmp4 = std::sin( tmp3 );
|
408
|
+
const auto tmp5 = 3.141592653589793 * tmp2[ 0 ];
|
409
|
+
const auto tmp6 = std::sin( tmp5 );
|
410
|
+
const auto tmp7 = tmp6 * tmp4;
|
411
|
+
const auto tmp8 = -1 * tmp7;
|
412
|
+
const auto tmp9 = tmp0[ 0 ] * tmp8;
|
413
|
+
const auto tmp10 = tmp9 / tmp1;
|
414
|
+
typename CoefficientFunctionSpaceType< 2 >::JacobianRangeType tmp11 = jacobianCoefficient< 2 >( x );
|
415
|
+
const auto tmp12 = (tmp11[ 0 ])[ 0 ] * tmp10;
|
416
|
+
const auto tmp13 = -1 * tmp12;
|
417
|
+
const auto tmp14 = (tmp11[ 0 ])[ 0 ] * tmp8;
|
418
|
+
const auto tmp15 = std::cos( tmp5 );
|
419
|
+
typename CoefficientFunctionSpaceType< 0 >::JacobianRangeType tmp16 = jacobianCoefficient< 0 >( x );
|
420
|
+
const auto tmp17 = 3.141592653589793 * (tmp16[ 0 ])[ 0 ];
|
421
|
+
const auto tmp18 = tmp17 * tmp15;
|
422
|
+
const auto tmp19 = tmp18 * tmp4;
|
423
|
+
const auto tmp20 = std::cos( tmp3 );
|
424
|
+
const auto tmp21 = 3.141592653589793 * (tmp16[ 1 ])[ 0 ];
|
425
|
+
const auto tmp22 = tmp21 * tmp20;
|
426
|
+
const auto tmp23 = tmp22 * tmp6;
|
427
|
+
const auto tmp24 = tmp23 + tmp19;
|
428
|
+
const auto tmp25 = -1 * tmp24;
|
429
|
+
const auto tmp26 = tmp0[ 0 ] * tmp25;
|
430
|
+
const auto tmp27 = tmp26 + tmp14;
|
431
|
+
const auto tmp28 = tmp27 + tmp13;
|
432
|
+
const auto tmp29 = tmp28 / tmp1;
|
433
|
+
const auto tmp30 = -1 * tmp29;
|
434
|
+
const auto tmp31 = (tmp11[ 0 ])[ 1 ] * tmp10;
|
435
|
+
const auto tmp32 = -1 * tmp31;
|
436
|
+
const auto tmp33 = (tmp11[ 0 ])[ 1 ] * tmp8;
|
437
|
+
const auto tmp34 = 3.141592653589793 * (tmp16[ 0 ])[ 1 ];
|
438
|
+
const auto tmp35 = tmp34 * tmp15;
|
439
|
+
const auto tmp36 = tmp35 * tmp4;
|
440
|
+
const auto tmp37 = 3.141592653589793 * (tmp16[ 1 ])[ 1 ];
|
441
|
+
const auto tmp38 = tmp37 * tmp20;
|
442
|
+
const auto tmp39 = tmp38 * tmp6;
|
443
|
+
const auto tmp40 = tmp39 + tmp36;
|
444
|
+
const auto tmp41 = -1 * tmp40;
|
445
|
+
const auto tmp42 = tmp0[ 0 ] * tmp41;
|
446
|
+
const auto tmp43 = tmp42 + tmp33;
|
447
|
+
const auto tmp44 = tmp43 + tmp32;
|
448
|
+
const auto tmp45 = tmp44 / tmp1;
|
449
|
+
const auto tmp46 = -1 * tmp45;
|
450
|
+
(result[ 0 ])[ 0 ] = tmp30;
|
451
|
+
(result[ 0 ])[ 1 ] = tmp46;
|
452
|
+
}
|
453
|
+
break;
|
454
|
+
default:
|
455
|
+
{
|
456
|
+
result = RJacobianRangeType( 0 );
|
457
|
+
}
|
458
|
+
}
|
459
|
+
}
|
460
|
+
|
461
|
+
template< std::size_t i >
|
462
|
+
const ConstantType< i > &constant () const
|
463
|
+
{
|
464
|
+
return *std::get< i >( constants_ );
|
465
|
+
}
|
466
|
+
|
467
|
+
template< std::size_t i >
|
468
|
+
ConstantType< i > &constant ()
|
469
|
+
{
|
470
|
+
return *std::get< i >( constants_ );
|
471
|
+
}
|
472
|
+
|
473
|
+
const Conepsilon &conepsilon () const
|
474
|
+
{
|
475
|
+
return *std::get< 0 >( constants_ );
|
476
|
+
}
|
477
|
+
|
478
|
+
Conepsilon &conepsilon ()
|
479
|
+
{
|
480
|
+
return *std::get< 0 >( constants_ );
|
481
|
+
}
|
482
|
+
|
483
|
+
const EntityType &entity () const
|
484
|
+
{
|
485
|
+
return entity_;
|
486
|
+
}
|
487
|
+
|
488
|
+
template< std::size_t i, class Point >
|
489
|
+
typename CoefficientFunctionSpaceType< i >::RangeType evaluateCoefficient ( const Point &x ) const
|
490
|
+
{
|
491
|
+
typename CoefficientFunctionSpaceType< i >::RangeType result;
|
492
|
+
std::get< i >( coefficients_ ).evaluate( x, result );;
|
493
|
+
return result;
|
494
|
+
}
|
495
|
+
|
496
|
+
template< std::size_t i, class Point >
|
497
|
+
typename CoefficientFunctionSpaceType< i >::JacobianRangeType jacobianCoefficient ( const Point &x ) const
|
498
|
+
{
|
499
|
+
typename CoefficientFunctionSpaceType< i >::JacobianRangeType result;
|
500
|
+
std::get< i >( coefficients_ ).jacobian( x, result );;
|
501
|
+
return result;
|
502
|
+
}
|
503
|
+
|
504
|
+
template< std::size_t i, class Point >
|
505
|
+
typename CoefficientFunctionSpaceType< i >::HessianRangeType hessianCoefficient ( const Point &x ) const
|
506
|
+
{
|
507
|
+
typename CoefficientFunctionSpaceType< i >::HessianRangeType result;
|
508
|
+
std::get< i >( coefficients_ ).hessian( x, result );;
|
509
|
+
return result;
|
510
|
+
}
|
511
|
+
EntityType entity_;
|
512
|
+
IntersectionType intersection_;
|
513
|
+
ConstantTupleType constants_;
|
514
|
+
std::tuple< Dune::Fem::ConstLocalFunction< Coeffbndproj >, Dune::Fem::ConstLocalFunction< Coeffextproj >, Dune::Fem::ConstLocalFunction< Coeffsdfprojfull >, Dune::Fem::ConstLocalFunction< Coeffphidomain >, Dune::Fem::ConstLocalFunction< CoeffsdfprojfullA > > coefficients_;
|
515
|
+
};
|
516
|
+
|
517
|
+
} // namespace Integrands_472696f050a50e3f5017ab5ecdab564bv1_3
|
518
|
+
|
519
|
+
PYBIND11_MODULE( integrands_472696f050a50e3f5017ab5ecdab564bv1_3_a524c1196983e65de1c06d7d6afdeb44, module )
|
520
|
+
{
|
521
|
+
typedef typename Dune::FemPy::GridPart< Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true > > GridPart;
|
522
|
+
typedef Integrands_472696f050a50e3f5017ab5ecdab564bv1_3::Integrands< GridPart, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 2 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 2 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > > > Integrands;
|
523
|
+
if constexpr( Integrands::gridPartValid )
|
524
|
+
{
|
525
|
+
auto cls = Dune::Python::insertClass<Integrands>(module,"Integrands",Dune::Python::GenerateTypeName("Integrands_472696f050a50e3f5017ab5ecdab564bv1_3::Integrands< GridPart, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 2 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 2 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > >, Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > > >"), Dune::Python::IncludeFiles({"python/dune/generated/integrands_472696f050a50e3f5017ab5ecdab564bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc"})).first;
|
526
|
+
Dune::FemPy::registerIntegrands< Integrands >( module, cls );
|
527
|
+
cls.def( pybind11::init( [] ( const Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 2 > > &coeffbndproj, const Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 2 > > &coeffextproj, const Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > > &coeffsdfprojfull, const Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > > &coeffphidomain, const Dune::FemPy::VirtualizedGridFunction< Dune::FemPy::GridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>, Dune::FieldVector< double, 1 > > &coeffsdfprojfullA ) { return new Integrands( coeffbndproj, coeffextproj, coeffsdfprojfull, coeffphidomain, coeffsdfprojfullA ); } ), pybind11::keep_alive< 1, 2 >(), pybind11::keep_alive< 1, 3 >(), pybind11::keep_alive< 1, 4 >(), pybind11::keep_alive< 1, 5 >(), pybind11::keep_alive< 1, 6 >() );
|
528
|
+
cls.def_property( "epsilon", [] ( Integrands &self ) -> Integrands::Conepsilon { return self.conepsilon(); }, [] ( Integrands &self, const Integrands::Conepsilon &v ) { self.conepsilon() = v; } );
|
529
|
+
cls.def_property_readonly( "virtualized", [] ( Integrands& ) -> bool { return true;});
|
530
|
+
cls.def_property_readonly( "hasDirichletBoundary", [] ( Integrands& ) -> bool { return true;});
|
531
|
+
}
|
532
|
+
}
|
533
|
+
#endif // GuardIntegrands_472696f050a50e3f5017ab5ecdab564bv1_3
|