ddfem 1.0.8__py3-none-any.whl → 1.0.10__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 (63) hide show
  1. ddfem/__init__.py +1 -1
  2. ddfem/__main__.py +21 -2
  3. ddfem/data/2.11.dev20250709/boundary.modules +1 -1
  4. ddfem/data/2.11.dev20250709/hierarchicalgrid_472c2c2d007bf5604887ab2f16b7eb13.cc +30 -0
  5. ddfem/data/2.11.dev20250709/integrands_00ee9b3b89e4e44212e5b7ad7948a24ev1_3_a524c1196983e65de1c06d7d6afdeb44.cc +587 -0
  6. ddfem/data/2.11.dev20250709/{integrands_5e1afa60a15644998389a84306246ea5v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_2e6d4e3b5cff269867d26022ac7cee09v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  7. ddfem/data/2.11.dev20250709/{integrands_2e5e6f48655bd358419554a0857f697bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_59ef814e4fbd86ef9c0aeac61e84e9a7v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  8. ddfem/data/2.11.dev20250709/{integrands_563572f4cb20b041e8198ba7d5f88584v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_96ea175da69be26acf1a8d94dc0b3c93v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  9. ddfem/data/2.11.dev20250709/{integrands_2339be3c67df1d67b18125c34ced69c2v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_bf510277401791ad5e30831b49a8ed7cv1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +25 -14
  10. ddfem/data/2.11.dev20250709/intro.modules +26 -23
  11. ddfem/data/2.11.dev20250709/localfunction_0cb4ca9e24e2891510640b0737aaab21_a524c1196983e65de1c06d7d6afdeb44.cc +170 -0
  12. ddfem/data/2.11.dev20250709/localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44.cc +393 -0
  13. ddfem/data/2.11.dev20250709/localfunction_1460b632dc5919e94a2147108f4f34f4_19659fe2f2f74bcfb5d532f1a0d38be9.cc +468 -0
  14. ddfem/data/2.11.dev20250709/localfunction_161bbe6dde741c6e3f90c2919b8d17a4_19659fe2f2f74bcfb5d532f1a0d38be9.cc +171 -0
  15. ddfem/data/2.11.dev20250709/localfunction_268716e3e3ec528038367ee04d335ea1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +289 -0
  16. ddfem/data/2.11.dev20250709/localfunction_29566243d89228735978e58471af60be_19659fe2f2f74bcfb5d532f1a0d38be9.cc +246 -0
  17. ddfem/data/2.11.dev20250709/localfunction_2a890b2a64788a92607670296c0d37ac_19659fe2f2f74bcfb5d532f1a0d38be9.cc +311 -0
  18. ddfem/data/2.11.dev20250709/localfunction_2a97db5a6a479d02138a836cb0890cf2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  19. ddfem/data/2.11.dev20250709/localfunction_2bbefabe87db948827d02bdb8d69a7d1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +240 -0
  20. ddfem/data/2.11.dev20250709/localfunction_34a46b87fa5c0a5a4f0bc44949f2eda9_19659fe2f2f74bcfb5d532f1a0d38be9.cc +239 -0
  21. ddfem/data/2.11.dev20250709/localfunction_3c10414582133a0fa8e341c4544a97c7_19659fe2f2f74bcfb5d532f1a0d38be9.cc +220 -0
  22. ddfem/data/2.11.dev20250709/localfunction_3dfb73430ddb90a26b6f50f85e52e2a4_19659fe2f2f74bcfb5d532f1a0d38be9.cc +216 -0
  23. ddfem/data/2.11.dev20250709/localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  24. ddfem/data/2.11.dev20250709/localfunction_465e17370f4344b8997151adacf7aec6_19659fe2f2f74bcfb5d532f1a0d38be9.cc +403 -0
  25. ddfem/data/2.11.dev20250709/localfunction_57e9651c5364ef528f41cf138e126115_19659fe2f2f74bcfb5d532f1a0d38be9.cc +272 -0
  26. ddfem/data/2.11.dev20250709/localfunction_5c2a00bf7ec417475a0a378ed462beeb_19659fe2f2f74bcfb5d532f1a0d38be9.cc +350 -0
  27. ddfem/data/2.11.dev20250709/localfunction_5d71e054c405bc6584738437908af804_19659fe2f2f74bcfb5d532f1a0d38be9.cc +364 -0
  28. ddfem/data/2.11.dev20250709/localfunction_6343878b30d190cc70b631d882009dec_19659fe2f2f74bcfb5d532f1a0d38be9.cc +342 -0
  29. ddfem/data/2.11.dev20250709/localfunction_639a3f3873411f43337e687cb070368f_19659fe2f2f74bcfb5d532f1a0d38be9.cc +230 -0
  30. ddfem/data/2.11.dev20250709/localfunction_65bda5736a84d4aa0ef2d48ebcc90ed5_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  31. ddfem/data/2.11.dev20250709/localfunction_6661b21a0e1340a9a9f7b32da595f130_19659fe2f2f74bcfb5d532f1a0d38be9.cc +468 -0
  32. ddfem/data/2.11.dev20250709/localfunction_75e876499fa3b7abc096aa08f88a1c2d_19659fe2f2f74bcfb5d532f1a0d38be9.cc +213 -0
  33. ddfem/data/2.11.dev20250709/localfunction_7d81d496538f240d504e5597484ee746_a524c1196983e65de1c06d7d6afdeb44.cc +462 -0
  34. ddfem/data/2.11.dev20250709/localfunction_8647b4efdf8a37595f73652bc1905df2_19659fe2f2f74bcfb5d532f1a0d38be9.cc +335 -0
  35. ddfem/data/2.11.dev20250709/localfunction_98b04b00bb93b8c6da99c91867e597ca_a524c1196983e65de1c06d7d6afdeb44.cc +639 -0
  36. ddfem/data/2.11.dev20250709/localfunction_98b32c4b5bc0d8083f3d2c394aa33429_19659fe2f2f74bcfb5d532f1a0d38be9.cc +340 -0
  37. ddfem/data/2.11.dev20250709/localfunction_9b741917efb5aa6a09e375272e4ae3aa_19659fe2f2f74bcfb5d532f1a0d38be9.cc +317 -0
  38. ddfem/data/2.11.dev20250709/localfunction_a369aff055312b472a92ee7e257534ff_19659fe2f2f74bcfb5d532f1a0d38be9.cc +392 -0
  39. ddfem/data/2.11.dev20250709/{localfunction_e4557ecff74fe5b37313674e67db2782_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_a46a988b5d8571e80fd401a36d7341b7_a524c1196983e65de1c06d7d6afdeb44.cc} +64 -29
  40. ddfem/data/2.11.dev20250709/localfunction_a6cc88a79948487ce95a6c3f22487b36_19659fe2f2f74bcfb5d532f1a0d38be9.cc +395 -0
  41. ddfem/data/2.11.dev20250709/localfunction_a9bb07439605d560b583608f20441342_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  42. ddfem/data/2.11.dev20250709/localfunction_aa506761997f291dfd2e62b678f010b2_19659fe2f2f74bcfb5d532f1a0d38be9.cc +280 -0
  43. ddfem/data/2.11.dev20250709/localfunction_b5edf0c36f0fc96cc6f5f3677c6557a1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +214 -0
  44. ddfem/data/2.11.dev20250709/{localfunction_c5ebc4ae4b5d3bad6be770eb08c50d08_19659fe2f2f74bcfb5d532f1a0d38be9.cc → localfunction_c3d0902cf8bb4b86b62a2293de2b74e9_19659fe2f2f74bcfb5d532f1a0d38be9.cc} +29 -29
  45. ddfem/data/2.11.dev20250709/localfunction_cf4a29dc25e72137baf2f8fb8b8d3c50_19659fe2f2f74bcfb5d532f1a0d38be9.cc +267 -0
  46. ddfem/data/2.11.dev20250709/localfunction_d0f33c2dc1ae0e619d85a7621c8e83a6_a524c1196983e65de1c06d7d6afdeb44.cc +325 -0
  47. ddfem/data/2.11.dev20250709/localfunction_d40efa41ac661ff77278d2ae4812b06d_19659fe2f2f74bcfb5d532f1a0d38be9.cc +377 -0
  48. ddfem/data/2.11.dev20250709/localfunction_e85b93fe9b8fcd40ee82782fc600b65b_a524c1196983e65de1c06d7d6afdeb44.cc +247 -0
  49. ddfem/data/2.11.dev20250709/localfunction_e9c8d4f4cedd30cab76a588b95bbccab_19659fe2f2f74bcfb5d532f1a0d38be9.cc +325 -0
  50. ddfem/data/2.11.dev20250709/localfunction_f0d3fe89de368f7ea295a1982a807bd8_19659fe2f2f74bcfb5d532f1a0d38be9.cc +281 -0
  51. ddfem/data/2.11.dev20250709/localfunction_fb15e1ad2c62e6660c67949fcf166d81_19659fe2f2f74bcfb5d532f1a0d38be9.cc +339 -0
  52. ddfem/data/2.11.dev20250709/localfunction_fb17410b0b5d479dce9ffc6f9d61ab37_19659fe2f2f74bcfb5d532f1a0d38be9.cc +317 -0
  53. ddfem/data/2.11.dev20250709/referenceelements_fe266b8abf61f4601198949ea6b0dfd3.cc +24 -0
  54. ddfem/data/2.11.dev20250709/yaspcoordinates_dim3_ctdouble.cc +55 -0
  55. ddfem/geometry/primitive_base.py +1 -1
  56. ddfem-1.0.10.dist-info/METADATA +101 -0
  57. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/RECORD +60 -18
  58. ddfem/data/2.11.dev20250709/integrands_f3ca00a2ef95c9a48de9ec1b807b1b30v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +0 -453
  59. ddfem/data/2.11.dev20250709/localfunction_f4583c5cc10d24a8bdedf7510ce9da7b_a524c1196983e65de1c06d7d6afdeb44.cc +0 -299
  60. ddfem-1.0.8.dist-info/METADATA +0 -46
  61. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/WHEEL +0 -0
  62. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/licenses/LICENSE +0 -0
  63. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
- #ifndef GUARD_c5ebc4ae4b5d3bad6be770eb08c50d08
2
- #define GUARD_c5ebc4ae4b5d3bad6be770eb08c50d08
1
+ #ifndef GUARD_c3d0902cf8bb4b86b62a2293de2b74e9
2
+ #define GUARD_c3d0902cf8bb4b86b62a2293de2b74e9
3
3
 
4
4
  #define USING_DUNE_PYTHON 1
5
5
  #include <config.h>
@@ -14,7 +14,7 @@
14
14
  #include <dune/common/exceptions.hh>
15
15
  #include <dune/fempy/py/ufllocalfunction.hh>
16
16
 
17
- namespace UFLLocalFunctions_c5ebc4ae4b5d3bad6be770eb08c50d08
17
+ namespace UFLLocalFunctions_c3d0902cf8bb4b86b62a2293de2b74e9
18
18
  {
19
19
 
20
20
  // UFLLocalFunction
@@ -115,7 +115,7 @@ struct UFLLocalFunction
115
115
  const auto tmp43 = std::sqrt( tmp42 );
116
116
  const auto tmp44 = -0.5 + tmp43;
117
117
  const auto tmp45 = 3 * tmp44;
118
- const auto tmp46 = tmp45 / 0.01;
118
+ const auto tmp46 = tmp45 / 0.1;
119
119
  const auto tmp47 = std::tanh( tmp46 );
120
120
  const auto tmp48 = -1 * tmp47;
121
121
  const auto tmp49 = 1 + tmp48;
@@ -130,7 +130,7 @@ struct UFLLocalFunction
130
130
  const auto tmp58 = std::sqrt( tmp57 );
131
131
  const auto tmp59 = -0.5 + tmp58;
132
132
  const auto tmp60 = 3 * tmp59;
133
- const auto tmp61 = tmp60 / 0.01;
133
+ const auto tmp61 = tmp60 / 0.1;
134
134
  const auto tmp62 = std::tanh( tmp61 );
135
135
  const auto tmp63 = -1 * tmp62;
136
136
  const auto tmp64 = 1 + tmp63;
@@ -200,7 +200,7 @@ struct UFLLocalFunction
200
200
  const auto tmp43 = std::sqrt( tmp42 );
201
201
  const auto tmp44 = -0.5 + tmp43;
202
202
  const auto tmp45 = 3 * tmp44;
203
- const auto tmp46 = tmp45 / 0.01;
203
+ const auto tmp46 = tmp45 / 0.1;
204
204
  const auto tmp47 = std::tanh( tmp46 );
205
205
  const auto tmp48 = -1 * tmp47;
206
206
  const auto tmp49 = 1 + tmp48;
@@ -215,7 +215,7 @@ struct UFLLocalFunction
215
215
  const auto tmp58 = std::sqrt( tmp57 );
216
216
  const auto tmp59 = -0.5 + tmp58;
217
217
  const auto tmp60 = 3 * tmp59;
218
- const auto tmp61 = tmp60 / 0.01;
218
+ const auto tmp61 = tmp60 / 0.1;
219
219
  const auto tmp62 = std::tanh( tmp61 );
220
220
  const auto tmp63 = -1 * tmp62;
221
221
  const auto tmp64 = 1 + tmp63;
@@ -273,7 +273,7 @@ struct UFLLocalFunction
273
273
  const auto tmp116 = tmp115 + tmp97;
274
274
  const auto tmp117 = tmp116 / tmp80;
275
275
  const auto tmp118 = 3 * tmp117;
276
- const auto tmp119 = tmp118 / 0.01;
276
+ const auto tmp119 = tmp118 / 0.1;
277
277
  const auto tmp120 = tmp119 * tmp79;
278
278
  const auto tmp121 = -1 * tmp120;
279
279
  const auto tmp122 = 0.5 * tmp121;
@@ -294,7 +294,7 @@ struct UFLLocalFunction
294
294
  const auto tmp137 = tmp136 + tmp97;
295
295
  const auto tmp138 = tmp137 / tmp134;
296
296
  const auto tmp139 = 3 * tmp138;
297
- const auto tmp140 = tmp139 / 0.01;
297
+ const auto tmp140 = tmp139 / 0.1;
298
298
  const auto tmp141 = tmp140 * tmp133;
299
299
  const auto tmp142 = -1 * tmp141;
300
300
  const auto tmp143 = 0.5 * tmp142;
@@ -347,7 +347,7 @@ struct UFLLocalFunction
347
347
  const auto tmp190 = tmp189 + tmp171;
348
348
  const auto tmp191 = tmp190 / tmp80;
349
349
  const auto tmp192 = 3 * tmp191;
350
- const auto tmp193 = tmp192 / 0.01;
350
+ const auto tmp193 = tmp192 / 0.1;
351
351
  const auto tmp194 = tmp193 * tmp79;
352
352
  const auto tmp195 = -1 * tmp194;
353
353
  const auto tmp196 = 0.5 * tmp195;
@@ -360,7 +360,7 @@ struct UFLLocalFunction
360
360
  const auto tmp203 = tmp189 + tmp202;
361
361
  const auto tmp204 = tmp203 / tmp134;
362
362
  const auto tmp205 = 3 * tmp204;
363
- const auto tmp206 = tmp205 / 0.01;
363
+ const auto tmp206 = tmp205 / 0.1;
364
364
  const auto tmp207 = tmp206 * tmp133;
365
365
  const auto tmp208 = -1 * tmp207;
366
366
  const auto tmp209 = 0.5 * tmp208;
@@ -434,7 +434,7 @@ struct UFLLocalFunction
434
434
  const auto tmp43 = std::sqrt( tmp42 );
435
435
  const auto tmp44 = -0.5 + tmp43;
436
436
  const auto tmp45 = 3 * tmp44;
437
- const auto tmp46 = tmp45 / 0.01;
437
+ const auto tmp46 = tmp45 / 0.1;
438
438
  const auto tmp47 = std::tanh( tmp46 );
439
439
  const auto tmp48 = -1 * tmp47;
440
440
  const auto tmp49 = 1 + tmp48;
@@ -449,7 +449,7 @@ struct UFLLocalFunction
449
449
  const auto tmp58 = std::sqrt( tmp57 );
450
450
  const auto tmp59 = -0.5 + tmp58;
451
451
  const auto tmp60 = 3 * tmp59;
452
- const auto tmp61 = tmp60 / 0.01;
452
+ const auto tmp61 = tmp60 / 0.1;
453
453
  const auto tmp62 = std::tanh( tmp61 );
454
454
  const auto tmp63 = -1 * tmp62;
455
455
  const auto tmp64 = 1 + tmp63;
@@ -507,7 +507,7 @@ struct UFLLocalFunction
507
507
  const auto tmp116 = tmp115 + tmp97;
508
508
  const auto tmp117 = tmp116 / tmp80;
509
509
  const auto tmp118 = 3 * tmp117;
510
- const auto tmp119 = tmp118 / 0.01;
510
+ const auto tmp119 = tmp118 / 0.1;
511
511
  const auto tmp120 = tmp119 * tmp79;
512
512
  const auto tmp121 = -1 * tmp120;
513
513
  const auto tmp122 = 0.5 * tmp121;
@@ -528,7 +528,7 @@ struct UFLLocalFunction
528
528
  const auto tmp137 = tmp136 + tmp97;
529
529
  const auto tmp138 = tmp137 / tmp134;
530
530
  const auto tmp139 = 3 * tmp138;
531
- const auto tmp140 = tmp139 / 0.01;
531
+ const auto tmp140 = tmp139 / 0.1;
532
532
  const auto tmp141 = tmp140 * tmp133;
533
533
  const auto tmp142 = -1 * tmp141;
534
534
  const auto tmp143 = 0.5 * tmp142;
@@ -610,7 +610,7 @@ struct UFLLocalFunction
610
610
  const auto tmp219 = tmp218 + tmp159;
611
611
  const auto tmp220 = tmp219 / tmp80;
612
612
  const auto tmp221 = 3 * tmp220;
613
- const auto tmp222 = tmp221 / 0.01;
613
+ const auto tmp222 = tmp221 / 0.1;
614
614
  const auto tmp223 = tmp222 * tmp79;
615
615
  const auto tmp224 = std::sinh( tmp46 );
616
616
  const auto tmp225 = tmp119 * tmp224;
@@ -645,7 +645,7 @@ struct UFLLocalFunction
645
645
  const auto tmp254 = tmp253 + tmp249;
646
646
  const auto tmp255 = tmp254 / tmp134;
647
647
  const auto tmp256 = 3 * tmp255;
648
- const auto tmp257 = tmp256 / 0.01;
648
+ const auto tmp257 = tmp256 / 0.1;
649
649
  const auto tmp258 = tmp257 * tmp133;
650
650
  const auto tmp259 = std::sinh( tmp61 );
651
651
  const auto tmp260 = tmp140 * tmp259;
@@ -716,7 +716,7 @@ struct UFLLocalFunction
716
716
  const auto tmp325 = tmp324 + tmp306;
717
717
  const auto tmp326 = tmp325 / tmp80;
718
718
  const auto tmp327 = 3 * tmp326;
719
- const auto tmp328 = tmp327 / 0.01;
719
+ const auto tmp328 = tmp327 / 0.1;
720
720
  const auto tmp329 = tmp328 * tmp79;
721
721
  const auto tmp330 = -1 * tmp329;
722
722
  const auto tmp331 = 0.5 * tmp330;
@@ -729,7 +729,7 @@ struct UFLLocalFunction
729
729
  const auto tmp338 = tmp324 + tmp337;
730
730
  const auto tmp339 = tmp338 / tmp134;
731
731
  const auto tmp340 = 3 * tmp339;
732
- const auto tmp341 = tmp340 / 0.01;
732
+ const auto tmp341 = tmp340 / 0.1;
733
733
  const auto tmp342 = tmp341 * tmp133;
734
734
  const auto tmp343 = -1 * tmp342;
735
735
  const auto tmp344 = 0.5 * tmp343;
@@ -812,7 +812,7 @@ struct UFLLocalFunction
812
812
  const auto tmp421 = tmp420 + tmp355;
813
813
  const auto tmp422 = tmp421 / tmp80;
814
814
  const auto tmp423 = 3 * tmp422;
815
- const auto tmp424 = tmp423 / 0.01;
815
+ const auto tmp424 = tmp423 / 0.1;
816
816
  const auto tmp425 = tmp424 * tmp79;
817
817
  const auto tmp426 = tmp328 * tmp224;
818
818
  const auto tmp427 = 2.0 * tmp426;
@@ -846,7 +846,7 @@ struct UFLLocalFunction
846
846
  const auto tmp455 = tmp454 + tmp450;
847
847
  const auto tmp456 = tmp455 / tmp134;
848
848
  const auto tmp457 = 3 * tmp456;
849
- const auto tmp458 = tmp457 / 0.01;
849
+ const auto tmp458 = tmp457 / 0.1;
850
850
  const auto tmp459 = tmp458 * tmp133;
851
851
  const auto tmp460 = tmp341 * tmp259;
852
852
  const auto tmp461 = 2.0 * tmp460;
@@ -941,7 +941,7 @@ struct UFLLocalFunction
941
941
  const auto tmp550 = tmp549 + tmp498;
942
942
  const auto tmp551 = tmp550 / tmp80;
943
943
  const auto tmp552 = 3 * tmp551;
944
- const auto tmp553 = tmp552 / 0.01;
944
+ const auto tmp553 = tmp552 / 0.1;
945
945
  const auto tmp554 = tmp553 * tmp79;
946
946
  const auto tmp555 = tmp235 * tmp328;
947
947
  const auto tmp556 = tmp555 + tmp554;
@@ -962,7 +962,7 @@ struct UFLLocalFunction
962
962
  const auto tmp571 = tmp570 + tmp566;
963
963
  const auto tmp572 = tmp571 / tmp134;
964
964
  const auto tmp573 = 3 * tmp572;
965
- const auto tmp574 = tmp573 / 0.01;
965
+ const auto tmp574 = tmp573 / 0.1;
966
966
  const auto tmp575 = tmp574 * tmp133;
967
967
  const auto tmp576 = tmp270 * tmp341;
968
968
  const auto tmp577 = tmp576 + tmp575;
@@ -1050,7 +1050,7 @@ struct UFLLocalFunction
1050
1050
  const auto tmp659 = tmp658 + tmp599;
1051
1051
  const auto tmp660 = tmp659 / tmp80;
1052
1052
  const auto tmp661 = 3 * tmp660;
1053
- const auto tmp662 = tmp661 / 0.01;
1053
+ const auto tmp662 = tmp661 / 0.1;
1054
1054
  const auto tmp663 = tmp662 * tmp79;
1055
1055
  const auto tmp664 = tmp435 * tmp328;
1056
1056
  const auto tmp665 = tmp664 + tmp663;
@@ -1072,7 +1072,7 @@ struct UFLLocalFunction
1072
1072
  const auto tmp681 = tmp680 + tmp676;
1073
1073
  const auto tmp682 = tmp681 / tmp134;
1074
1074
  const auto tmp683 = 3 * tmp682;
1075
- const auto tmp684 = tmp683 / 0.01;
1075
+ const auto tmp684 = tmp683 / 0.1;
1076
1076
  const auto tmp685 = tmp684 * tmp133;
1077
1077
  const auto tmp686 = tmp469 * tmp341;
1078
1078
  const auto tmp687 = tmp686 + tmp685;
@@ -1114,14 +1114,14 @@ struct UFLLocalFunction
1114
1114
  std::tuple< > coefficients_;
1115
1115
  };
1116
1116
 
1117
- } // namespace UFLLocalFunctions_c5ebc4ae4b5d3bad6be770eb08c50d08
1117
+ } // namespace UFLLocalFunctions_c3d0902cf8bb4b86b62a2293de2b74e9
1118
1118
 
1119
- PYBIND11_MODULE( localfunction_c5ebc4ae4b5d3bad6be770eb08c50d08_19659fe2f2f74bcfb5d532f1a0d38be9, module )
1119
+ PYBIND11_MODULE( localfunction_c3d0902cf8bb4b86b62a2293de2b74e9_19659fe2f2f74bcfb5d532f1a0d38be9, module )
1120
1120
  {
1121
- typedef UFLLocalFunctions_c5ebc4ae4b5d3bad6be770eb08c50d08::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > > LocalFunctionType;
1121
+ typedef UFLLocalFunctions_c3d0902cf8bb4b86b62a2293de2b74e9::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > > LocalFunctionType;
1122
1122
  if constexpr( LocalFunctionType::gridPartValid )
1123
1123
  {
1124
- auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_c5ebc4ae4b5d3bad6be770eb08c50d08::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_c5ebc4ae4b5d3bad6be770eb08c50d08_19659fe2f2f74bcfb5d532f1a0d38be9.cc"})).first;
1124
+ auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_c3d0902cf8bb4b86b62a2293de2b74e9::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_c3d0902cf8bb4b86b62a2293de2b74e9_19659fe2f2f74bcfb5d532f1a0d38be9.cc"})).first;
1125
1125
  Dune::FemPy::registerUFLLocalFunction( module, cls );
1126
1126
  cls.def( pybind11::init( [] ( pybind11::object gridView, const std::string &name, int order ) {return new LocalFunctionType( Dune::FemPy::gridPart<Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView>(gridView),name,order); } ), pybind11::keep_alive< 1, 2 >() );
1127
1127
  cls.def_property_readonly( "virtualized", [] ( LocalFunctionType& ) -> bool { return true;});
@@ -0,0 +1,267 @@
1
+ #ifndef GUARD_cf4a29dc25e72137baf2f8fb8b8d3c50
2
+ #define GUARD_cf4a29dc25e72137baf2f8fb8b8d3c50
3
+
4
+ #define USING_DUNE_PYTHON 1
5
+ #include <config.h>
6
+ #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
7
+ #include <dune/grid/yaspgrid.hh>
8
+ #include <dune/python/grid/hierarchical.hh>
9
+ #include <dune/fem/function/localfunction/bindable.hh>
10
+ #include <dune/fem/common/intersectionside.hh>
11
+ #include <dune/python/pybind11/pybind11.h>
12
+ #include <dune/python/pybind11/extensions.h>
13
+ #include <dune/fempy/py/grid/gridpart.hh>
14
+ #include <dune/common/exceptions.hh>
15
+ #include <dune/fempy/py/ufllocalfunction.hh>
16
+
17
+ namespace UFLLocalFunctions_cf4a29dc25e72137baf2f8fb8b8d3c50
18
+ {
19
+
20
+ // UFLLocalFunction
21
+ // ----------------
22
+
23
+ template< class GridPart >
24
+ struct UFLLocalFunction
25
+ : public Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>>
26
+ {
27
+ typedef GridPart GridPartType;
28
+ typedef typename GridPartType::GridViewType GridView;
29
+ typedef typename GridView::ctype ctype;
30
+ typedef Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>> BaseType;
31
+ typedef Dune::Fem::GridFunctionSpace<GridPartType,Dune::Dim<1>> FunctionSpaceType;
32
+ typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
33
+ typedef typename GridPartType::IntersectionType IntersectionType;
34
+ typedef typename EntityType::Geometry Geometry;
35
+ typedef typename Geometry::GlobalCoordinate GlobalCoordinateType;
36
+ typedef Dune::Fem::IntersectionSide Side;
37
+ typedef std::tuple<> ConstantTupleType;
38
+ typedef std::tuple<> CoefficientTupleType;
39
+ static constexpr bool gridPartValid = true;
40
+ template< std::size_t i >
41
+ using CoefficientType = std::tuple_element_t< i, CoefficientTupleType >;
42
+ template< std::size_t i >
43
+ using ConstantType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
44
+ using BaseType::entity;
45
+ using BaseType::geometry;
46
+
47
+ UFLLocalFunction ( const GridPartType &gridPart, const std::string &name, int order, const Dune::Fem::ParameterReader &parameter = Dune::Fem::Parameter::container() )
48
+ : BaseType(gridPart,name,order)
49
+ {}
50
+
51
+ void bind ( const IntersectionType &intersection, Side side )
52
+ {
53
+ BaseType::bind(intersection, side);
54
+ }
55
+
56
+ void bind ( const EntityType &entity )
57
+ {
58
+ BaseType::bind(entity);
59
+ }
60
+
61
+ void unbind ()
62
+ {
63
+ BaseType::unbind();
64
+ }
65
+
66
+ template< class Point >
67
+ void evaluate ( const Point &x, typename FunctionSpaceType::RangeType &result ) const
68
+ {
69
+ using std::sqrt;
70
+ using std::tanh;
71
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
72
+ const auto tmp1 = -0.3 + tmp0[ 1 ];
73
+ const auto tmp2 = tmp1 * tmp1;
74
+ const auto tmp3 = -0.1 + tmp0[ 0 ];
75
+ const auto tmp4 = tmp3 * tmp3;
76
+ const auto tmp5 = tmp4 + tmp2;
77
+ const auto tmp6 = 1e-10 + tmp5;
78
+ const auto tmp7 = std::sqrt( tmp6 );
79
+ const auto tmp8 = -0.5 + tmp7;
80
+ const auto tmp9 = 3 * tmp8;
81
+ const auto tmp10 = tmp9 / 0.1;
82
+ const auto tmp11 = std::tanh( tmp10 );
83
+ const auto tmp12 = -1 * tmp11;
84
+ const auto tmp13 = 1 + tmp12;
85
+ const auto tmp14 = 0.5 * tmp13;
86
+ result[ 0 ] = tmp14;
87
+ }
88
+
89
+ template< class Point >
90
+ void jacobian ( const Point &x, typename FunctionSpaceType::JacobianRangeType &result ) const
91
+ {
92
+ using std::cosh;
93
+ using std::pow;
94
+ using std::sqrt;
95
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
96
+ const auto tmp1 = -0.3 + tmp0[ 1 ];
97
+ const auto tmp2 = tmp1 * tmp1;
98
+ const auto tmp3 = -0.1 + tmp0[ 0 ];
99
+ const auto tmp4 = tmp3 * tmp3;
100
+ const auto tmp5 = tmp4 + tmp2;
101
+ const auto tmp6 = 1e-10 + tmp5;
102
+ const auto tmp7 = std::sqrt( tmp6 );
103
+ const auto tmp8 = -0.5 + tmp7;
104
+ const auto tmp9 = 3 * tmp8;
105
+ const auto tmp10 = tmp9 / 0.1;
106
+ const auto tmp11 = 2.0 * tmp10;
107
+ const auto tmp12 = std::cosh( tmp11 );
108
+ const auto tmp13 = 1.0 + tmp12;
109
+ const auto tmp14 = std::cosh( tmp10 );
110
+ const auto tmp15 = 2.0 * tmp14;
111
+ const auto tmp16 = tmp15 / tmp13;
112
+ const auto tmp17 = std::pow( tmp16, 2 );
113
+ const auto tmp18 = 2 * tmp7;
114
+ const auto tmp19 = tmp3 + tmp3;
115
+ const auto tmp20 = tmp19 / tmp18;
116
+ const auto tmp21 = 3 * tmp20;
117
+ const auto tmp22 = tmp21 / 0.1;
118
+ const auto tmp23 = tmp22 * tmp17;
119
+ const auto tmp24 = -1 * tmp23;
120
+ const auto tmp25 = 0.5 * tmp24;
121
+ const auto tmp26 = tmp1 + tmp1;
122
+ const auto tmp27 = tmp26 / tmp18;
123
+ const auto tmp28 = 3 * tmp27;
124
+ const auto tmp29 = tmp28 / 0.1;
125
+ const auto tmp30 = tmp29 * tmp17;
126
+ const auto tmp31 = -1 * tmp30;
127
+ const auto tmp32 = 0.5 * tmp31;
128
+ (result[ 0 ])[ 0 ] = tmp25;
129
+ (result[ 0 ])[ 1 ] = tmp32;
130
+ }
131
+
132
+ template< class Point >
133
+ void hessian ( const Point &x, typename FunctionSpaceType::HessianRangeType &result ) const
134
+ {
135
+ using std::cosh;
136
+ using std::pow;
137
+ using std::sinh;
138
+ using std::sqrt;
139
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
140
+ const auto tmp1 = -0.3 + tmp0[ 1 ];
141
+ const auto tmp2 = tmp1 * tmp1;
142
+ const auto tmp3 = -0.1 + tmp0[ 0 ];
143
+ const auto tmp4 = tmp3 * tmp3;
144
+ const auto tmp5 = tmp4 + tmp2;
145
+ const auto tmp6 = 1e-10 + tmp5;
146
+ const auto tmp7 = std::sqrt( tmp6 );
147
+ const auto tmp8 = -0.5 + tmp7;
148
+ const auto tmp9 = 3 * tmp8;
149
+ const auto tmp10 = tmp9 / 0.1;
150
+ const auto tmp11 = 2.0 * tmp10;
151
+ const auto tmp12 = std::cosh( tmp11 );
152
+ const auto tmp13 = 1.0 + tmp12;
153
+ const auto tmp14 = std::cosh( tmp10 );
154
+ const auto tmp15 = 2.0 * tmp14;
155
+ const auto tmp16 = tmp15 / tmp13;
156
+ const auto tmp17 = std::pow( tmp16, 2 );
157
+ const auto tmp18 = 2 * tmp7;
158
+ const auto tmp19 = tmp3 + tmp3;
159
+ const auto tmp20 = tmp19 / tmp18;
160
+ const auto tmp21 = 2 * tmp20;
161
+ const auto tmp22 = tmp21 * tmp20;
162
+ const auto tmp23 = -1 * tmp22;
163
+ const auto tmp24 = 2 + tmp23;
164
+ const auto tmp25 = tmp24 / tmp18;
165
+ const auto tmp26 = 3 * tmp25;
166
+ const auto tmp27 = tmp26 / 0.1;
167
+ const auto tmp28 = tmp27 * tmp17;
168
+ const auto tmp29 = 3 * tmp20;
169
+ const auto tmp30 = tmp29 / 0.1;
170
+ const auto tmp31 = std::sinh( tmp10 );
171
+ const auto tmp32 = tmp30 * tmp31;
172
+ const auto tmp33 = 2.0 * tmp32;
173
+ const auto tmp34 = std::sinh( tmp11 );
174
+ const auto tmp35 = 2.0 * tmp30;
175
+ const auto tmp36 = tmp35 * tmp34;
176
+ const auto tmp37 = tmp36 * tmp16;
177
+ const auto tmp38 = -1 * tmp37;
178
+ const auto tmp39 = tmp38 + tmp33;
179
+ const auto tmp40 = tmp39 / tmp13;
180
+ const auto tmp41 = 2 * tmp40;
181
+ const auto tmp42 = tmp41 * tmp16;
182
+ const auto tmp43 = tmp42 * tmp30;
183
+ const auto tmp44 = tmp43 + tmp28;
184
+ const auto tmp45 = -1 * tmp44;
185
+ const auto tmp46 = 0.5 * tmp45;
186
+ const auto tmp47 = tmp1 + tmp1;
187
+ const auto tmp48 = tmp47 / tmp18;
188
+ const auto tmp49 = 2 * tmp48;
189
+ const auto tmp50 = tmp49 * tmp20;
190
+ const auto tmp51 = -1 * tmp50;
191
+ const auto tmp52 = tmp51 / tmp18;
192
+ const auto tmp53 = 3 * tmp52;
193
+ const auto tmp54 = tmp53 / 0.1;
194
+ const auto tmp55 = tmp54 * tmp17;
195
+ const auto tmp56 = 3 * tmp48;
196
+ const auto tmp57 = tmp56 / 0.1;
197
+ const auto tmp58 = tmp57 * tmp31;
198
+ const auto tmp59 = 2.0 * tmp58;
199
+ const auto tmp60 = 2.0 * tmp57;
200
+ const auto tmp61 = tmp60 * tmp34;
201
+ const auto tmp62 = tmp61 * tmp16;
202
+ const auto tmp63 = -1 * tmp62;
203
+ const auto tmp64 = tmp63 + tmp59;
204
+ const auto tmp65 = tmp64 / tmp13;
205
+ const auto tmp66 = 2 * tmp65;
206
+ const auto tmp67 = tmp66 * tmp16;
207
+ const auto tmp68 = tmp67 * tmp30;
208
+ const auto tmp69 = tmp68 + tmp55;
209
+ const auto tmp70 = -1 * tmp69;
210
+ const auto tmp71 = 0.5 * tmp70;
211
+ const auto tmp72 = tmp21 * tmp48;
212
+ const auto tmp73 = -1 * tmp72;
213
+ const auto tmp74 = tmp73 / tmp18;
214
+ const auto tmp75 = 3 * tmp74;
215
+ const auto tmp76 = tmp75 / 0.1;
216
+ const auto tmp77 = tmp76 * tmp17;
217
+ const auto tmp78 = tmp42 * tmp57;
218
+ const auto tmp79 = tmp78 + tmp77;
219
+ const auto tmp80 = -1 * tmp79;
220
+ const auto tmp81 = 0.5 * tmp80;
221
+ const auto tmp82 = tmp49 * tmp48;
222
+ const auto tmp83 = -1 * tmp82;
223
+ const auto tmp84 = 2 + tmp83;
224
+ const auto tmp85 = tmp84 / tmp18;
225
+ const auto tmp86 = 3 * tmp85;
226
+ const auto tmp87 = tmp86 / 0.1;
227
+ const auto tmp88 = tmp87 * tmp17;
228
+ const auto tmp89 = tmp67 * tmp57;
229
+ const auto tmp90 = tmp89 + tmp88;
230
+ const auto tmp91 = -1 * tmp90;
231
+ const auto tmp92 = 0.5 * tmp91;
232
+ ((result[ 0 ])[ 0 ])[ 0 ] = tmp46;
233
+ ((result[ 0 ])[ 0 ])[ 1 ] = tmp71;
234
+ ((result[ 0 ])[ 1 ])[ 0 ] = tmp81;
235
+ ((result[ 0 ])[ 1 ])[ 1 ] = tmp92;
236
+ }
237
+
238
+ template< std::size_t i >
239
+ const ConstantType< i > &constant () const
240
+ {
241
+ return *std::get< i >( constants_ );
242
+ }
243
+
244
+ template< std::size_t i >
245
+ ConstantType< i > &constant ()
246
+ {
247
+ return *std::get< i >( constants_ );
248
+ }
249
+ ConstantTupleType constants_;
250
+ std::tuple< > coefficients_;
251
+ };
252
+
253
+ } // namespace UFLLocalFunctions_cf4a29dc25e72137baf2f8fb8b8d3c50
254
+
255
+ PYBIND11_MODULE( localfunction_cf4a29dc25e72137baf2f8fb8b8d3c50_19659fe2f2f74bcfb5d532f1a0d38be9, module )
256
+ {
257
+ typedef UFLLocalFunctions_cf4a29dc25e72137baf2f8fb8b8d3c50::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > > LocalFunctionType;
258
+ if constexpr( LocalFunctionType::gridPartValid )
259
+ {
260
+ auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_cf4a29dc25e72137baf2f8fb8b8d3c50::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_cf4a29dc25e72137baf2f8fb8b8d3c50_19659fe2f2f74bcfb5d532f1a0d38be9.cc"})).first;
261
+ Dune::FemPy::registerUFLLocalFunction( module, cls );
262
+ cls.def( pybind11::init( [] ( pybind11::object gridView, const std::string &name, int order ) {return new LocalFunctionType( Dune::FemPy::gridPart<Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView>(gridView),name,order); } ), pybind11::keep_alive< 1, 2 >() );
263
+ cls.def_property_readonly( "virtualized", [] ( LocalFunctionType& ) -> bool { return true;});
264
+ }
265
+ }
266
+
267
+ #endif