ddfem 1.0.9__py3-none-any.whl → 1.0.11__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 +10 -6
- ddfem/__main__.py +12 -13
- ddfem/boundary.py +2 -2
- ddfem/data/2.11.dev20250709/extra.modules +14 -0
- ddfem/data/2.11.dev20250709/femscheme_0bb54cd4f1cd1df2477f5f59393c6a2e.cc +43 -0
- ddfem/data/2.11.dev20250709/femscheme_5c9e2700386c07226eb4db155fa5ef14.cc +43 -0
- ddfem/data/2.11.dev20250709/femscheme_765ef00d995a939c34bdc0d0cc4847ca.cc +43 -0
- ddfem/data/2.11.dev20250709/femspace_11b3436cb033df683615c50d5d4239bd_f14dd0b3b474c0cd816334330f55ad72.cc +45 -0
- ddfem/data/2.11.dev20250709/femspace_f4f043307753c8e74af23c94c28a3b0d_438586e783f51d84a82e82b0d8daceea.cc +45 -0
- ddfem/data/2.11.dev20250709/{integrands_3bde0abfafcf45a3cff4d1029568ab5cv1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_0003e4cbb961fd653fe295d2c4fa50a7v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +367 -14
- ddfem/data/2.11.dev20250709/{integrands_f3ca00a2ef95c9a48de9ec1b807b1b30v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_0fa4a1c37449cf574971977e10cf682av1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
- ddfem/data/2.11.dev20250709/{integrands_2e5e6f48655bd358419554a0857f697bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_29b696aa653181a57d036f771efa8be9v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
- ddfem/data/2.11.dev20250709/{integrands_5e1afa60a15644998389a84306246ea5v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_536f9ba0ea4ecd1f7d4e2bc43ef29d08v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
- ddfem/data/2.11.dev20250709/{integrands_008eefa148b772fa3192dd3c1728c140v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_5907ab5c70328c21dd308abf09e529aev1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
- ddfem/data/2.11.dev20250709/{integrands_563572f4cb20b041e8198ba7d5f88584v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_68eba4e963a61031a52da3365f515585v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
- ddfem/data/2.11.dev20250709/integrands_83927be37e79b291517b827b9ddc1983v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +533 -0
- ddfem/data/2.11.dev20250709/integrands_8ed2f23c088e3a3d82a3259b663796c7v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +533 -0
- ddfem/data/2.11.dev20250709/integrands_af3bbe7d629df162ef8c570e1503bf62v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +762 -0
- ddfem/data/2.11.dev20250709/{integrands_2339be3c67df1d67b18125c34ced69c2v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_bf510277401791ad5e30831b49a8ed7cv1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +25 -14
- ddfem/data/2.11.dev20250709/integrands_d0634430f14d3432dae186e57ec5aecav1_3_a524c1196983e65de1c06d7d6afdeb44.cc +587 -0
- ddfem/data/2.11.dev20250709/intro.modules +34 -100
- ddfem/data/2.11.dev20250709/{localfunction_10ad0a2d88c74db5f4bf5f81e138974f_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_0cb4ca9e24e2891510640b0737aaab21_a524c1196983e65de1c06d7d6afdeb44.cc} +64 -29
- ddfem/data/2.11.dev20250709/localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44.cc +393 -0
- ddfem/data/2.11.dev20250709/localfunction_10f9d7a54f79c12d6ca923b9ee56b80d_a524c1196983e65de1c06d7d6afdeb44.cc +324 -0
- ddfem/data/2.11.dev20250709/localfunction_10f9d7a54f79c12d6ca923b9ee56b80d_af122c1df944c95cd395ec0f91d0f970.cc +322 -0
- ddfem/data/2.11.dev20250709/localfunction_1c20e613977d8cea4cf5227c12aa68a6_a524c1196983e65de1c06d7d6afdeb44.cc +164 -0
- ddfem/data/2.11.dev20250709/{localfunction_191355e6250b2d2e260d96f519ad9976_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_217e4bf8b368a7768c4897cf58f71d84_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -14
- ddfem/data/2.11.dev20250709/localfunction_22e797a8f3e8c322f33c41e07bd15165_a524c1196983e65de1c06d7d6afdeb44.cc +1445 -0
- ddfem/data/2.11.dev20250709/localfunction_2a97db5a6a479d02138a836cb0890cf2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/2.11.dev20250709/localfunction_2e2afc8df6107683d574a8d96d5249f4_af122c1df944c95cd395ec0f91d0f970.cc +512 -0
- ddfem/data/2.11.dev20250709/localfunction_32613626342183eafa360dc1f0f18924_a524c1196983e65de1c06d7d6afdeb44.cc +1425 -0
- ddfem/data/2.11.dev20250709/localfunction_37174cfc9d6bf565336cac0d2ea785f5_a524c1196983e65de1c06d7d6afdeb44.cc +786 -0
- ddfem/data/2.11.dev20250709/{localfunction_d75993d7ae5919d23117b153e900840d_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_3d957c5b2628e5120636b8e3f461bc0d_a524c1196983e65de1c06d7d6afdeb44.cc} +64 -29
- ddfem/data/2.11.dev20250709/localfunction_3ecaa105be9e3abddf3a85d8adc5d36f_a524c1196983e65de1c06d7d6afdeb44.cc +697 -0
- ddfem/data/2.11.dev20250709/{localfunction_f626cd43dc8558135fe0b32cde016644_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_3ecaf7de7505b53bb0b5fb6d78549387_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -14
- ddfem/data/2.11.dev20250709/{localfunction_1d27a90a52b9053192c9cc902283f79b_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_4192604521151252f1c8fa56a1f9f226_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -14
- ddfem/data/2.11.dev20250709/localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/2.11.dev20250709/localfunction_4976bbef3267846b59f3a26497ffe9db_a524c1196983e65de1c06d7d6afdeb44.cc +474 -0
- ddfem/data/2.11.dev20250709/{localfunction_a8c726f728cd35d137188b33301aeef1_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_4adfaf8a08fac23151af0b1e790db1f7_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -14
- ddfem/data/2.11.dev20250709/{localfunction_00f2e5593eeb23f01906255d67244f6e_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_4f6a526abfe63959f81b09a5796c5eb1_a524c1196983e65de1c06d7d6afdeb44.cc} +44 -29
- ddfem/data/2.11.dev20250709/localfunction_5591a2c803b9658084d8f11d44bf3ae1_a524c1196983e65de1c06d7d6afdeb44.cc +485 -0
- ddfem/data/2.11.dev20250709/localfunction_6363af791dde11d699a9a3d876cc5d9a_a524c1196983e65de1c06d7d6afdeb44.cc +549 -0
- ddfem/data/2.11.dev20250709/localfunction_6363af791dde11d699a9a3d876cc5d9a_af122c1df944c95cd395ec0f91d0f970.cc +547 -0
- ddfem/data/2.11.dev20250709/localfunction_65bda5736a84d4aa0ef2d48ebcc90ed5_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
- ddfem/data/2.11.dev20250709/localfunction_6eccfc8fd91ce34d81e7c3962ece5d94_a524c1196983e65de1c06d7d6afdeb44.cc +766 -0
- ddfem/data/2.11.dev20250709/localfunction_762aa49bc5a47ad3d8d8bbde36b42ee5_a524c1196983e65de1c06d7d6afdeb44.cc +723 -0
- ddfem/data/2.11.dev20250709/localfunction_76e8db0f046ac9e37a793e0bb13eea7b_a524c1196983e65de1c06d7d6afdeb44.cc +292 -0
- ddfem/data/2.11.dev20250709/localfunction_7792f4273b0fd848c5a0fc9d6f12683e_a524c1196983e65de1c06d7d6afdeb44.cc +280 -0
- ddfem/data/2.11.dev20250709/localfunction_7d81d496538f240d504e5597484ee746_a524c1196983e65de1c06d7d6afdeb44.cc +462 -0
- ddfem/data/2.11.dev20250709/localfunction_7f7ef99c50708814ba5a82b0956b0aed_a524c1196983e65de1c06d7d6afdeb44.cc +461 -0
- ddfem/data/2.11.dev20250709/localfunction_898de4ae138e0ed305ef1399c66aa10a_a524c1196983e65de1c06d7d6afdeb44.cc +313 -0
- ddfem/data/2.11.dev20250709/localfunction_98b04b00bb93b8c6da99c91867e597ca_a524c1196983e65de1c06d7d6afdeb44.cc +639 -0
- ddfem/data/2.11.dev20250709/{localfunction_86a0670f34bf2ac8155423a1c1bc2e75_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_a46a988b5d8571e80fd401a36d7341b7_a524c1196983e65de1c06d7d6afdeb44.cc} +64 -29
- ddfem/data/2.11.dev20250709/{localfunction_1d13146d4bff10e178aba773fe2a9f1d_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_a99a0c7f35b06ac5a1fa7f081b5e64f9_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -14
- ddfem/data/2.11.dev20250709/{localfunction_e4557ecff74fe5b37313674e67db2782_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_a9bb07439605d560b583608f20441342_a524c1196983e65de1c06d7d6afdeb44.cc} +67 -29
- ddfem/data/2.11.dev20250709/{localfunction_82d7cb9338bf118426fac2abf41a91a4_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_cda923259a47bb19861404a9fdb64303_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -14
- ddfem/data/2.11.dev20250709/localfunction_d0f33c2dc1ae0e619d85a7621c8e83a6_a524c1196983e65de1c06d7d6afdeb44.cc +325 -0
- ddfem/data/2.11.dev20250709/localfunction_d3d9b8a21e3075c9ff40117c5244f28e_a524c1196983e65de1c06d7d6afdeb44.cc +381 -0
- ddfem/data/2.11.dev20250709/localfunction_d4b9ca85d48735ee01f395a42eaa0cee_af122c1df944c95cd395ec0f91d0f970.cc +774 -0
- ddfem/data/2.11.dev20250709/localfunction_dd1fb4bd60f2d8b3a062dbbdaedb9fee_a524c1196983e65de1c06d7d6afdeb44.cc +869 -0
- ddfem/data/2.11.dev20250709/localfunction_dd5ab085a9d94f578c1f3d337ea360a3_a524c1196983e65de1c06d7d6afdeb44.cc +161 -0
- ddfem/data/2.11.dev20250709/{localfunction_3e323e81c52891c0ecb656eac273e52f_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_e2b19c5987f9b6fb0cd5453bfa7f4f9f_a524c1196983e65de1c06d7d6afdeb44.cc} +14 -30
- ddfem/data/2.11.dev20250709/{localfunction_e69118a51208cfab8a028711e966e76c_19659fe2f2f74bcfb5d532f1a0d38be9.cc → localfunction_e85b93fe9b8fcd40ee82782fc600b65b_a524c1196983e65de1c06d7d6afdeb44.cc} +89 -78
- ddfem/data/extra.modules +13 -0
- ddfem/examples/beam.py +43 -50
- ddfem/examples/chemical_reaction.py +1 -1
- ddfem/examples/five_circle_flat.py +42 -28
- ddfem/examples/linear_elasticity.py +5 -1
- ddfem/examples/triple_circle.py +86 -83
- ddfem/examples/triple_circle_beam.py +71 -61
- ddfem/geometry/primitive_base.py +1 -1
- {ddfem-1.0.9.dist-info → ddfem-1.0.11.dist-info}/METADATA +35 -3
- ddfem-1.0.11.dist-info/RECORD +124 -0
- ddfem/data/2.11.dev20250709/boundary.modules +0 -9
- ddfem/data/2.11.dev20250709/femspace_90f0a9524a8cb701e8ee5027b7658a0e_0faf32f13b591f4f60f83c591507b9be.cc +0 -40
- ddfem/data/2.11.dev20250709/geometry.modules +0 -84
- ddfem/data/2.11.dev20250709/hierarchicalgrid_966e2a5c8356c5b278ccd3acad180f0a.cc +0 -30
- ddfem/data/2.11.dev20250709/localfunction_aeb3d963412cdc65630e0a4c3c0dde0f_a524c1196983e65de1c06d7d6afdeb44.cc +0 -135
- ddfem/data/2.11.dev20250709/localfunction_bdfb7ddf42a423f7d0791458634d4b8f_a524c1196983e65de1c06d7d6afdeb44.cc +0 -135
- ddfem/data/2.11.dev20250709/localfunction_c5ebc4ae4b5d3bad6be770eb08c50d08_19659fe2f2f74bcfb5d532f1a0d38be9.cc +0 -1131
- ddfem/data/2.11.dev20250709/localfunction_f4583c5cc10d24a8bdedf7510ce9da7b_a524c1196983e65de1c06d7d6afdeb44.cc +0 -299
- ddfem/data/2.11.dev20250709/localfunction_f4b1d42cbb447375f39ed834570cd3f0_a524c1196983e65de1c06d7d6afdeb44.cc +0 -135
- ddfem/data/2.11.dev20250709/localfunction_fc22d5adaf3b9563160dc2aec55e8ba1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +0 -113
- ddfem/data/2.11.dev20250709/transformers.modules +0 -13
- ddfem/data/2.11.dev20250709/yaspcoordinates_dim2_ctdouble.cc +0 -55
- ddfem-1.0.9.dist-info/RECORD +0 -96
- {ddfem-1.0.9.dist-info → ddfem-1.0.11.dist-info}/WHEEL +0 -0
- {ddfem-1.0.9.dist-info → ddfem-1.0.11.dist-info}/licenses/LICENSE +0 -0
- {ddfem-1.0.9.dist-info → ddfem-1.0.11.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
#ifndef
|
2
|
-
#define
|
1
|
+
#ifndef GuardIntegrands_5907ab5c70328c21dd308abf09e529aev1_3
|
2
|
+
#define GuardIntegrands_5907ab5c70328c21dd308abf09e529aev1_3
|
3
3
|
#define USING_DUNE_PYTHON 1
|
4
4
|
#include <config.h>
|
5
5
|
#include <dune/alugrid/dgf.hh>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
#include <dune/fempy/geometry/edgelength.hh>
|
19
19
|
#include <dune/fempy/py/integrands.hh>
|
20
20
|
|
21
|
-
namespace
|
21
|
+
namespace Integrands_5907ab5c70328c21dd308abf09e529aev1_3
|
22
22
|
{
|
23
23
|
|
24
24
|
|
@@ -569,19 +569,19 @@ namespace Integrands_008eefa148b772fa3192dd3c1728c140v1_3
|
|
569
569
|
std::tuple< > coefficients_;
|
570
570
|
};
|
571
571
|
|
572
|
-
} // namespace
|
572
|
+
} // namespace Integrands_5907ab5c70328c21dd308abf09e529aev1_3
|
573
573
|
|
574
|
-
PYBIND11_MODULE(
|
574
|
+
PYBIND11_MODULE( integrands_5907ab5c70328c21dd308abf09e529aev1_3_a524c1196983e65de1c06d7d6afdeb44, module )
|
575
575
|
{
|
576
576
|
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;
|
577
|
-
typedef
|
577
|
+
typedef Integrands_5907ab5c70328c21dd308abf09e529aev1_3::Integrands< GridPart > Integrands;
|
578
578
|
if constexpr( Integrands::gridPartValid )
|
579
579
|
{
|
580
|
-
auto cls = Dune::Python::insertClass<Integrands>(module,"Integrands",Dune::Python::GenerateTypeName("
|
580
|
+
auto cls = Dune::Python::insertClass<Integrands>(module,"Integrands",Dune::Python::GenerateTypeName("Integrands_5907ab5c70328c21dd308abf09e529aev1_3::Integrands< GridPart >"), Dune::Python::IncludeFiles({"python/dune/generated/integrands_5907ab5c70328c21dd308abf09e529aev1_3_a524c1196983e65de1c06d7d6afdeb44.cc"})).first;
|
581
581
|
Dune::FemPy::registerIntegrands< Integrands >( module, cls );
|
582
582
|
cls.def( pybind11::init( [] () { return new Integrands(); } ) );
|
583
583
|
cls.def_property_readonly( "virtualized", [] ( Integrands& ) -> bool { return true;});
|
584
584
|
cls.def_property_readonly( "hasDirichletBoundary", [] ( Integrands& ) -> bool { return true;});
|
585
585
|
}
|
586
586
|
}
|
587
|
-
#endif //
|
587
|
+
#endif // GuardIntegrands_5907ab5c70328c21dd308abf09e529aev1_3
|
@@ -1,5 +1,5 @@
|
|
1
|
-
#ifndef
|
2
|
-
#define
|
1
|
+
#ifndef GuardIntegrands_68eba4e963a61031a52da3365f515585v1_3
|
2
|
+
#define GuardIntegrands_68eba4e963a61031a52da3365f515585v1_3
|
3
3
|
#define USING_DUNE_PYTHON 1
|
4
4
|
#include <config.h>
|
5
5
|
#include <dune/alugrid/dgf.hh>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
#include <dune/fem/misc/gridfunctionview.hh>
|
22
22
|
#include <dune/fempy/py/integrands.hh>
|
23
23
|
|
24
|
-
namespace
|
24
|
+
namespace Integrands_68eba4e963a61031a52da3365f515585v1_3
|
25
25
|
{
|
26
26
|
|
27
27
|
|
@@ -514,15 +514,15 @@ namespace Integrands_563572f4cb20b041e8198ba7d5f88584v1_3
|
|
514
514
|
std::tuple< Dune::Fem::ConstLocalFunction< Coeffbndproj >, Dune::Fem::ConstLocalFunction< Coeffextproj >, Dune::Fem::ConstLocalFunction< Coeffsdfprojfull >, Dune::Fem::ConstLocalFunction< CoeffsdfprojfullA >, Dune::Fem::ConstLocalFunction< Coeffphidomain > > coefficients_;
|
515
515
|
};
|
516
516
|
|
517
|
-
} // namespace
|
517
|
+
} // namespace Integrands_68eba4e963a61031a52da3365f515585v1_3
|
518
518
|
|
519
|
-
PYBIND11_MODULE(
|
519
|
+
PYBIND11_MODULE( integrands_68eba4e963a61031a52da3365f515585v1_3_a524c1196983e65de1c06d7d6afdeb44, module )
|
520
520
|
{
|
521
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
|
522
|
+
typedef Integrands_68eba4e963a61031a52da3365f515585v1_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
523
|
if constexpr( Integrands::gridPartValid )
|
524
524
|
{
|
525
|
-
auto cls = Dune::Python::insertClass<Integrands>(module,"Integrands",Dune::Python::GenerateTypeName("
|
525
|
+
auto cls = Dune::Python::insertClass<Integrands>(module,"Integrands",Dune::Python::GenerateTypeName("Integrands_68eba4e963a61031a52da3365f515585v1_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_68eba4e963a61031a52da3365f515585v1_3_a524c1196983e65de1c06d7d6afdeb44.cc"})).first;
|
526
526
|
Dune::FemPy::registerIntegrands< Integrands >( module, cls );
|
527
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 > > &coeffsdfprojfullA, 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 ) { return new Integrands( coeffbndproj, coeffextproj, coeffsdfprojfull, coeffsdfprojfullA, coeffphidomain ); } ), 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
528
|
cls.def_property( "epsilon", [] ( Integrands &self ) -> Integrands::Conepsilon { return self.conepsilon(); }, [] ( Integrands &self, const Integrands::Conepsilon &v ) { self.conepsilon() = v; } );
|
@@ -530,4 +530,4 @@ PYBIND11_MODULE( integrands_563572f4cb20b041e8198ba7d5f88584v1_3_a524c1196983e65
|
|
530
530
|
cls.def_property_readonly( "hasDirichletBoundary", [] ( Integrands& ) -> bool { return true;});
|
531
531
|
}
|
532
532
|
}
|
533
|
-
#endif //
|
533
|
+
#endif // GuardIntegrands_68eba4e963a61031a52da3365f515585v1_3
|
@@ -0,0 +1,533 @@
|
|
1
|
+
#ifndef GuardIntegrands_83927be37e79b291517b827b9ddc1983v1_3
|
2
|
+
#define GuardIntegrands_83927be37e79b291517b827b9ddc1983v1_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_83927be37e79b291517b827b9ddc1983v1_3
|
25
|
+
{
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
// Integrands
|
31
|
+
// ----------
|
32
|
+
|
33
|
+
template< class GridPart, class Coeffbndproj, class Coeffextproj, class Coeffsdfprojfull, class CoeffsdfprojfullA, class Coeffphidomain >
|
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, CoeffsdfprojfullA, Coeffphidomain > 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<CoeffsdfprojfullA>>() && Dune::Fem::checkGridPartValid<GridPartType,Dune::Fem::ConstLocalFunction<Coeffphidomain>>();
|
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 CoeffsdfprojfullA &coeffsdfprojfullA, const Coeffphidomain &coeffphidomain, 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< CoeffsdfprojfullA >( coeffsdfprojfullA ), Dune::Fem::ConstLocalFunction< Coeffphidomain >( coeffphidomain ) )
|
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< 4 >::RangeType tmp2 = evaluateCoefficient< 4 >( 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< 3 >::RangeType tmp6 = evaluateCoefficient< 3 >( 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< 4 >::JacobianRangeType tmp31 = jacobianCoefficient< 4 >( 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< 4 >::RangeType tmp2 = evaluateCoefficient< 4 >( 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< 3 >::RangeType tmp6 = evaluateCoefficient< 3 >( 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< 4 >::JacobianRangeType tmp20 = jacobianCoefficient< 4 >( 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< CoeffsdfprojfullA >, Dune::Fem::ConstLocalFunction< Coeffphidomain > > coefficients_;
|
515
|
+
};
|
516
|
+
|
517
|
+
} // namespace Integrands_83927be37e79b291517b827b9ddc1983v1_3
|
518
|
+
|
519
|
+
PYBIND11_MODULE( integrands_83927be37e79b291517b827b9ddc1983v1_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_83927be37e79b291517b827b9ddc1983v1_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_83927be37e79b291517b827b9ddc1983v1_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_83927be37e79b291517b827b9ddc1983v1_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 > > &coeffsdfprojfullA, 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 ) { return new Integrands( coeffbndproj, coeffextproj, coeffsdfprojfull, coeffsdfprojfullA, coeffphidomain ); } ), 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_83927be37e79b291517b827b9ddc1983v1_3
|