ddfem 1.0.7__py3-none-any.whl → 1.0.9__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.
Files changed (73) hide show
  1. ddfem/__main__.py +43 -7
  2. ddfem/data/2.11.dev20250709/boundary.modules +9 -0
  3. ddfem/data/2.11.dev20250709/femscheme_ddd4458a70dff1f9762ec5a96ca4ba9c.cc +43 -0
  4. ddfem/data/2.11.dev20250709/femspace_90f0a9524a8cb701e8ee5027b7658a0e_0faf32f13b591f4f60f83c591507b9be.cc +40 -0
  5. ddfem/data/2.11.dev20250709/geometry.modules +84 -0
  6. ddfem/data/2.11.dev20250709/hierarchicalgrid_966e2a5c8356c5b278ccd3acad180f0a.cc +30 -0
  7. ddfem/data/{2.11.dev20250326/integrands_c7ee79ef352597693466ebc895f89b17v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → 2.11.dev20250709/integrands_2e5e6f48655bd358419554a0857f697bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  8. ddfem/data/{2.11.dev20250326/integrands_35d2bd9aedbe0c70a7d3804f461aa3a2v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → 2.11.dev20250709/integrands_563572f4cb20b041e8198ba7d5f88584v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  9. ddfem/data/{2.11.dev20250326/integrands_8d076606b6431bd52818b74371b326fev1_3_a524c1196983e65de1c06d7d6afdeb44.cc → 2.11.dev20250709/integrands_5e1afa60a15644998389a84306246ea5v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  10. ddfem/data/2.11.dev20250709/integrands_ed7208bd651abb351e34c9990e0313bcv1_3_a524c1196983e65de1c06d7d6afdeb44.cc +427 -0
  11. ddfem/data/{2.11.dev20250326/integrands_6da979bc28230b7c9b9703e3f1014016v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → 2.11.dev20250709/integrands_f3ca00a2ef95c9a48de9ec1b807b1b30v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  12. ddfem/data/2.11.dev20250709/intro.modules +109 -0
  13. ddfem/data/2.11.dev20250709/localfunction_c5ebc4ae4b5d3bad6be770eb08c50d08_19659fe2f2f74bcfb5d532f1a0d38be9.cc +1131 -0
  14. ddfem/data/2.11.dev20250709/localfunction_e4557ecff74fe5b37313674e67db2782_a524c1196983e65de1c06d7d6afdeb44.cc +135 -0
  15. ddfem/data/{2.11.dev20250326/localfunction_e85b93fe9b8fcd40ee82782fc600b65b_a524c1196983e65de1c06d7d6afdeb44.cc → 2.11.dev20250709/localfunction_e69118a51208cfab8a028711e966e76c_19659fe2f2f74bcfb5d532f1a0d38be9.cc} +78 -89
  16. ddfem/data/2.11.dev20250709/localfunction_f4583c5cc10d24a8bdedf7510ce9da7b_a524c1196983e65de1c06d7d6afdeb44.cc +299 -0
  17. ddfem/data/2.11.dev20250709/localfunction_fc22d5adaf3b9563160dc2aec55e8ba1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +113 -0
  18. ddfem/data/2.11.dev20250709/transformers.modules +13 -0
  19. ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/view_a524c1196983e65de1c06d7d6afdeb44.cc +1 -1
  20. ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/view_af122c1df944c95cd395ec0f91d0f970.cc +1 -1
  21. ddfem/data/2.11.dev20250709/yaspcoordinates_dim2_ctdouble.cc +55 -0
  22. ddfem/data/generate.py +5 -4
  23. ddfem/geometry/__init__.py +2 -0
  24. ddfem/plot.py +6 -3
  25. {ddfem-1.0.7.dist-info → ddfem-1.0.9.dist-info}/METADATA +12 -5
  26. {ddfem-1.0.7.dist-info → ddfem-1.0.9.dist-info}/RECORD +62 -60
  27. ddfem/data/2.11.dev20250326/localfunction_0cb4ca9e24e2891510640b0737aaab21_a524c1196983e65de1c06d7d6afdeb44.cc +0 -170
  28. ddfem/data/2.11.dev20250326/localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44.cc +0 -393
  29. ddfem/data/2.11.dev20250326/localfunction_2021505441469e99dd3c9b164e083239_a524c1196983e65de1c06d7d6afdeb44.cc +0 -620
  30. ddfem/data/2.11.dev20250326/localfunction_2a97db5a6a479d02138a836cb0890cf2_a524c1196983e65de1c06d7d6afdeb44.cc +0 -173
  31. ddfem/data/2.11.dev20250326/localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44.cc +0 -173
  32. ddfem/data/2.11.dev20250326/localfunction_6363af791dde11d699a9a3d876cc5d9a_a524c1196983e65de1c06d7d6afdeb44.cc +0 -549
  33. ddfem/data/2.11.dev20250326/localfunction_65bda5736a84d4aa0ef2d48ebcc90ed5_a524c1196983e65de1c06d7d6afdeb44.cc +0 -173
  34. ddfem/data/2.11.dev20250326/localfunction_7d81d496538f240d504e5597484ee746_a524c1196983e65de1c06d7d6afdeb44.cc +0 -462
  35. ddfem/data/2.11.dev20250326/localfunction_a46a988b5d8571e80fd401a36d7341b7_a524c1196983e65de1c06d7d6afdeb44.cc +0 -170
  36. ddfem/data/2.11.dev20250326/localfunction_a9bb07439605d560b583608f20441342_a524c1196983e65de1c06d7d6afdeb44.cc +0 -173
  37. ddfem/data/2.11.dev20250326/localfunction_d0f33c2dc1ae0e619d85a7621c8e83a6_a524c1196983e65de1c06d7d6afdeb44.cc +0 -325
  38. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/adapt_010e1455a389aa01992af42c0a3f4b14.cc +0 -0
  39. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/femscheme_f2a3cb32a864b08c0236366e732fb908.cc +0 -0
  40. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/femspace_4ff9049b6f297245e5d33296d14cd684_d5b136dbe3c5077b69c99b8c322eb563.cc +0 -0
  41. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/hierarchicalgrid_d827e80243feae36e8b9006bb24207e7.cc +0 -0
  42. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/indexset_e9c0cdc96a4fc702a0969c29910954e6.cc +0 -0
  43. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/integrands_008eefa148b772fa3192dd3c1728c140v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  44. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/integrands_2339be3c67df1d67b18125c34ced69c2v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  45. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/integrands_3bde0abfafcf45a3cff4d1029568ab5cv1_3_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  46. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_00f2e5593eeb23f01906255d67244f6e_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  47. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_10ad0a2d88c74db5f4bf5f81e138974f_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  48. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_191355e6250b2d2e260d96f519ad9976_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  49. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_1d13146d4bff10e178aba773fe2a9f1d_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  50. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_1d27a90a52b9053192c9cc902283f79b_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  51. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_228c55d163ca194a905826bcc20fcbc0_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  52. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_3e323e81c52891c0ecb656eac273e52f_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  53. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_42ff56710f3bd510798ecabb32a6cbf0_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  54. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_42ff56710f3bd510798ecabb32a6cbf0_af122c1df944c95cd395ec0f91d0f970.cc +0 -0
  55. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_82d7cb9338bf118426fac2abf41a91a4_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  56. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_83d9e6dd70d1c31c973224e210cc36b4_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  57. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_86a0670f34bf2ac8155423a1c1bc2e75_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  58. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_a854465b265a1a51dacb4f71f7eeb06b_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  59. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_a8c726f728cd35d137188b33301aeef1_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  60. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_ae8173bdb67b8ea50ce75c3912841100_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  61. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_aeb3d963412cdc65630e0a4c3c0dde0f_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  62. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_b8239bf849ec7c1903f627833e6dac5a_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  63. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_bcafb581216501f273e23c0e26cd57af_af122c1df944c95cd395ec0f91d0f970.cc +0 -0
  64. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_bdfb7ddf42a423f7d0791458634d4b8f_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  65. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_d75993d7ae5919d23117b153e900840d_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  66. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_f4b1d42cbb447375f39ed834570cd3f0_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  67. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/localfunction_f626cd43dc8558135fe0b32cde016644_a524c1196983e65de1c06d7d6afdeb44.cc +0 -0
  68. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/referenceelements_0fff57b283123cc055345ec95574c857.cc +0 -0
  69. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/referenceelements_de274310a0055100b832a0e8892b0258.cc +0 -0
  70. /ddfem/data/{2.11.dev20250326 → 2.11.dev20250709}/referenceelements_f4457f35395151d83a965d4cf5fce70d.cc +0 -0
  71. {ddfem-1.0.7.dist-info → ddfem-1.0.9.dist-info}/WHEEL +0 -0
  72. {ddfem-1.0.7.dist-info → ddfem-1.0.9.dist-info}/licenses/LICENSE +0 -0
  73. {ddfem-1.0.7.dist-info → ddfem-1.0.9.dist-info}/top_level.txt +0 -0
@@ -1,393 +0,0 @@
1
- #ifndef GUARD_0f7b2106478c5d2af781b1f377a180d2
2
- #define GUARD_0f7b2106478c5d2af781b1f377a180d2
3
-
4
- #define USING_DUNE_PYTHON 1
5
- #include <config.h>
6
- #include <dune/alugrid/dgf.hh>
7
- #include <dune/alugrid/grid.hh>
8
- #include <dune/fem/gridpart/adaptiveleafgridpart.hh>
9
- #include <dune/fem/gridpart/filter/simple.hh>
10
- #include <dune/fem/gridpart/filteredgridpart.hh>
11
- #include <dune/fempy/py/gridview.hh>
12
- #include <dune/python/grid/gridview.hh>
13
- #include <dune/python/grid/hierarchical.hh>
14
- #include <dune/fem/function/localfunction/bindable.hh>
15
- #include <dune/fem/common/intersectionside.hh>
16
- #include <dune/python/pybind11/pybind11.h>
17
- #include <dune/python/pybind11/extensions.h>
18
- #include <dune/fempy/py/grid/gridpart.hh>
19
- #include <dune/common/exceptions.hh>
20
- #include <dune/fempy/py/ufllocalfunction.hh>
21
-
22
- namespace UFLLocalFunctions_0f7b2106478c5d2af781b1f377a180d2
23
- {
24
-
25
- // UFLLocalFunction
26
- // ----------------
27
-
28
- template< class GridPart >
29
- struct UFLLocalFunction
30
- : public Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>>
31
- {
32
- typedef GridPart GridPartType;
33
- typedef typename GridPartType::GridViewType GridView;
34
- typedef typename GridView::ctype ctype;
35
- typedef Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>> BaseType;
36
- typedef Dune::Fem::GridFunctionSpace<GridPartType,Dune::Dim<1>> FunctionSpaceType;
37
- typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
38
- typedef typename GridPartType::IntersectionType IntersectionType;
39
- typedef typename EntityType::Geometry Geometry;
40
- typedef typename Geometry::GlobalCoordinate GlobalCoordinateType;
41
- typedef Dune::Fem::IntersectionSide Side;
42
- typedef std::tuple<> ConstantTupleType;
43
- typedef std::tuple<> CoefficientTupleType;
44
- static constexpr bool gridPartValid = true;
45
- template< std::size_t i >
46
- using CoefficientType = std::tuple_element_t< i, CoefficientTupleType >;
47
- template< std::size_t i >
48
- using ConstantType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
49
- using BaseType::entity;
50
- using BaseType::geometry;
51
-
52
- UFLLocalFunction ( const GridPartType &gridPart, const std::string &name, int order, const Dune::Fem::ParameterReader &parameter = Dune::Fem::Parameter::container() )
53
- : BaseType(gridPart,name,order)
54
- {}
55
-
56
- void bind ( const IntersectionType &intersection, Side side )
57
- {
58
- BaseType::bind(intersection, side);
59
- }
60
-
61
- void bind ( const EntityType &entity )
62
- {
63
- BaseType::bind(entity);
64
- }
65
-
66
- void unbind ()
67
- {
68
- BaseType::unbind();
69
- }
70
-
71
- template< class Point >
72
- void evaluate ( const Point &x, typename FunctionSpaceType::RangeType &result ) const
73
- {
74
- using std::max;
75
- using std::min;
76
- using std::sqrt;
77
- GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
78
- const auto tmp1 = -1 + tmp0[ 0 ];
79
- const auto tmp2 = tmp1 * tmp1;
80
- const auto tmp3 = tmp0[ 1 ] * tmp0[ 1 ];
81
- const auto tmp4 = tmp3 + tmp2;
82
- const auto tmp5 = 1e-10 + tmp4;
83
- const auto tmp6 = std::sqrt( tmp5 );
84
- const auto tmp7 = -0.5 + tmp6;
85
- const auto tmp8 = 0.8 + tmp0[ 1 ];
86
- const auto tmp9 = tmp8 * tmp8;
87
- const auto tmp10 = tmp0[ 0 ] * tmp0[ 0 ];
88
- const auto tmp11 = tmp10 + tmp9;
89
- const auto tmp12 = 1e-10 + tmp11;
90
- const auto tmp13 = std::sqrt( tmp12 );
91
- const auto tmp14 = -0.5 + tmp13;
92
- const auto tmp15 = -1 * tmp14;
93
- const auto tmp16 = -0.8 + tmp0[ 1 ];
94
- const auto tmp17 = tmp16 * tmp16;
95
- const auto tmp18 = tmp10 + tmp17;
96
- const auto tmp19 = 1e-10 + tmp18;
97
- const auto tmp20 = std::sqrt( tmp19 );
98
- const auto tmp21 = -0.5 + tmp20;
99
- const auto tmp22 = -1 * tmp21;
100
- const auto tmp23 = tmp10 + tmp3;
101
- const auto tmp24 = 1e-10 + tmp23;
102
- const auto tmp25 = std::sqrt( tmp24 );
103
- const auto tmp26 = -1 + tmp25;
104
- const auto tmp27 = std::max( tmp26, tmp22 );
105
- const auto tmp28 = std::max( tmp27, tmp15 );
106
- const auto tmp29 = std::min( tmp28, tmp7 );
107
- result[ 0 ] = tmp29;
108
- }
109
-
110
- template< class Point >
111
- void jacobian ( const Point &x, typename FunctionSpaceType::JacobianRangeType &result ) const
112
- {
113
- using std::max;
114
- using std::sqrt;
115
- GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
116
- const auto tmp1 = -1 + tmp0[ 0 ];
117
- const auto tmp2 = tmp1 * tmp1;
118
- const auto tmp3 = tmp0[ 1 ] * tmp0[ 1 ];
119
- const auto tmp4 = tmp3 + tmp2;
120
- const auto tmp5 = 1e-10 + tmp4;
121
- const auto tmp6 = std::sqrt( tmp5 );
122
- const auto tmp7 = -0.5 + tmp6;
123
- const auto tmp8 = 0.8 + tmp0[ 1 ];
124
- const auto tmp9 = tmp8 * tmp8;
125
- const auto tmp10 = tmp0[ 0 ] * tmp0[ 0 ];
126
- const auto tmp11 = tmp10 + tmp9;
127
- const auto tmp12 = 1e-10 + tmp11;
128
- const auto tmp13 = std::sqrt( tmp12 );
129
- const auto tmp14 = -0.5 + tmp13;
130
- const auto tmp15 = -1 * tmp14;
131
- const auto tmp16 = -0.8 + tmp0[ 1 ];
132
- const auto tmp17 = tmp16 * tmp16;
133
- const auto tmp18 = tmp10 + tmp17;
134
- const auto tmp19 = 1e-10 + tmp18;
135
- const auto tmp20 = std::sqrt( tmp19 );
136
- const auto tmp21 = -0.5 + tmp20;
137
- const auto tmp22 = -1 * tmp21;
138
- const auto tmp23 = tmp10 + tmp3;
139
- const auto tmp24 = 1e-10 + tmp23;
140
- const auto tmp25 = std::sqrt( tmp24 );
141
- const auto tmp26 = -1 + tmp25;
142
- const auto tmp27 = std::max( tmp26, tmp22 );
143
- const auto tmp28 = std::max( tmp27, tmp15 );
144
- const auto tmp29 = 2 * tmp25;
145
- const auto tmp30 = tmp0[ 0 ] + tmp0[ 0 ];
146
- const auto tmp31 = tmp30 / tmp29;
147
- const auto tmp32 = tmp31 * (tmp26 > tmp22 ? 1 : 0.0);
148
- const auto tmp33 = 2 * tmp20;
149
- const auto tmp34 = tmp30 / tmp33;
150
- const auto tmp35 = -1 * tmp34;
151
- const auto tmp36 = -1 * (tmp26 > tmp22 ? 1 : 0.0);
152
- const auto tmp37 = 1.0 + tmp36;
153
- const auto tmp38 = tmp37 * tmp35;
154
- const auto tmp39 = tmp38 + tmp32;
155
- const auto tmp40 = tmp39 * (tmp27 > tmp15 ? 1 : 0.0);
156
- const auto tmp41 = 2 * tmp13;
157
- const auto tmp42 = tmp30 / tmp41;
158
- const auto tmp43 = -1 * tmp42;
159
- const auto tmp44 = -1 * (tmp27 > tmp15 ? 1 : 0.0);
160
- const auto tmp45 = 1.0 + tmp44;
161
- const auto tmp46 = tmp45 * tmp43;
162
- const auto tmp47 = tmp46 + tmp40;
163
- const auto tmp48 = tmp47 * (tmp28 < tmp7 ? 1 : 0.0);
164
- const auto tmp49 = 2 * tmp6;
165
- const auto tmp50 = tmp1 + tmp1;
166
- const auto tmp51 = tmp50 / tmp49;
167
- const auto tmp52 = -1 * (tmp28 < tmp7 ? 1 : 0.0);
168
- const auto tmp53 = 1.0 + tmp52;
169
- const auto tmp54 = tmp53 * tmp51;
170
- const auto tmp55 = tmp54 + tmp48;
171
- const auto tmp56 = tmp0[ 1 ] + tmp0[ 1 ];
172
- const auto tmp57 = tmp56 / tmp29;
173
- const auto tmp58 = tmp57 * (tmp26 > tmp22 ? 1 : 0.0);
174
- const auto tmp59 = tmp16 + tmp16;
175
- const auto tmp60 = tmp59 / tmp33;
176
- const auto tmp61 = -1 * tmp60;
177
- const auto tmp62 = tmp37 * tmp61;
178
- const auto tmp63 = tmp62 + tmp58;
179
- const auto tmp64 = tmp63 * (tmp27 > tmp15 ? 1 : 0.0);
180
- const auto tmp65 = tmp8 + tmp8;
181
- const auto tmp66 = tmp65 / tmp41;
182
- const auto tmp67 = -1 * tmp66;
183
- const auto tmp68 = tmp45 * tmp67;
184
- const auto tmp69 = tmp68 + tmp64;
185
- const auto tmp70 = tmp69 * (tmp28 < tmp7 ? 1 : 0.0);
186
- const auto tmp71 = tmp56 / tmp49;
187
- const auto tmp72 = tmp53 * tmp71;
188
- const auto tmp73 = tmp72 + tmp70;
189
- (result[ 0 ])[ 0 ] = tmp55;
190
- (result[ 0 ])[ 1 ] = tmp73;
191
- }
192
-
193
- template< class Point >
194
- void hessian ( const Point &x, typename FunctionSpaceType::HessianRangeType &result ) const
195
- {
196
- using std::max;
197
- using std::sqrt;
198
- GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
199
- const auto tmp1 = -1 + tmp0[ 0 ];
200
- const auto tmp2 = tmp1 * tmp1;
201
- const auto tmp3 = tmp0[ 1 ] * tmp0[ 1 ];
202
- const auto tmp4 = tmp3 + tmp2;
203
- const auto tmp5 = 1e-10 + tmp4;
204
- const auto tmp6 = std::sqrt( tmp5 );
205
- const auto tmp7 = -0.5 + tmp6;
206
- const auto tmp8 = 0.8 + tmp0[ 1 ];
207
- const auto tmp9 = tmp8 * tmp8;
208
- const auto tmp10 = tmp0[ 0 ] * tmp0[ 0 ];
209
- const auto tmp11 = tmp10 + tmp9;
210
- const auto tmp12 = 1e-10 + tmp11;
211
- const auto tmp13 = std::sqrt( tmp12 );
212
- const auto tmp14 = -0.5 + tmp13;
213
- const auto tmp15 = -1 * tmp14;
214
- const auto tmp16 = -0.8 + tmp0[ 1 ];
215
- const auto tmp17 = tmp16 * tmp16;
216
- const auto tmp18 = tmp10 + tmp17;
217
- const auto tmp19 = 1e-10 + tmp18;
218
- const auto tmp20 = std::sqrt( tmp19 );
219
- const auto tmp21 = -0.5 + tmp20;
220
- const auto tmp22 = -1 * tmp21;
221
- const auto tmp23 = tmp10 + tmp3;
222
- const auto tmp24 = 1e-10 + tmp23;
223
- const auto tmp25 = std::sqrt( tmp24 );
224
- const auto tmp26 = -1 + tmp25;
225
- const auto tmp27 = std::max( tmp26, tmp22 );
226
- const auto tmp28 = std::max( tmp27, tmp15 );
227
- const auto tmp29 = 2 * tmp25;
228
- const auto tmp30 = tmp0[ 0 ] + tmp0[ 0 ];
229
- const auto tmp31 = tmp30 / tmp29;
230
- const auto tmp32 = 2 * tmp31;
231
- const auto tmp33 = tmp32 * tmp31;
232
- const auto tmp34 = -1 * tmp33;
233
- const auto tmp35 = 2 + tmp34;
234
- const auto tmp36 = tmp35 / tmp29;
235
- const auto tmp37 = tmp36 * (tmp26 > tmp22 ? 1 : 0.0);
236
- const auto tmp38 = 2 * tmp20;
237
- const auto tmp39 = tmp30 / tmp38;
238
- const auto tmp40 = 2 * tmp39;
239
- const auto tmp41 = tmp40 * tmp39;
240
- const auto tmp42 = -1 * tmp41;
241
- const auto tmp43 = 2 + tmp42;
242
- const auto tmp44 = tmp43 / tmp38;
243
- const auto tmp45 = -1 * tmp44;
244
- const auto tmp46 = -1 * (tmp26 > tmp22 ? 1 : 0.0);
245
- const auto tmp47 = 1.0 + tmp46;
246
- const auto tmp48 = tmp47 * tmp45;
247
- const auto tmp49 = tmp48 + tmp37;
248
- const auto tmp50 = tmp49 * (tmp27 > tmp15 ? 1 : 0.0);
249
- const auto tmp51 = 2 * tmp13;
250
- const auto tmp52 = tmp30 / tmp51;
251
- const auto tmp53 = 2 * tmp52;
252
- const auto tmp54 = tmp53 * tmp52;
253
- const auto tmp55 = -1 * tmp54;
254
- const auto tmp56 = 2 + tmp55;
255
- const auto tmp57 = tmp56 / tmp51;
256
- const auto tmp58 = -1 * tmp57;
257
- const auto tmp59 = -1 * (tmp27 > tmp15 ? 1 : 0.0);
258
- const auto tmp60 = 1.0 + tmp59;
259
- const auto tmp61 = tmp60 * tmp58;
260
- const auto tmp62 = tmp61 + tmp50;
261
- const auto tmp63 = tmp62 * (tmp28 < tmp7 ? 1 : 0.0);
262
- const auto tmp64 = 2 * tmp6;
263
- const auto tmp65 = tmp1 + tmp1;
264
- const auto tmp66 = tmp65 / tmp64;
265
- const auto tmp67 = 2 * tmp66;
266
- const auto tmp68 = tmp67 * tmp66;
267
- const auto tmp69 = -1 * tmp68;
268
- const auto tmp70 = 2 + tmp69;
269
- const auto tmp71 = tmp70 / tmp64;
270
- const auto tmp72 = -1 * (tmp28 < tmp7 ? 1 : 0.0);
271
- const auto tmp73 = 1.0 + tmp72;
272
- const auto tmp74 = tmp73 * tmp71;
273
- const auto tmp75 = tmp74 + tmp63;
274
- const auto tmp76 = tmp0[ 1 ] + tmp0[ 1 ];
275
- const auto tmp77 = tmp76 / tmp29;
276
- const auto tmp78 = 2 * tmp77;
277
- const auto tmp79 = tmp78 * tmp31;
278
- const auto tmp80 = -1 * tmp79;
279
- const auto tmp81 = tmp80 / tmp29;
280
- const auto tmp82 = tmp81 * (tmp26 > tmp22 ? 1 : 0.0);
281
- const auto tmp83 = tmp16 + tmp16;
282
- const auto tmp84 = tmp83 / tmp38;
283
- const auto tmp85 = 2 * tmp84;
284
- const auto tmp86 = tmp85 * tmp39;
285
- const auto tmp87 = -1 * tmp86;
286
- const auto tmp88 = tmp87 / tmp38;
287
- const auto tmp89 = -1 * tmp88;
288
- const auto tmp90 = tmp47 * tmp89;
289
- const auto tmp91 = tmp90 + tmp82;
290
- const auto tmp92 = tmp91 * (tmp27 > tmp15 ? 1 : 0.0);
291
- const auto tmp93 = tmp8 + tmp8;
292
- const auto tmp94 = tmp93 / tmp51;
293
- const auto tmp95 = 2 * tmp94;
294
- const auto tmp96 = tmp95 * tmp52;
295
- const auto tmp97 = -1 * tmp96;
296
- const auto tmp98 = tmp97 / tmp51;
297
- const auto tmp99 = -1 * tmp98;
298
- const auto tmp100 = tmp60 * tmp99;
299
- const auto tmp101 = tmp100 + tmp92;
300
- const auto tmp102 = tmp101 * (tmp28 < tmp7 ? 1 : 0.0);
301
- const auto tmp103 = tmp76 / tmp64;
302
- const auto tmp104 = 2 * tmp103;
303
- const auto tmp105 = tmp104 * tmp66;
304
- const auto tmp106 = -1 * tmp105;
305
- const auto tmp107 = tmp106 / tmp64;
306
- const auto tmp108 = tmp73 * tmp107;
307
- const auto tmp109 = tmp108 + tmp102;
308
- const auto tmp110 = tmp32 * tmp77;
309
- const auto tmp111 = -1 * tmp110;
310
- const auto tmp112 = tmp111 / tmp29;
311
- const auto tmp113 = tmp112 * (tmp26 > tmp22 ? 1 : 0.0);
312
- const auto tmp114 = tmp40 * tmp84;
313
- const auto tmp115 = -1 * tmp114;
314
- const auto tmp116 = tmp115 / tmp38;
315
- const auto tmp117 = -1 * tmp116;
316
- const auto tmp118 = tmp47 * tmp117;
317
- const auto tmp119 = tmp118 + tmp113;
318
- const auto tmp120 = tmp119 * (tmp27 > tmp15 ? 1 : 0.0);
319
- const auto tmp121 = tmp53 * tmp94;
320
- const auto tmp122 = -1 * tmp121;
321
- const auto tmp123 = tmp122 / tmp51;
322
- const auto tmp124 = -1 * tmp123;
323
- const auto tmp125 = tmp60 * tmp124;
324
- const auto tmp126 = tmp125 + tmp120;
325
- const auto tmp127 = tmp126 * (tmp28 < tmp7 ? 1 : 0.0);
326
- const auto tmp128 = tmp67 * tmp103;
327
- const auto tmp129 = -1 * tmp128;
328
- const auto tmp130 = tmp129 / tmp64;
329
- const auto tmp131 = tmp73 * tmp130;
330
- const auto tmp132 = tmp131 + tmp127;
331
- const auto tmp133 = tmp78 * tmp77;
332
- const auto tmp134 = -1 * tmp133;
333
- const auto tmp135 = 2 + tmp134;
334
- const auto tmp136 = tmp135 / tmp29;
335
- const auto tmp137 = tmp136 * (tmp26 > tmp22 ? 1 : 0.0);
336
- const auto tmp138 = tmp85 * tmp84;
337
- const auto tmp139 = -1 * tmp138;
338
- const auto tmp140 = 2 + tmp139;
339
- const auto tmp141 = tmp140 / tmp38;
340
- const auto tmp142 = -1 * tmp141;
341
- const auto tmp143 = tmp47 * tmp142;
342
- const auto tmp144 = tmp143 + tmp137;
343
- const auto tmp145 = tmp144 * (tmp27 > tmp15 ? 1 : 0.0);
344
- const auto tmp146 = tmp95 * tmp94;
345
- const auto tmp147 = -1 * tmp146;
346
- const auto tmp148 = 2 + tmp147;
347
- const auto tmp149 = tmp148 / tmp51;
348
- const auto tmp150 = -1 * tmp149;
349
- const auto tmp151 = tmp60 * tmp150;
350
- const auto tmp152 = tmp151 + tmp145;
351
- const auto tmp153 = tmp152 * (tmp28 < tmp7 ? 1 : 0.0);
352
- const auto tmp154 = tmp104 * tmp103;
353
- const auto tmp155 = -1 * tmp154;
354
- const auto tmp156 = 2 + tmp155;
355
- const auto tmp157 = tmp156 / tmp64;
356
- const auto tmp158 = tmp73 * tmp157;
357
- const auto tmp159 = tmp158 + tmp153;
358
- ((result[ 0 ])[ 0 ])[ 0 ] = tmp75;
359
- ((result[ 0 ])[ 0 ])[ 1 ] = tmp109;
360
- ((result[ 0 ])[ 1 ])[ 0 ] = tmp132;
361
- ((result[ 0 ])[ 1 ])[ 1 ] = tmp159;
362
- }
363
-
364
- template< std::size_t i >
365
- const ConstantType< i > &constant () const
366
- {
367
- return *std::get< i >( constants_ );
368
- }
369
-
370
- template< std::size_t i >
371
- ConstantType< i > &constant ()
372
- {
373
- return *std::get< i >( constants_ );
374
- }
375
- ConstantTupleType constants_;
376
- std::tuple< > coefficients_;
377
- };
378
-
379
- } // namespace UFLLocalFunctions_0f7b2106478c5d2af781b1f377a180d2
380
-
381
- PYBIND11_MODULE( localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44, module )
382
- {
383
- typedef UFLLocalFunctions_0f7b2106478c5d2af781b1f377a180d2::UFLLocalFunction< 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 > > > LocalFunctionType;
384
- if constexpr( LocalFunctionType::gridPartValid )
385
- {
386
- auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_0f7b2106478c5d2af781b1f377a180d2::UFLLocalFunction< 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 > > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44.cc"})).first;
387
- Dune::FemPy::registerUFLLocalFunction( module, cls );
388
- cls.def( pybind11::init( [] ( pybind11::object gridView, const std::string &name, int order ) {return new LocalFunctionType( 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 >>(gridView),name,order); } ), pybind11::keep_alive< 1, 2 >() );
389
- cls.def_property_readonly( "virtualized", [] ( LocalFunctionType& ) -> bool { return true;});
390
- }
391
- }
392
-
393
- #endif