ngsolve 6.2.2501.post21.dev1__cp313-cp313-macosx_10_15_universal2.whl → 6.2.2501.post37.dev1__cp313-cp313-macosx_10_15_universal2.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.

Potentially problematic release.


This version of ngsolve might be problematic. Click here for more details.

Files changed (286) hide show
  1. ngsolve/webgui.py +1 -1
  2. {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post37.dev1.dist-info}/METADATA +2 -2
  3. ngsolve-6.2.2501.post37.dev1.dist-info/RECORD +25 -0
  4. netgen/include/arnoldi.hpp +0 -55
  5. netgen/include/bandmatrix.hpp +0 -334
  6. netgen/include/basematrix.hpp +0 -957
  7. netgen/include/basevector.hpp +0 -1268
  8. netgen/include/bdbequations.hpp +0 -2752
  9. netgen/include/bdbintegrator.hpp +0 -1659
  10. netgen/include/bessel.hpp +0 -1064
  11. netgen/include/bilinearform.hpp +0 -963
  12. netgen/include/bla.hpp +0 -29
  13. netgen/include/blockalloc.hpp +0 -95
  14. netgen/include/blockjacobi.hpp +0 -316
  15. netgen/include/bspline.hpp +0 -114
  16. netgen/include/calcinverse.hpp +0 -141
  17. netgen/include/cg.hpp +0 -368
  18. netgen/include/chebyshev.hpp +0 -44
  19. netgen/include/cholesky.hpp +0 -720
  20. netgen/include/clapack.h +0 -7254
  21. netgen/include/code_generation.hpp +0 -296
  22. netgen/include/coefficient.hpp +0 -2006
  23. netgen/include/coefficient_impl.hpp +0 -18
  24. netgen/include/coefficient_stdmath.hpp +0 -157
  25. netgen/include/commutingAMG.hpp +0 -106
  26. netgen/include/comp.hpp +0 -79
  27. netgen/include/compatibility.hpp +0 -41
  28. netgen/include/complex_wrapper.hpp +0 -73
  29. netgen/include/compressedfespace.hpp +0 -110
  30. netgen/include/contact.hpp +0 -231
  31. netgen/include/diagonalmatrix.hpp +0 -154
  32. netgen/include/differentialoperator.hpp +0 -276
  33. netgen/include/diffop.hpp +0 -1286
  34. netgen/include/diffop_impl.hpp +0 -326
  35. netgen/include/discontinuous.hpp +0 -84
  36. netgen/include/dump.hpp +0 -949
  37. netgen/include/eigen.hpp +0 -60
  38. netgen/include/eigensystem.hpp +0 -18
  39. netgen/include/elasticity_equations.hpp +0 -595
  40. netgen/include/elementbyelement.hpp +0 -195
  41. netgen/include/elementtopology.hpp +0 -1760
  42. netgen/include/elementtransformation.hpp +0 -339
  43. netgen/include/evalfunc.hpp +0 -405
  44. netgen/include/expr.hpp +0 -1655
  45. netgen/include/facetfe.hpp +0 -175
  46. netgen/include/facetfespace.hpp +0 -178
  47. netgen/include/facethofe.hpp +0 -111
  48. netgen/include/facetsurffespace.hpp +0 -112
  49. netgen/include/fe_interfaces.hpp +0 -32
  50. netgen/include/fem.hpp +0 -87
  51. netgen/include/fesconvert.hpp +0 -14
  52. netgen/include/fespace.hpp +0 -1445
  53. netgen/include/finiteelement.hpp +0 -286
  54. netgen/include/globalinterfacespace.hpp +0 -77
  55. netgen/include/globalspace.hpp +0 -115
  56. netgen/include/gridfunction.hpp +0 -525
  57. netgen/include/h1amg.hpp +0 -41
  58. netgen/include/h1hofe.hpp +0 -188
  59. netgen/include/h1hofe_impl.hpp +0 -1262
  60. netgen/include/h1hofefo.hpp +0 -148
  61. netgen/include/h1hofefo_impl.hpp +0 -185
  62. netgen/include/h1hofespace.hpp +0 -167
  63. netgen/include/h1lofe.hpp +0 -1237
  64. netgen/include/h1lumping.hpp +0 -35
  65. netgen/include/hcurl_equations.hpp +0 -1352
  66. netgen/include/hcurlcurlfe.hpp +0 -2221
  67. netgen/include/hcurlcurlfespace.hpp +0 -78
  68. netgen/include/hcurlfe.hpp +0 -259
  69. netgen/include/hcurlfe_utils.hpp +0 -107
  70. netgen/include/hcurlhdiv_dshape.hpp +0 -857
  71. netgen/include/hcurlhdivfes.hpp +0 -308
  72. netgen/include/hcurlhofe.hpp +0 -175
  73. netgen/include/hcurlhofe_impl.hpp +0 -1871
  74. netgen/include/hcurlhofespace.hpp +0 -193
  75. netgen/include/hcurllofe.hpp +0 -1146
  76. netgen/include/hdiv_equations.hpp +0 -865
  77. netgen/include/hdivdivfe.hpp +0 -2923
  78. netgen/include/hdivdivsurfacespace.hpp +0 -76
  79. netgen/include/hdivfe.hpp +0 -206
  80. netgen/include/hdivfe_utils.hpp +0 -716
  81. netgen/include/hdivfes.hpp +0 -75
  82. netgen/include/hdivhofe.hpp +0 -447
  83. netgen/include/hdivhofe_impl.hpp +0 -1107
  84. netgen/include/hdivhofefo.hpp +0 -229
  85. netgen/include/hdivhofespace.hpp +0 -175
  86. netgen/include/hdivhosurfacefespace.hpp +0 -106
  87. netgen/include/hdivlofe.hpp +0 -773
  88. netgen/include/hidden.hpp +0 -74
  89. netgen/include/householder.hpp +0 -181
  90. netgen/include/hypre_ams_precond.hpp +0 -123
  91. netgen/include/hypre_precond.hpp +0 -73
  92. netgen/include/integrator.hpp +0 -2024
  93. netgen/include/integratorcf.hpp +0 -253
  94. netgen/include/interpolate.hpp +0 -49
  95. netgen/include/intrule.hpp +0 -2541
  96. netgen/include/irspace.hpp +0 -49
  97. netgen/include/jacobi.hpp +0 -136
  98. netgen/include/l2hofe.hpp +0 -193
  99. netgen/include/l2hofe_impl.hpp +0 -564
  100. netgen/include/l2hofefo.hpp +0 -542
  101. netgen/include/l2hofespace.hpp +0 -344
  102. netgen/include/la.hpp +0 -38
  103. netgen/include/linearform.hpp +0 -266
  104. netgen/include/matrix.hpp +0 -2140
  105. netgen/include/memusage.hpp +0 -41
  106. netgen/include/meshaccess.hpp +0 -1358
  107. netgen/include/mgpre.hpp +0 -204
  108. netgen/include/mptools.hpp +0 -2145
  109. netgen/include/multigrid.hpp +0 -42
  110. netgen/include/multivector.hpp +0 -447
  111. netgen/include/mumpsinverse.hpp +0 -187
  112. netgen/include/mycomplex.hpp +0 -361
  113. netgen/include/ng_lapack.hpp +0 -1661
  114. netgen/include/ngblas.hpp +0 -1099
  115. netgen/include/ngs_defines.hpp +0 -30
  116. netgen/include/ngs_stdcpp_include.hpp +0 -106
  117. netgen/include/ngs_utils.hpp +0 -121
  118. netgen/include/ngsobject.hpp +0 -1019
  119. netgen/include/ngsstream.hpp +0 -113
  120. netgen/include/ngstd.hpp +0 -72
  121. netgen/include/nodalhofe.hpp +0 -96
  122. netgen/include/nodalhofe_impl.hpp +0 -141
  123. netgen/include/normalfacetfe.hpp +0 -223
  124. netgen/include/normalfacetfespace.hpp +0 -98
  125. netgen/include/normalfacetsurfacefespace.hpp +0 -84
  126. netgen/include/order.hpp +0 -251
  127. netgen/include/parallel_matrices.hpp +0 -222
  128. netgen/include/paralleldofs.hpp +0 -340
  129. netgen/include/parallelngs.hpp +0 -23
  130. netgen/include/parallelvector.hpp +0 -269
  131. netgen/include/pardisoinverse.hpp +0 -200
  132. netgen/include/periodic.hpp +0 -125
  133. netgen/include/plateaufespace.hpp +0 -25
  134. netgen/include/pml.hpp +0 -275
  135. netgen/include/pmltrafo.hpp +0 -631
  136. netgen/include/postproc.hpp +0 -142
  137. netgen/include/precomp.hpp +0 -60
  138. netgen/include/preconditioner.hpp +0 -602
  139. netgen/include/prolongation.hpp +0 -235
  140. netgen/include/python_comp.hpp +0 -107
  141. netgen/include/python_fem.hpp +0 -89
  142. netgen/include/python_linalg.hpp +0 -58
  143. netgen/include/python_ngstd.hpp +0 -385
  144. netgen/include/recursive_pol.hpp +0 -4844
  145. netgen/include/recursive_pol_tet.hpp +0 -395
  146. netgen/include/recursive_pol_trig.hpp +0 -492
  147. netgen/include/reorderedfespace.hpp +0 -81
  148. netgen/include/sample_sort.hpp +0 -105
  149. netgen/include/scalarfe.hpp +0 -335
  150. netgen/include/shapefunction_utils.hpp +0 -113
  151. netgen/include/simd_complex.hpp +0 -284
  152. netgen/include/smoother.hpp +0 -253
  153. netgen/include/solve.hpp +0 -89
  154. netgen/include/sparsecholesky.hpp +0 -313
  155. netgen/include/sparsematrix.hpp +0 -1038
  156. netgen/include/sparsematrix_dyn.hpp +0 -91
  157. netgen/include/sparsematrix_impl.hpp +0 -920
  158. netgen/include/special_matrix.hpp +0 -461
  159. netgen/include/specialelement.hpp +0 -125
  160. netgen/include/statushandler.hpp +0 -33
  161. netgen/include/stringops.hpp +0 -12
  162. netgen/include/superluinverse.hpp +0 -136
  163. netgen/include/symbolicintegrator.hpp +0 -849
  164. netgen/include/symmetricmatrix.hpp +0 -144
  165. netgen/include/tangentialfacetfe.hpp +0 -224
  166. netgen/include/tangentialfacetfespace.hpp +0 -106
  167. netgen/include/tensor.hpp +0 -522
  168. netgen/include/tensorcoefficient.hpp +0 -446
  169. netgen/include/tensorproductintegrator.hpp +0 -113
  170. netgen/include/thcurlfe.hpp +0 -128
  171. netgen/include/thcurlfe_impl.hpp +0 -380
  172. netgen/include/thdivfe.hpp +0 -80
  173. netgen/include/thdivfe_impl.hpp +0 -426
  174. netgen/include/tpdiffop.hpp +0 -461
  175. netgen/include/tpfes.hpp +0 -133
  176. netgen/include/tpintrule.hpp +0 -224
  177. netgen/include/triangular.hpp +0 -465
  178. netgen/include/tscalarfe.hpp +0 -245
  179. netgen/include/tscalarfe_impl.hpp +0 -1029
  180. netgen/include/umfpackinverse.hpp +0 -148
  181. netgen/include/vector.hpp +0 -1219
  182. netgen/include/voxelcoefficientfunction.hpp +0 -41
  183. netgen/include/vtkoutput.hpp +0 -198
  184. netgen/include/vvector.hpp +0 -208
  185. netgen/include/webgui.hpp +0 -92
  186. netgen/libngbla.dylib +0 -0
  187. netgen/libngcomp.dylib +0 -0
  188. netgen/libngfem.dylib +0 -0
  189. netgen/libngla.dylib +0 -0
  190. netgen/libngsolve.dylib +0 -0
  191. netgen/libngstd.dylib +0 -0
  192. ngsolve/__init__.pyi +0 -231
  193. ngsolve/bla.pyi +0 -1139
  194. ngsolve/bvp.pyi +0 -32
  195. ngsolve/cmake/NGSolveConfig.cmake +0 -102
  196. ngsolve/cmake/ngsolve-targets-release.cmake +0 -69
  197. ngsolve/cmake/ngsolve-targets.cmake +0 -163
  198. ngsolve/comp/__init__.pyi +0 -5382
  199. ngsolve/comp/pml.pyi +0 -89
  200. ngsolve/config/__init__.py +0 -1
  201. ngsolve/config/__init__.pyi +0 -43
  202. ngsolve/config/__main__.py +0 -4
  203. ngsolve/config/config.py +0 -60
  204. ngsolve/config/config.pyi +0 -45
  205. ngsolve/demos/TensorProduct/__init__.py +0 -0
  206. ngsolve/demos/TensorProduct/tp_dg_1d_1d.py +0 -80
  207. ngsolve/demos/TensorProduct/tp_dg_1d_2d.py +0 -73
  208. ngsolve/demos/TensorProduct/tp_dg_2d_1d.py +0 -72
  209. ngsolve/demos/TensorProduct/tp_dg_2d_2d.py +0 -66
  210. ngsolve/demos/__init__.py +0 -0
  211. ngsolve/demos/howto/__init__.py +0 -0
  212. ngsolve/demos/howto/hhj.py +0 -44
  213. ngsolve/demos/howto/hybrid_dg.py +0 -53
  214. ngsolve/demos/howto/mixed.py +0 -30
  215. ngsolve/demos/howto/nonlin.py +0 -29
  216. ngsolve/demos/howto/pickling.py +0 -26
  217. ngsolve/demos/howto/pml.py +0 -31
  218. ngsolve/demos/howto/taskmanager.py +0 -20
  219. ngsolve/demos/howto/tdnns.py +0 -47
  220. ngsolve/demos/howto/timeDG-skeleton.py +0 -45
  221. ngsolve/demos/howto/timeDG.py +0 -38
  222. ngsolve/demos/howto/timeDGlap.py +0 -42
  223. ngsolve/demos/howto/timeDGwave.py +0 -61
  224. ngsolve/demos/intro/__init__.py +0 -0
  225. ngsolve/demos/intro/adaptive.py +0 -123
  226. ngsolve/demos/intro/cmagnet.py +0 -62
  227. ngsolve/demos/intro/elasticity.py +0 -76
  228. ngsolve/demos/intro/navierstokes.py +0 -74
  229. ngsolve/demos/intro/poisson.ipynb +0 -170
  230. ngsolve/demos/intro/poisson.py +0 -41
  231. ngsolve/demos/mpi/__init__.py +0 -0
  232. ngsolve/demos/mpi/mpi_cmagnet.py +0 -87
  233. ngsolve/demos/mpi/mpi_navierstokes.py +0 -117
  234. ngsolve/demos/mpi/mpi_poisson.py +0 -89
  235. ngsolve/demos/mpi/mpi_timeDG.py +0 -82
  236. ngsolve/directsolvers.pyi +0 -18
  237. ngsolve/eigenvalues.pyi +0 -30
  238. ngsolve/fem.pyi +0 -1707
  239. ngsolve/krylovspace.pyi +0 -309
  240. ngsolve/la.pyi +0 -1218
  241. ngsolve/ngslib.so +0 -0
  242. ngsolve/ngstd.pyi +0 -58
  243. ngsolve/nonlinearsolvers.pyi +0 -98
  244. ngsolve/preconditioners.pyi +0 -6
  245. ngsolve/solve.pyi +0 -108
  246. ngsolve/solvers.pyi +0 -14
  247. ngsolve/timestepping.pyi +0 -34
  248. ngsolve/timing.pyi +0 -57
  249. ngsolve/utils.pyi +0 -279
  250. ngsolve-6.2.2501.post21.dev1.data/data/Netgen.icns +0 -0
  251. ngsolve-6.2.2501.post21.dev1.data/data/bin/ngscxx +0 -17
  252. ngsolve-6.2.2501.post21.dev1.data/data/bin/ngsld +0 -13
  253. ngsolve-6.2.2501.post21.dev1.data/data/bin/ngsolve.tcl +0 -648
  254. ngsolve-6.2.2501.post21.dev1.data/data/bin/ngspy +0 -2
  255. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/beam.geo +0 -17
  256. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/beam.vol +0 -240
  257. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/chip.in2d +0 -41
  258. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/chip.vol +0 -614
  259. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coil.geo +0 -12
  260. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coil.vol +0 -2560
  261. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coilshield.geo +0 -24
  262. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coilshield.vol +0 -3179
  263. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/cube.geo +0 -19
  264. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/cube.vol +0 -1832
  265. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -50
  266. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d11_chip_nitsche.pde +0 -40
  267. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d1_square.pde +0 -43
  268. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d2_chip.pde +0 -35
  269. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d3_helmholtz.pde +0 -22
  270. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d4_cube.pde +0 -46
  271. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d5_beam.pde +0 -74
  272. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d6_shaft.pde +0 -73
  273. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d7_coil.pde +0 -50
  274. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d8_coilshield.pde +0 -49
  275. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d9_hybridDG.pde +0 -72
  276. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/doubleglazing.in2d +0 -27
  277. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/doubleglazing.vol +0 -737
  278. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
  279. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/shaft.geo +0 -73
  280. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/shaft.vol +0 -4291
  281. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/square.in2d +0 -17
  282. ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/square.vol +0 -149
  283. ngsolve-6.2.2501.post21.dev1.dist-info/RECORD +0 -304
  284. {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post37.dev1.dist-info}/LICENSE +0 -0
  285. {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post37.dev1.dist-info}/WHEEL +0 -0
  286. {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post37.dev1.dist-info}/top_level.txt +0 -0
@@ -1,1146 +0,0 @@
1
- #ifndef FILE_HCURLLOFE
2
- #define FILE_HCURLLOFE
3
-
4
- /*********************************************************************/
5
- /* File: hcurllofe.hpp */
6
- /* Author: Joachim Schoeberl */
7
- /* Date: 16. Apr. 2000 */
8
- /*********************************************************************/
9
-
10
- #include "h1lofe.hpp"
11
- #include "thcurlfe.hpp"
12
-
13
- namespace ngfem
14
- {
15
-
16
-
17
- template <ELEMENT_TYPE ET>
18
- class HCurlDummyFE : public T_HCurlFiniteElementFO<HCurlDummyFE<ET>,ET,0,0>
19
- {
20
- public:
21
- template<typename Tx, typename TFA>
22
- static void T_CalcShape (TIP<ET_trait<ET>::DIM,Tx> ip, TFA & shape)
23
- { ; }
24
- };
25
-
26
-
27
-
28
-
29
- #ifdef FILE_HCURLFE_CPP
30
- #define HCURLFE_EXTERN
31
- #else
32
- #define HCURLFE_EXTERN extern
33
- #endif
34
-
35
- HCURLFE_EXTERN template class HCurlDummyFE<ET_POINT>;
36
- HCURLFE_EXTERN template class HCurlDummyFE<ET_SEGM>;
37
- HCURLFE_EXTERN template class HCurlDummyFE<ET_TRIG>;
38
- HCURLFE_EXTERN template class HCurlDummyFE<ET_QUAD>;
39
-
40
- HCURLFE_EXTERN template class HCurlDummyFE<ET_TET>;
41
- HCURLFE_EXTERN template class HCurlDummyFE<ET_PRISM>;
42
- HCURLFE_EXTERN template class HCurlDummyFE<ET_PYRAMID>;
43
- HCURLFE_EXTERN template class HCurlDummyFE<ET_HEXAMID>;
44
- HCURLFE_EXTERN template class HCurlDummyFE<ET_HEX>;
45
-
46
-
47
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_POINT>,ET_POINT,0,0>;
48
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_SEGM>,ET_SEGM,0,0>;
49
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_TRIG>,ET_TRIG,0,0>;
50
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_QUAD>,ET_QUAD,0,0>;
51
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_TET>,ET_TET,0,0>;
52
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_PRISM>,ET_PRISM,0,0>;
53
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_PYRAMID>,ET_PYRAMID,0,0>;
54
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_HEXAMID>,ET_HEXAMID,0,0>;
55
- HCURLFE_EXTERN template class T_HCurlFiniteElementFO<HCurlDummyFE<ET_HEX>,ET_HEX,0,0>;
56
-
57
-
58
- /* **************************** Segm Elements *************** */
59
-
60
-
61
- ///
62
- class FE_NedelecSegm1 : public HCurlFiniteElement<1>
63
- {
64
- public:
65
-
66
- enum { NDOF = 1 };
67
-
68
- public:
69
- ///
70
- FE_NedelecSegm1();
71
- ///
72
- // virtual ~FE_NedelecSegm1();
73
- virtual ELEMENT_TYPE ElementType() const override { return ET_SEGM; }
74
- ///
75
- virtual void CalcShape (const IntegrationPoint & ip,
76
- BareSliceMatrix<> shape) const override;
77
- };
78
-
79
-
80
-
81
- ///
82
- class FE_NedelecSegm2 : public HCurlFiniteElement<1>
83
- {
84
- public:
85
-
86
- enum { NDOF = 2 };
87
-
88
- ///
89
- FE_NedelecSegm2();
90
- ///
91
- // virtual ~FE_NedelecSegm2();
92
- virtual ELEMENT_TYPE ElementType() const override { return ET_SEGM; }
93
-
94
- virtual void CalcShape (const IntegrationPoint & ip,
95
- BareSliceMatrix<> shape) const override;
96
- };
97
-
98
-
99
-
100
- ///
101
- class FE_NedelecSegm3 : public HCurlFiniteElement<1>
102
- {
103
- ///
104
- // static Array<IPData> ipdata;
105
- // bool ipdatadestructed;
106
-
107
- public:
108
- ///
109
- FE_NedelecSegm3();
110
- ///
111
- // virtual ~FE_NedelecSegm3();
112
- virtual ELEMENT_TYPE ElementType() const override { return ET_SEGM; }
113
-
114
- virtual void CalcShape (const IntegrationPoint & ip,
115
- BareSliceMatrix<> shape) const override;
116
- };
117
-
118
-
119
-
120
-
121
-
122
-
123
- /* *********************** Quad elements ******************* */
124
-
125
- class FE_NedelecQuad1 : public T_HCurlFiniteElementFO<FE_NedelecQuad1,ET_QUAD,4,1>
126
- {
127
- public:
128
- template<typename Tx, typename TFA>
129
- static void T_CalcShape (TIP<2,Tx> ip, TFA & shape)
130
- {
131
- // Tx x = hx[0], y = hx[1];
132
- Tx x = ip.x, y = ip.y;
133
-
134
- Tx lami[4] = {(1-x)*(1-y),x*(1-y),x*y,(1-x)*y};
135
- Tx sigma[4] = {(1-x)+(1-y),x+(1-y),x+y,(1-x)+y};
136
-
137
- const EDGE * edges = ElementTopology::GetEdges (ET_QUAD);
138
- for (int i = 0; i < 4; i++)
139
- {
140
- int es = edges[i][0], ee = edges[i][1];
141
-
142
- Tx xi = sigma[ee]-sigma[es];
143
- Tx lam_e = lami[ee]+lami[es];
144
-
145
- shape[i] = uDv (0.5 * lam_e, xi);
146
- }
147
- }
148
- };
149
-
150
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_QUAD,FE_NedelecQuad1>;
151
-
152
- /*
153
- /// Gradients of Q1
154
- class FE_NedelecQuad1 : public HCurlFiniteElement<2>
155
- {
156
- public:
157
- enum { NDOF = 4 };
158
-
159
- protected:
160
- ///
161
- // static Array<IPData> ipdata;
162
- // bool ipdatadestructed;
163
- public:
164
- ///
165
- FE_NedelecQuad1();
166
- ///
167
- virtual ~FE_NedelecQuad1();
168
-
169
- ///
170
- virtual void CalcShape (const IntegrationPoint & ip,
171
- FlatMatrixFixWidth<2> shape) const;
172
-
173
- };
174
- */
175
-
176
-
177
- /*
178
- template <int ORDER, int ZORDER>
179
- class FE_TNedelecQuadTraits
180
- {
181
- public:
182
- enum { NDOF = ORDER * (ZORDER+1) + (ORDER+1) * ZORDER };
183
- enum { NEDGEDOF = 2 * (ORDER + ZORDER) - 4 };
184
- };
185
- */
186
-
187
- template <int ORDER, int ZORDER>
188
- class FE_TNedelecQuad : public HCurlFiniteElement<2>
189
- {
190
- public:
191
- enum { NDOF = ORDER * (ZORDER+1) + (ORDER+1) * ZORDER };
192
- enum { NEDGEDOF = 2 * (ORDER + ZORDER) - 4 };
193
-
194
- protected:
195
- ///
196
- // static Array<IPData> ipdata;
197
- // bool ipdatadestructed;
198
- ///
199
- // static Mat<FE_TNedelecQuad<ORDER,ZORDER>::NDOF> trans;
200
-
201
- // static Mat<FE_TNedelecQuadTraits<ORDER,ZORDER>::NDOF> trans;
202
- // static Mat<FE_TNedelecQuadTraits<ORDER,ZORDER>::NEDGEDOF> trans2;
203
-
204
- static Matrix<> trans;
205
- static Matrix<> trans2;
206
-
207
- FE_NedelecQuad1 quad1;
208
-
209
- public:
210
- enum { MAXORDER = (ORDER > ZORDER) ? ORDER : ZORDER };
211
-
212
- ///
213
- FE_TNedelecQuad();
214
- ///
215
- virtual ~FE_TNedelecQuad();
216
- virtual ELEMENT_TYPE ElementType() const override { return ET_QUAD; }
217
-
218
-
219
- ///
220
- virtual void CalcShape (const IntegrationPoint & ip,
221
- BareSliceMatrix<> shape) const override;
222
- ///
223
- virtual void CalcShape1 (const IntegrationPoint & ip,
224
- FlatMatrixFixWidth<2> shape) const override;
225
- ///
226
- virtual void CalcShape2 (const IntegrationPoint & ip,
227
- FlatMatrixFixWidth<2> shape) const override;
228
- ///
229
- void Orthogonalize();
230
- };
231
-
232
-
233
-
234
-
235
- /* ******************** triangular elements *********************** */
236
-
237
- class FE_NedelecTrig1 : public T_HCurlFiniteElementFO<FE_NedelecTrig1,ET_TRIG,3,1>
238
- {
239
- public:
240
- template<typename Tx, typename TFA>
241
- static void T_CalcShape (TIP<2,Tx> ip, TFA & shape)
242
- {
243
- // Tx x = hx[0], y = hx[1];
244
- Tx x = ip.x, y = ip.y;
245
- Tx lami[3] = { x, y, 1-x-y };
246
-
247
- const EDGE * edges = ElementTopology::GetEdges (ET_TRIG);
248
- for (int i = 0; i < 3; i++)
249
- shape[i] = uDv_minus_vDu (lami[edges[i][0]], lami[edges[i][1]]);
250
- }
251
- };
252
-
253
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_TRIG,FE_NedelecTrig1>;
254
-
255
- class FE_NedelecTrig2 : public T_HCurlFiniteElementFO<FE_NedelecTrig2,ET_TRIG,6,1>
256
- {
257
- public:
258
- template<typename Tx, typename TFA>
259
- static void T_CalcShape (TIP<2,Tx> ip, TFA & shape)
260
- {
261
- // Tx x = hx[0], y = hx[1];
262
- Tx x = ip.x, y = ip.y;
263
- Tx lami[3] = { x, y, 1-x-y };
264
-
265
- const EDGE * edges = ElementTopology::GetEdges (ET_TRIG);
266
- for (int i = 0; i < 3; i++)
267
- {
268
- shape[i] = uDv_minus_vDu (lami[edges[i][0]], lami[edges[i][1]]);
269
- shape[i+3] = Du (lami[edges[i][0]]*lami[edges[i][1]]);
270
- }
271
- }
272
- };
273
-
274
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_TRIG,FE_NedelecTrig2>;
275
-
276
- class FE_NedelecTrig3 : public T_HCurlFiniteElementFO<FE_NedelecTrig3,ET_TRIG,12,2>
277
- {
278
- public:
279
- template<typename Tx, typename TFA>
280
- static void T_CalcShape (TIP<2,Tx> ip, TFA & shape)
281
- {
282
- // Tx x = hx[0], y = hx[1];
283
- Tx x = ip.x, y = ip.y;
284
- Tx lami[3] = { x, y, 1-x-y };
285
-
286
- const EDGE * edges = ElementTopology::GetEdges (ET_TRIG);
287
- for (int i = 0; i < 3; i++)
288
- {
289
- Tx lam1 = lami[edges[i][0]];
290
- Tx lam2 = lami[edges[i][1]];
291
-
292
- shape[i] = uDv_minus_vDu (lam1, lam2);
293
- shape[i+3] = Du (lam1*lam2);
294
- shape[i+6] = Du (lam1*lam2*(lam1-lam2));
295
- }
296
-
297
- const FACE * faces = ElementTopology::GetFaces (ET_TRIG);
298
- for (int k = 0; k < 3; k++)
299
- {
300
- int k1 = (k+1)%3, k2 = (k+2)%3;
301
- shape[9+k] = uDv_minus_vDu (lami[faces[0][k]],
302
- lami[faces[0][k1]]*lami[faces[0][k2]]);
303
- }
304
-
305
- }
306
- };
307
-
308
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_TRIG,FE_NedelecTrig3>;
309
-
310
- /*
311
- /// Lowest order Nedelec
312
- class FE_NedelecTrig1 : public HCurlFiniteElement<2>
313
- {
314
- ///
315
- // static Array<IPData> ipdata;
316
- // bool ipdatadestructed;
317
-
318
- public:
319
-
320
- ///
321
- FE_NedelecTrig1();
322
- ///
323
- virtual ~FE_NedelecTrig1();
324
- ///
325
- virtual void CalcShape (const IntegrationPoint & ip,
326
- FlatMatrixFixWidth<2> shape) const;
327
- };
328
-
329
-
330
-
331
- /// Nedelec type 2, order 1, gradients of P2
332
- class FE_NedelecTrig2 : public HCurlFiniteElement<2>
333
- {
334
- public:
335
- enum { NDOF = 6 };
336
-
337
- private:
338
- ///
339
- // static Array<IPData> ipdata;
340
- // bool ipdatadestructed;
341
- ///
342
- static Mat<NDOF> trans;
343
-
344
- public:
345
- ///
346
- FE_NedelecTrig2();
347
- ///
348
- virtual ~FE_NedelecTrig2();
349
- ///
350
- virtual void CalcShape (const IntegrationPoint & ip,
351
- FlatMatrixFixWidth<2> shape) const;
352
-
353
- ///
354
- virtual void CalcShape1 (const IntegrationPoint & ip,
355
- FlatMatrixFixWidth<2> shape) const;
356
-
357
- ///
358
- void Orthogonalize();
359
- };
360
-
361
-
362
- /// Nedelec type 2, order 2, gradients of P3
363
- class FE_NedelecTrig3 : public HCurlFiniteElement<2>
364
- {
365
- public:
366
- enum { NDOF = 12 };
367
- enum { NEDGEDOF = 6 };
368
- ///
369
- // static Array<IPData> ipdata;
370
- // bool ipdatadestructed;
371
- ///
372
- static Mat<NDOF> trans;
373
- ///
374
- static Mat<NEDGEDOF> trans2;
375
- ///
376
- FE_NedelecTrig2 trig1;
377
- public:
378
- ///
379
- FE_NedelecTrig3();
380
- ///
381
- virtual ~FE_NedelecTrig3();
382
- ///
383
- virtual void CalcShape (const IntegrationPoint & ip,
384
- FlatMatrixFixWidth<2> shape) const;
385
-
386
- ///
387
- virtual void CalcShape1 (const IntegrationPoint & ip,
388
- FlatMatrixFixWidth<2> shape) const;
389
-
390
- ///
391
- virtual void CalcShape2 (const IntegrationPoint & ip,
392
- FlatMatrixFixWidth<2> shape) const;
393
-
394
- ///
395
- void Orthogonalize();
396
- };
397
- */
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
- /* *********************** Tetrahedral elements ********************** */
409
-
410
- class FE_NedelecTet1 : public T_HCurlFiniteElementFO<FE_NedelecTet1,ET_TET,6,1>
411
- {
412
- public:
413
- template<typename Tx, typename TFA>
414
- static void T_CalcShape (TIP<3,Tx> ip, TFA & shape)
415
- {
416
- // Tx x = hx[0], y = hx[1], z = hx[2];
417
- // Tx lami[4] = { x, y, z, 1-x-y-z };
418
- Tx lami[4] = { ip.x, ip.y, ip.z, 1-ip.x-ip.y-ip.z };
419
-
420
- const EDGE * edges = ElementTopology::GetEdges (ET_TET);
421
- for (int i = 0; i < 6; i++)
422
- shape[i] = uDv_minus_vDu (lami[edges[i][0]], lami[edges[i][1]]);
423
- }
424
- };
425
-
426
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_TET,FE_NedelecTet1>;
427
-
428
- class FE_NedelecTet2 : public T_HCurlFiniteElementFO<FE_NedelecTet2,ET_TET,12,1>
429
- {
430
- public:
431
- template<typename Tx, typename TFA>
432
- static void T_CalcShape (TIP<3,Tx> ip, TFA & shape)
433
- {
434
- // Tx x = hx[0], y = hx[1], z = hx[2];
435
- // Tx lami[4] = { x, y, z, 1-x-y-z };
436
- // Tx lami[4] = { x[0], x[1], x[2], 1-x[0]-x[1]-x[2] };
437
- Tx lami[4] = { ip.x, ip.y, ip.z, 1-ip.x-ip.y-ip.z };
438
-
439
- const EDGE * edges = ElementTopology::GetEdges (ET_TET);
440
- for (int i = 0; i < 6; i++)
441
- {
442
- shape[i] = uDv_minus_vDu (lami[edges[i][0]], lami[edges[i][1]]);
443
- shape[i+6] = Du (lami[edges[i][0]]*lami[edges[i][1]]);
444
- }
445
- }
446
- };
447
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_TET,FE_NedelecTet2>;
448
-
449
- class FE_NedelecTet3 : public T_HCurlFiniteElementFO<FE_NedelecTet3,ET_TET,30,2>
450
- {
451
- public:
452
- template<typename Tx, typename TFA>
453
- static void T_CalcShape (TIP<3,Tx> ip, TFA & shape)
454
- {
455
- // Tx lami[4] = { x[0], x[1], x[2], 1-x[0]-x[1]-x[2] };
456
- Tx lami[4] = { ip.x, ip.y, ip.z, 1-ip.x-ip.y-ip.z };
457
-
458
- const EDGE * edges = ElementTopology::GetEdges (ET_TET);
459
- for (int i = 0; i < 6; i++)
460
- {
461
- Tx lam1 = lami[edges[i][0]];
462
- Tx lam2 = lami[edges[i][1]];
463
- shape[i] = uDv_minus_vDu (lam1, lam2);
464
- shape[i+6] = Du (lam1*lam2);
465
- shape[i+12] = Du (lam1*lam2*(lam1-lam2));
466
- }
467
-
468
- const FACE * faces = ElementTopology::GetFaces (ET_TET);
469
- for (int i = 0; i < 4; i++)
470
- for (int k = 0; k < 3; k++)
471
- {
472
- int k1 = (k+1)%3, k2 = (k+2)%3;
473
- shape[18+3*i+k] = uDv_minus_vDu (lami[faces[i][k]],
474
- lami[faces[i][k1]]*lami[faces[i][k2]]);
475
- }
476
- }
477
- };
478
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_TET,FE_NedelecTet3>;
479
-
480
-
481
- /*
482
- class FE_NedelecTet1o : public HCurlFiniteElement<3>
483
- {
484
- public:
485
- enum { NDOF = 6 };
486
-
487
- private:
488
- ///
489
- // static Array<IPData> ipdata;
490
- // bool ipdatadestructed;
491
-
492
- public:
493
-
494
- ///
495
- FE_NedelecTet1o();
496
- ///
497
- virtual ~FE_NedelecTet1o();
498
- ///
499
- virtual void CalcShape (const IntegrationPoint & ip,
500
- FlatMatrixFixWidth<3> shape) const;
501
-
502
- virtual void CalcCurlShape (const IntegrationPoint & ip,
503
- FlatMatrixFixWidth<3> curlshape) const;
504
- };
505
-
506
-
507
- ///
508
- class FE_NedelecTet2o : public HCurlFiniteElement<3>
509
- {
510
- public:
511
-
512
- enum { NDOF = 12 };
513
-
514
- private:
515
- ///
516
- // static Array<IPData> ipdata;
517
- // bool ipdatadestructed;
518
- ///
519
- static Mat<NDOF> trans;
520
-
521
- public:
522
- ///
523
- FE_NedelecTet2o();
524
- ///
525
- virtual ~FE_NedelecTet2o();
526
- ///
527
- virtual void CalcShape (const IntegrationPoint & ip,
528
- FlatMatrixFixWidth<3> shape) const;
529
-
530
-
531
- ///
532
- virtual void CalcShape1 (const IntegrationPoint & ip,
533
- FlatMatrixFixWidth<3> shape) const;
534
-
535
- ///
536
- void Orthogonalize();
537
- };
538
-
539
-
540
- /// 2nd order Nedelec element of class II
541
- class FE_NedelecTet3 : public HCurlFiniteElement<3>
542
- {
543
- public:
544
- enum { NDOF = 30 };
545
- enum { NEDGEDOF = 12 };
546
- enum { NFACEDOF = 12 };
547
-
548
- protected:
549
- ///
550
- // static Array<IPData> ipdata;
551
- // bool ipdatadestructed;
552
- ///
553
- static Mat<NDOF> trans;
554
- ///
555
- static Mat<NEDGEDOF> trans2;
556
- ///
557
- static Mat<NFACEDOF> trans3;
558
-
559
- FE_NedelecTet1 tet1;
560
- public:
561
-
562
- ///
563
- FE_NedelecTet3();
564
- ///
565
- virtual ~FE_NedelecTet3();
566
-
567
-
568
- virtual void CalcShape (const IntegrationPoint & ip,
569
- FlatMatrixFixWidth<3> shape) const;
570
-
571
- virtual void CalcCurlShape (const IntegrationPoint & ip,
572
- FlatMatrixFixWidth<3> curlshape) const;
573
-
574
- ///
575
- virtual void CalcShape1 (const IntegrationPoint & ip,
576
- FlatMatrixFixWidth<3> shape) const;
577
-
578
- ///
579
- virtual void CalcShape2 (const IntegrationPoint & ip,
580
- FlatMatrixFixWidth<3> shape) const;
581
-
582
- ///
583
- virtual void CalcShape3 (const IntegrationPoint & ip,
584
- FlatMatrixFixWidth<3> shape) const;
585
-
586
- ///
587
- virtual void CalcCurlShape3 (const IntegrationPoint & ip,
588
- FlatMatrixFixWidth<3> shape) const;
589
-
590
- ///
591
- void Orthogonalize();
592
- };
593
- */
594
-
595
-
596
- /// 2nd order Nedelec element of class II, without gradient fields
597
- class FE_NedelecTet3NoGrad : public HCurlFiniteElement<3>
598
- {
599
- public:
600
- enum { NDOF = 18 };
601
- enum { NFACEDOF = 12 };
602
-
603
- protected:
604
- static Mat<NFACEDOF> trans3;
605
-
606
- FE_NedelecTet1 tet1;
607
- public:
608
- FE_NedelecTet3NoGrad();
609
- virtual ~FE_NedelecTet3NoGrad();
610
-
611
- virtual ELEMENT_TYPE ElementType() const override { return ET_TET; }
612
- virtual void CalcShape (const IntegrationPoint & ip,
613
- BareSliceMatrix<> shape) const override;
614
-
615
- using HCurlFiniteElement<3>::CalcCurlShape;
616
- virtual void CalcCurlShape (const IntegrationPoint & ip,
617
- BareSliceMatrix<> curlshape) const override;
618
-
619
- virtual void CalcShape3 (const IntegrationPoint & ip,
620
- FlatMatrixFixWidth<3> shape) const override;
621
-
622
- virtual void CalcCurlShape3 (const IntegrationPoint & ip,
623
- FlatMatrixFixWidth<3> shape) const;
624
-
625
- void Orthogonalize();
626
- };
627
-
628
-
629
- /* *********************** Hex elements ************************ */
630
-
631
-
632
-
633
- ///
634
- class FE_NedelecHex1 : public HCurlFiniteElement<3>
635
- {
636
- ///
637
- // static Array<IPData> ipdata;
638
- // bool ipdatadestructed;
639
-
640
- public:
641
- ///
642
- FE_NedelecHex1();
643
- ///
644
- virtual ~FE_NedelecHex1();
645
- virtual ELEMENT_TYPE ElementType() const override { return ET_HEX; }
646
- ///
647
- virtual void CalcShape (const IntegrationPoint & ip,
648
- BareSliceMatrix<> shape) const override;
649
- };
650
-
651
-
652
- /* *********************** Prism elements ********************** */
653
-
654
- class FE_NedelecPrism1 : public T_HCurlFiniteElementFO<FE_NedelecPrism1,ET_PRISM,9,1>
655
- {
656
- public:
657
- template<typename Tx, typename TFA>
658
- static void T_CalcShape (TIP<3,Tx> ip, TFA & shape)
659
- {
660
- // Tx x = hx[0], y = hx[1], z = hx[2];
661
- Tx x = ip.x, y = ip.y, z = ip.z;
662
-
663
- Tx lami[6] = { x, y, 1-x-y, x, y, 1-x-y };
664
- Tx muz[6] = { 1-z, 1-z, 1-z, z, z, z };
665
-
666
- const EDGE * edges = ElementTopology::GetEdges (ET_PRISM);
667
-
668
- // horizontal edge shapes
669
- for (int i = 0; i < 6; i++)
670
- {
671
- int es = edges[i][0], ee = edges[i][1];
672
- shape[i] = wuDv_minus_wvDu (lami[es], lami[ee], muz[ee]);
673
- }
674
-
675
- //Vertical Edge Shapes
676
- for (int i = 6; i < 9; i++)
677
- {
678
- int es = edges[i][0], ee = edges[i][1];
679
- shape[i] = wuDv_minus_wvDu (muz[es], muz[ee], lami[ee]);
680
- }
681
- }
682
- };
683
-
684
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_PRISM,FE_NedelecPrism1>;
685
-
686
- /*
687
- ///
688
- class FE_NedelecPrism1 : public HCurlFiniteElement<3>
689
- {
690
- ///
691
- // static Array<IPData> ipdata;
692
- // bool ipdatadestructed;
693
-
694
- public:
695
-
696
- ///
697
- FE_NedelecPrism1();
698
- ///
699
- virtual ~FE_NedelecPrism1();
700
-
701
- ///
702
- virtual void CalcShape (const IntegrationPoint & ip,
703
- FlatMatrixFixWidth<3> shape) const;
704
- };
705
- */
706
-
707
- /// \f$ \nabla Q (2,ZORDER) \f$
708
- template <int ZORDER>
709
- class FE_TNedelecPrism2 : public HCurlFiniteElement<3>
710
- {
711
- ///
712
- // static Array<IPData> ipdata;
713
- // bool ipdatadestructed;
714
- ///
715
- static Matrix<> trans;
716
- ///
717
- static Matrix<> trans2;
718
- ///
719
- static Matrix<> trans3;
720
-
721
- FE_NedelecPrism1 prism1;
722
-
723
- public:
724
- enum { NDOF = 6 * (ZORDER+1) + 6 * ZORDER };
725
- enum { NEDGEDOF = 6 + 3 * (ZORDER-1) };
726
- enum { NFACEDOF = 9 * ZORDER - 6} ;
727
- enum { MAXORDER = (2 > ZORDER) ? 2 : ZORDER };
728
-
729
- ///
730
- FE_TNedelecPrism2();
731
- ///
732
- virtual ~FE_TNedelecPrism2();
733
- virtual ELEMENT_TYPE ElementType() const override { return ET_PRISM; }
734
- ///
735
- virtual void CalcShape (const IntegrationPoint & ip,
736
- BareSliceMatrix<> shape) const override;
737
-
738
- ///
739
- virtual void CalcShape1 (const IntegrationPoint & ip,
740
- FlatMatrixFixWidth<3> shape) const override;
741
-
742
- ///
743
- virtual void CalcShape2 (const IntegrationPoint & ip,
744
- FlatMatrixFixWidth<3> shape) const override;
745
-
746
- ///
747
- virtual void CalcShape3 (const IntegrationPoint & ip,
748
- FlatMatrixFixWidth<3> shape) const override;
749
-
750
- ///
751
- void Orthogonalize();
752
-
753
- };
754
-
755
-
756
-
757
- /// potential space for Nedelec IIb
758
- class FE_Trig3Pot : public ScalarFiniteElement<2>
759
- {
760
- ///
761
- // static IPDataArray ipdata;
762
- public:
763
- ///
764
- FE_Trig3Pot();
765
- ///
766
- virtual ~FE_Trig3Pot();
767
- virtual ELEMENT_TYPE ElementType() const override { return ET_TRIG; }
768
-
769
- ///
770
- using ScalarFiniteElement<2>::CalcShape;
771
- virtual void CalcShape (const IntegrationPoint & ip,
772
- BareSliceVector<> shape) const override;
773
-
774
- virtual void CalcDShape (const IntegrationPoint & ip,
775
- BareSliceMatrix<> dshape) const override;
776
- };
777
-
778
-
779
-
780
-
781
- /// \f$ \nabla Q (3,ZORDER) \f$
782
- template <int ZORDER>
783
- class FE_TNedelecPrism3 : public HCurlFiniteElement<3>
784
- {
785
- ///
786
- // static Array<IPData> ipdata;
787
- // bool ipdatadestructed;
788
- ///
789
- static Matrix<> trans;
790
- ///
791
- static Matrix<> trans2;
792
- ///
793
- static Matrix<> trans_quad;
794
- ///
795
- static Matrix<> trans_trig;
796
-
797
- FE_NedelecPrism1 prism1;
798
- FE_NedelecTrig3 trig3;
799
- FE_Trig2 h1trig2;
800
- FE_Trig3Pot h1trig3;
801
- FE_TSegmL2<ZORDER> segm;
802
- public:
803
- enum { NDOF = 12 * (ZORDER+1) + 10 * ZORDER };
804
- enum { NEDGEDOF = 12 + 3 * (ZORDER-1) };
805
- enum { NQUADFACEDOF = 3 * (5*ZORDER-3) };
806
- enum { NTRIGFACEDOF = 6 };
807
- enum { MAXORDER = (3 > ZORDER) ? 3 : ZORDER };
808
- enum { NINNERDOF = 3 * (ZORDER-1) + ZORDER };
809
-
810
- ///
811
- FE_TNedelecPrism3();
812
- ///
813
- virtual ~FE_TNedelecPrism3();
814
- ///
815
- virtual ELEMENT_TYPE ElementType() const override { return ET_PRISM; }
816
- virtual void CalcShape (const IntegrationPoint & ip,
817
- BareSliceMatrix<> shape) const override;
818
-
819
- ///
820
- virtual void CalcShape1 (const IntegrationPoint & ip,
821
- FlatMatrixFixWidth<3> shape) const override;
822
-
823
- ///
824
- virtual void CalcShape2 (const IntegrationPoint & ip,
825
- FlatMatrixFixWidth<3> shape) const override;
826
-
827
- /// quad face dofs
828
- virtual void CalcShape3 (const IntegrationPoint & ip,
829
- FlatMatrixFixWidth<3> shape) const override;
830
-
831
- /// trig face dofs
832
- virtual void CalcShape4 (const IntegrationPoint & ip,
833
- FlatMatrixFixWidth<3> shape) const override;
834
-
835
- ///
836
- virtual void CalcInner (const IntegrationPoint & ip,
837
- FlatMatrixFixWidth<3> shape) const;
838
-
839
- ///
840
- virtual void GetInternalDofs (Array<int> & idofs) const;
841
-
842
- ///
843
- void Orthogonalize();
844
- };
845
-
846
-
847
-
848
-
849
-
850
- /// \f$ \nabla Q (3,ZORDER) \f$
851
- template <int ZORDER>
852
- class FE_TNedelecPrism3NoGrad : public HCurlFiniteElement<3>
853
- {
854
- ///
855
- // static Array<IPData> ipdata;
856
- // bool ipdatadestructed;
857
- ///
858
- static Matrix<> trans_quad;
859
- ///
860
- static Matrix<> trans_trig;
861
-
862
- FE_NedelecPrism1 prism1;
863
- FE_NedelecTrig3 trig3;
864
- FE_Trig2 h1trig2;
865
- FE_Trig3Pot h1trig3;
866
- FE_TSegmL2<ZORDER> segm;
867
- public:
868
- // enum { NDOF = 12 * (ZORDER+1) + 10 * ZORDER };
869
- // enum { NEDGEDOF = 12 + 3 * (ZORDER-1) };
870
- // 12 z + 12 + 10 z - 12 - 3z + 3 = 19 z + 3
871
- enum { NDOF = 19 * ZORDER + 3 };
872
- enum { NQUADFACEDOF = 3 * (5*ZORDER-3) };
873
- enum { NTRIGFACEDOF = 6 };
874
- enum { MAXORDER = (3 > ZORDER) ? 3 : ZORDER };
875
- // enum { NINNERDOF = 3 * (ZORDER-1) + ZORDER };
876
- enum { NINNERDOF = 3 * (ZORDER-1) + 1 };
877
-
878
- ///
879
- FE_TNedelecPrism3NoGrad();
880
- ///
881
- virtual ~FE_TNedelecPrism3NoGrad();
882
- virtual ELEMENT_TYPE ElementType() const override { return ET_PRISM; }
883
-
884
- ///
885
- virtual void CalcShape (const IntegrationPoint & ip,
886
- BareSliceMatrix<> shape) const override;
887
-
888
- ///
889
- virtual void CalcShape1 (const IntegrationPoint & ip,
890
- FlatMatrixFixWidth<3> shape) const override;
891
-
892
- ///
893
- virtual void CalcShape2 (const IntegrationPoint & ip,
894
- FlatMatrixFixWidth<3> shape) const override;
895
-
896
- /// quad face dofs
897
- virtual void CalcShape3 (const IntegrationPoint & ip,
898
- FlatMatrixFixWidth<3> shape) const override;
899
-
900
- /// trig face dofs + inner dofs
901
- virtual void CalcShape4 (const IntegrationPoint & ip,
902
- FlatMatrixFixWidth<3> shape) const override;
903
-
904
- ///
905
- virtual void CalcInner (const IntegrationPoint & ip,
906
- FlatMatrixFixWidth<3> shape) const;
907
-
908
- ///
909
- virtual void GetInternalDofs (Array<int> & idofs) const;
910
-
911
- ///
912
- void Orthogonalize();
913
- };
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
- ///
929
- class FE_NedelecPyramid1 : public T_HCurlFiniteElementFO<FE_NedelecPyramid1,ET_PYRAMID,8,1>
930
- {
931
- public:
932
- template<typename Tx, typename TFA>
933
- static void T_CalcShape (TIP<3,Tx> ip, TFA & shape)
934
- {
935
- // Tx x = hx[0], y = hx[1], z = hx[2];
936
- Tx x = ip.x, y = ip.y, z = ip.z;
937
-
938
- z.Value() = z.Value()*(1-1e-12);
939
-
940
- Tx xt = x/(1-z);
941
- Tx yt = y/(1-z);
942
- Tx sigma[5] = {(1-xt)+(1-yt)+(1-z),xt+(1-yt)+(1-z), xt + yt + (1-z),
943
- (1-xt)+yt+(1-z),z};
944
-
945
- Tx lami[5] = {(1-xt)*(1-yt)*(1-z),xt*(1-yt)*(1-z), xt * yt * (1-z),
946
- (1-xt)*yt*(1-z),z};
947
-
948
- Tx lambda[5] = {(1-xt)*(1-yt),xt*(1-yt), xt * yt,
949
- (1-xt)*yt,z};
950
-
951
- // horizontal edges incl. Nedelec 0
952
- for (int i = 0; i < 4; i++)
953
- {
954
- IVec<2> e = ET_trait<ET_PYRAMID>::GetEdge(i);
955
- Tx xi = sigma[e[1]] - sigma[e[0]];
956
- Tx lam_t = lambda[e[1]] + lambda[e[0]];
957
- shape[i] = uDv (0.5 * (1-z)*(1-z)*lam_t, xi);
958
- }
959
-
960
- // vertical edges incl. Nedelec 0
961
- for(int i = 4; i < 8; i++)
962
- {
963
- IVec<2> e = ET_trait<ET_PYRAMID>::GetEdge (i);
964
- shape[i] = uDv_minus_vDu (lami[e[0]], lami[e[1]]);
965
- }
966
- }
967
- };
968
-
969
- HCURLFE_EXTERN template class T_HCurlHighOrderFiniteElement<ET_PYRAMID,FE_NedelecPyramid1>;
970
-
971
-
972
- ///
973
- class FE_NedelecPyramid2 : public HCurlFiniteElement<3>
974
- {
975
- public:
976
- enum { NDOF = 20 };
977
- enum { NEDGEDOF = 8 };
978
-
979
- private:
980
- ///
981
- // static Array<IPData> ipdata;
982
- // bool ipdatadestructed;
983
- ///
984
- static Matrix<> trans;
985
- static Matrix<> trans2;
986
- static Matrix<> trans3;
987
-
988
- ///
989
- // static class FE_Quad1 quad1;
990
- // static class FE_Quad2 quad2;
991
- typedef ScalarFE<ET_QUAD,1> quad1;
992
- typedef FE_Quad2 quad2;
993
-
994
- FE_NedelecPyramid1 pyramid1;
995
- public:
996
- ///
997
- FE_NedelecPyramid2();
998
- ///
999
- virtual ~FE_NedelecPyramid2();
1000
- virtual ELEMENT_TYPE ElementType() const override { return ET_PYRAMID; }
1001
-
1002
- ///
1003
- virtual void CalcShape (const IntegrationPoint & ip,
1004
- BareSliceMatrix<> shape) const override;
1005
-
1006
- virtual void CalcShape1 (const IntegrationPoint & ip,
1007
- FlatMatrixFixWidth<3> shape) const override;
1008
-
1009
- virtual void CalcShape2 (const IntegrationPoint & ip,
1010
- FlatMatrixFixWidth<3> shape) const override;
1011
-
1012
-
1013
- ///
1014
- void Orthogonalize();
1015
-
1016
- };
1017
-
1018
-
1019
- /// quad of order 3
1020
- class FE_Quad3 : public ScalarFiniteElement<2>
1021
- {
1022
- // static IPDataArray ipdata;
1023
-
1024
- public:
1025
- FE_Quad3();
1026
- virtual ~FE_Quad3();
1027
- virtual ELEMENT_TYPE ElementType() const override { return ET_QUAD; }
1028
-
1029
- using ScalarFiniteElement<2>::CalcShape;
1030
- virtual void CalcShape (const IntegrationPoint & ip,
1031
- BareSliceVector<> shape) const override;
1032
- virtual void CalcDShape (const IntegrationPoint & ip,
1033
- BareSliceMatrix<> dshape) const override;
1034
- };
1035
-
1036
-
1037
- #ifdef VERY_OLD_NEDELECFE
1038
- ///
1039
- class FE_NedelecPyramid3 : public HCurlFiniteElement<3>
1040
- {
1041
- public:
1042
- enum { NDOF = 57 };
1043
- enum { NEDGEDOF = 16 };
1044
- enum { NFACEDOF = 24 };
1045
- enum { NINNERDOF = 9 };
1046
- private:
1047
- ///
1048
- // static Array<IPData> ipdata;
1049
- // bool ipdatadestructed;
1050
- ///
1051
- static Mat<NDOF> trans;
1052
- static Mat<NEDGEDOF> trans2;
1053
- static Mat<NFACEDOF> trans3;
1054
-
1055
- ///
1056
- // static class FE_Quad1 quad1;
1057
- // static class FE_Quad2 quad2;
1058
- typedef ScalarFE<ET_QUAD,1> quad1;
1059
- typedef FE_Quad2 quad2;
1060
-
1061
- FE_Quad3 quad3;
1062
- FE_NedelecPyramid1 pyramid1;
1063
- public:
1064
- ///
1065
- FE_NedelecPyramid3();
1066
- ///
1067
- virtual ~FE_NedelecPyramid3();
1068
-
1069
- virtual ELEMENT_TYPE ElementType() const override { return ET_PYRAMID; }
1070
-
1071
- ///
1072
- virtual void CalcShape (const IntegrationPoint & ip,
1073
- SliceMatrix<> shape) const;
1074
-
1075
- virtual void CalcShape1 (const IntegrationPoint & ip,
1076
- FlatMatrixFixWidth<3> shape) const;
1077
-
1078
- virtual void CalcShape2 (const IntegrationPoint & ip,
1079
- FlatMatrixFixWidth<3> shape) const;
1080
-
1081
- virtual void CalcShape3 (const IntegrationPoint & ip,
1082
- FlatMatrixFixWidth<3> shape) const;
1083
-
1084
- ///
1085
- virtual void GetInternalDofs (Array<int> & idofs) const;
1086
- ///
1087
- void Orthogonalize();
1088
- };
1089
- #endif
1090
-
1091
-
1092
-
1093
-
1094
-
1095
- /*
1096
- ///
1097
- class FE_NedelecPyramid3NoGrad : public HCurlFiniteElement<3>
1098
- {
1099
- public:
1100
- // enum { NDOF = 57 };
1101
- // enum { NEDGEDOF = 16 };
1102
- enum { NDOF = 41 };
1103
- enum { NFACEDOF = 24 };
1104
- enum { NINNERDOF = 9 };
1105
- private:
1106
- ///
1107
- static Array<IPData> ipdata;
1108
- ///
1109
- static Mat<NDOF> trans;
1110
- // static Mat<NEDGEDOF> trans2;
1111
- static Mat<NFACEDOF> trans3;
1112
-
1113
- ///
1114
- FE_Quad1 quad1;
1115
- FE_Quad2 quad2;
1116
- FE_Quad3 quad3;
1117
- FE_NedelecPyramid1 pyramid1;
1118
- public:
1119
- ///
1120
- FE_NedelecPyramid3();
1121
- ///
1122
- virtual ~FE_NedelecPyramid3();
1123
- ///
1124
- virtual void CalcShape (const IntegrationPoint & ip,
1125
- FlatMatrixFixWidth<3> shape) const;
1126
-
1127
- virtual void CalcShape1 (const IntegrationPoint & ip,
1128
- FlatMatrixFixWidth<3> shape) const;
1129
-
1130
- virtual void CalcShape2 (const IntegrationPoint & ip,
1131
- FlatMatrixFixWidth<3> shape) const;
1132
-
1133
- virtual void CalcShape3 (const IntegrationPoint & ip,
1134
- FlatMatrixFixWidth<3> shape) const;
1135
-
1136
- ///
1137
- virtual void GetInternalDofs (Array<int> & idofs) const;
1138
- ///
1139
- void Orthogonalize();
1140
- };
1141
- */
1142
-
1143
- }
1144
-
1145
-
1146
- #endif