ngsolve 6.2.2501.post21.dev1__cp313-cp313-macosx_10_15_universal2.whl → 6.2.2501.post34.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.
- ngsolve/webgui.py +1 -1
- {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post34.dev1.dist-info}/METADATA +2 -2
- ngsolve-6.2.2501.post34.dev1.dist-info/RECORD +25 -0
- netgen/include/arnoldi.hpp +0 -55
- netgen/include/bandmatrix.hpp +0 -334
- netgen/include/basematrix.hpp +0 -957
- netgen/include/basevector.hpp +0 -1268
- netgen/include/bdbequations.hpp +0 -2752
- netgen/include/bdbintegrator.hpp +0 -1659
- netgen/include/bessel.hpp +0 -1064
- netgen/include/bilinearform.hpp +0 -963
- netgen/include/bla.hpp +0 -29
- netgen/include/blockalloc.hpp +0 -95
- netgen/include/blockjacobi.hpp +0 -316
- netgen/include/bspline.hpp +0 -114
- netgen/include/calcinverse.hpp +0 -141
- netgen/include/cg.hpp +0 -368
- netgen/include/chebyshev.hpp +0 -44
- netgen/include/cholesky.hpp +0 -720
- netgen/include/clapack.h +0 -7254
- netgen/include/code_generation.hpp +0 -296
- netgen/include/coefficient.hpp +0 -2006
- netgen/include/coefficient_impl.hpp +0 -18
- netgen/include/coefficient_stdmath.hpp +0 -157
- netgen/include/commutingAMG.hpp +0 -106
- netgen/include/comp.hpp +0 -79
- netgen/include/compatibility.hpp +0 -41
- netgen/include/complex_wrapper.hpp +0 -73
- netgen/include/compressedfespace.hpp +0 -110
- netgen/include/contact.hpp +0 -231
- netgen/include/diagonalmatrix.hpp +0 -154
- netgen/include/differentialoperator.hpp +0 -276
- netgen/include/diffop.hpp +0 -1286
- netgen/include/diffop_impl.hpp +0 -326
- netgen/include/discontinuous.hpp +0 -84
- netgen/include/dump.hpp +0 -949
- netgen/include/eigen.hpp +0 -60
- netgen/include/eigensystem.hpp +0 -18
- netgen/include/elasticity_equations.hpp +0 -595
- netgen/include/elementbyelement.hpp +0 -195
- netgen/include/elementtopology.hpp +0 -1760
- netgen/include/elementtransformation.hpp +0 -339
- netgen/include/evalfunc.hpp +0 -405
- netgen/include/expr.hpp +0 -1655
- netgen/include/facetfe.hpp +0 -175
- netgen/include/facetfespace.hpp +0 -178
- netgen/include/facethofe.hpp +0 -111
- netgen/include/facetsurffespace.hpp +0 -112
- netgen/include/fe_interfaces.hpp +0 -32
- netgen/include/fem.hpp +0 -87
- netgen/include/fesconvert.hpp +0 -14
- netgen/include/fespace.hpp +0 -1445
- netgen/include/finiteelement.hpp +0 -286
- netgen/include/globalinterfacespace.hpp +0 -77
- netgen/include/globalspace.hpp +0 -115
- netgen/include/gridfunction.hpp +0 -525
- netgen/include/h1amg.hpp +0 -41
- netgen/include/h1hofe.hpp +0 -188
- netgen/include/h1hofe_impl.hpp +0 -1262
- netgen/include/h1hofefo.hpp +0 -148
- netgen/include/h1hofefo_impl.hpp +0 -185
- netgen/include/h1hofespace.hpp +0 -167
- netgen/include/h1lofe.hpp +0 -1237
- netgen/include/h1lumping.hpp +0 -35
- netgen/include/hcurl_equations.hpp +0 -1352
- netgen/include/hcurlcurlfe.hpp +0 -2221
- netgen/include/hcurlcurlfespace.hpp +0 -78
- netgen/include/hcurlfe.hpp +0 -259
- netgen/include/hcurlfe_utils.hpp +0 -107
- netgen/include/hcurlhdiv_dshape.hpp +0 -857
- netgen/include/hcurlhdivfes.hpp +0 -308
- netgen/include/hcurlhofe.hpp +0 -175
- netgen/include/hcurlhofe_impl.hpp +0 -1871
- netgen/include/hcurlhofespace.hpp +0 -193
- netgen/include/hcurllofe.hpp +0 -1146
- netgen/include/hdiv_equations.hpp +0 -865
- netgen/include/hdivdivfe.hpp +0 -2923
- netgen/include/hdivdivsurfacespace.hpp +0 -76
- netgen/include/hdivfe.hpp +0 -206
- netgen/include/hdivfe_utils.hpp +0 -716
- netgen/include/hdivfes.hpp +0 -75
- netgen/include/hdivhofe.hpp +0 -447
- netgen/include/hdivhofe_impl.hpp +0 -1107
- netgen/include/hdivhofefo.hpp +0 -229
- netgen/include/hdivhofespace.hpp +0 -175
- netgen/include/hdivhosurfacefespace.hpp +0 -106
- netgen/include/hdivlofe.hpp +0 -773
- netgen/include/hidden.hpp +0 -74
- netgen/include/householder.hpp +0 -181
- netgen/include/hypre_ams_precond.hpp +0 -123
- netgen/include/hypre_precond.hpp +0 -73
- netgen/include/integrator.hpp +0 -2024
- netgen/include/integratorcf.hpp +0 -253
- netgen/include/interpolate.hpp +0 -49
- netgen/include/intrule.hpp +0 -2541
- netgen/include/irspace.hpp +0 -49
- netgen/include/jacobi.hpp +0 -136
- netgen/include/l2hofe.hpp +0 -193
- netgen/include/l2hofe_impl.hpp +0 -564
- netgen/include/l2hofefo.hpp +0 -542
- netgen/include/l2hofespace.hpp +0 -344
- netgen/include/la.hpp +0 -38
- netgen/include/linearform.hpp +0 -266
- netgen/include/matrix.hpp +0 -2140
- netgen/include/memusage.hpp +0 -41
- netgen/include/meshaccess.hpp +0 -1358
- netgen/include/mgpre.hpp +0 -204
- netgen/include/mptools.hpp +0 -2145
- netgen/include/multigrid.hpp +0 -42
- netgen/include/multivector.hpp +0 -447
- netgen/include/mumpsinverse.hpp +0 -187
- netgen/include/mycomplex.hpp +0 -361
- netgen/include/ng_lapack.hpp +0 -1661
- netgen/include/ngblas.hpp +0 -1099
- netgen/include/ngs_defines.hpp +0 -30
- netgen/include/ngs_stdcpp_include.hpp +0 -106
- netgen/include/ngs_utils.hpp +0 -121
- netgen/include/ngsobject.hpp +0 -1019
- netgen/include/ngsstream.hpp +0 -113
- netgen/include/ngstd.hpp +0 -72
- netgen/include/nodalhofe.hpp +0 -96
- netgen/include/nodalhofe_impl.hpp +0 -141
- netgen/include/normalfacetfe.hpp +0 -223
- netgen/include/normalfacetfespace.hpp +0 -98
- netgen/include/normalfacetsurfacefespace.hpp +0 -84
- netgen/include/order.hpp +0 -251
- netgen/include/parallel_matrices.hpp +0 -222
- netgen/include/paralleldofs.hpp +0 -340
- netgen/include/parallelngs.hpp +0 -23
- netgen/include/parallelvector.hpp +0 -269
- netgen/include/pardisoinverse.hpp +0 -200
- netgen/include/periodic.hpp +0 -125
- netgen/include/plateaufespace.hpp +0 -25
- netgen/include/pml.hpp +0 -275
- netgen/include/pmltrafo.hpp +0 -631
- netgen/include/postproc.hpp +0 -142
- netgen/include/precomp.hpp +0 -60
- netgen/include/preconditioner.hpp +0 -602
- netgen/include/prolongation.hpp +0 -235
- netgen/include/python_comp.hpp +0 -107
- netgen/include/python_fem.hpp +0 -89
- netgen/include/python_linalg.hpp +0 -58
- netgen/include/python_ngstd.hpp +0 -385
- netgen/include/recursive_pol.hpp +0 -4844
- netgen/include/recursive_pol_tet.hpp +0 -395
- netgen/include/recursive_pol_trig.hpp +0 -492
- netgen/include/reorderedfespace.hpp +0 -81
- netgen/include/sample_sort.hpp +0 -105
- netgen/include/scalarfe.hpp +0 -335
- netgen/include/shapefunction_utils.hpp +0 -113
- netgen/include/simd_complex.hpp +0 -284
- netgen/include/smoother.hpp +0 -253
- netgen/include/solve.hpp +0 -89
- netgen/include/sparsecholesky.hpp +0 -313
- netgen/include/sparsematrix.hpp +0 -1038
- netgen/include/sparsematrix_dyn.hpp +0 -91
- netgen/include/sparsematrix_impl.hpp +0 -920
- netgen/include/special_matrix.hpp +0 -461
- netgen/include/specialelement.hpp +0 -125
- netgen/include/statushandler.hpp +0 -33
- netgen/include/stringops.hpp +0 -12
- netgen/include/superluinverse.hpp +0 -136
- netgen/include/symbolicintegrator.hpp +0 -849
- netgen/include/symmetricmatrix.hpp +0 -144
- netgen/include/tangentialfacetfe.hpp +0 -224
- netgen/include/tangentialfacetfespace.hpp +0 -106
- netgen/include/tensor.hpp +0 -522
- netgen/include/tensorcoefficient.hpp +0 -446
- netgen/include/tensorproductintegrator.hpp +0 -113
- netgen/include/thcurlfe.hpp +0 -128
- netgen/include/thcurlfe_impl.hpp +0 -380
- netgen/include/thdivfe.hpp +0 -80
- netgen/include/thdivfe_impl.hpp +0 -426
- netgen/include/tpdiffop.hpp +0 -461
- netgen/include/tpfes.hpp +0 -133
- netgen/include/tpintrule.hpp +0 -224
- netgen/include/triangular.hpp +0 -465
- netgen/include/tscalarfe.hpp +0 -245
- netgen/include/tscalarfe_impl.hpp +0 -1029
- netgen/include/umfpackinverse.hpp +0 -148
- netgen/include/vector.hpp +0 -1219
- netgen/include/voxelcoefficientfunction.hpp +0 -41
- netgen/include/vtkoutput.hpp +0 -198
- netgen/include/vvector.hpp +0 -208
- netgen/include/webgui.hpp +0 -92
- netgen/libngbla.dylib +0 -0
- netgen/libngcomp.dylib +0 -0
- netgen/libngfem.dylib +0 -0
- netgen/libngla.dylib +0 -0
- netgen/libngsolve.dylib +0 -0
- netgen/libngstd.dylib +0 -0
- ngsolve/__init__.pyi +0 -231
- ngsolve/bla.pyi +0 -1139
- ngsolve/bvp.pyi +0 -32
- ngsolve/cmake/NGSolveConfig.cmake +0 -102
- ngsolve/cmake/ngsolve-targets-release.cmake +0 -69
- ngsolve/cmake/ngsolve-targets.cmake +0 -163
- ngsolve/comp/__init__.pyi +0 -5382
- ngsolve/comp/pml.pyi +0 -89
- ngsolve/config/__init__.py +0 -1
- ngsolve/config/__init__.pyi +0 -43
- ngsolve/config/__main__.py +0 -4
- ngsolve/config/config.py +0 -60
- ngsolve/config/config.pyi +0 -45
- ngsolve/demos/TensorProduct/__init__.py +0 -0
- ngsolve/demos/TensorProduct/tp_dg_1d_1d.py +0 -80
- ngsolve/demos/TensorProduct/tp_dg_1d_2d.py +0 -73
- ngsolve/demos/TensorProduct/tp_dg_2d_1d.py +0 -72
- ngsolve/demos/TensorProduct/tp_dg_2d_2d.py +0 -66
- ngsolve/demos/__init__.py +0 -0
- ngsolve/demos/howto/__init__.py +0 -0
- ngsolve/demos/howto/hhj.py +0 -44
- ngsolve/demos/howto/hybrid_dg.py +0 -53
- ngsolve/demos/howto/mixed.py +0 -30
- ngsolve/demos/howto/nonlin.py +0 -29
- ngsolve/demos/howto/pickling.py +0 -26
- ngsolve/demos/howto/pml.py +0 -31
- ngsolve/demos/howto/taskmanager.py +0 -20
- ngsolve/demos/howto/tdnns.py +0 -47
- ngsolve/demos/howto/timeDG-skeleton.py +0 -45
- ngsolve/demos/howto/timeDG.py +0 -38
- ngsolve/demos/howto/timeDGlap.py +0 -42
- ngsolve/demos/howto/timeDGwave.py +0 -61
- ngsolve/demos/intro/__init__.py +0 -0
- ngsolve/demos/intro/adaptive.py +0 -123
- ngsolve/demos/intro/cmagnet.py +0 -62
- ngsolve/demos/intro/elasticity.py +0 -76
- ngsolve/demos/intro/navierstokes.py +0 -74
- ngsolve/demos/intro/poisson.ipynb +0 -170
- ngsolve/demos/intro/poisson.py +0 -41
- ngsolve/demos/mpi/__init__.py +0 -0
- ngsolve/demos/mpi/mpi_cmagnet.py +0 -87
- ngsolve/demos/mpi/mpi_navierstokes.py +0 -117
- ngsolve/demos/mpi/mpi_poisson.py +0 -89
- ngsolve/demos/mpi/mpi_timeDG.py +0 -82
- ngsolve/directsolvers.pyi +0 -18
- ngsolve/eigenvalues.pyi +0 -30
- ngsolve/fem.pyi +0 -1707
- ngsolve/krylovspace.pyi +0 -309
- ngsolve/la.pyi +0 -1218
- ngsolve/ngslib.so +0 -0
- ngsolve/ngstd.pyi +0 -58
- ngsolve/nonlinearsolvers.pyi +0 -98
- ngsolve/preconditioners.pyi +0 -6
- ngsolve/solve.pyi +0 -108
- ngsolve/solvers.pyi +0 -14
- ngsolve/timestepping.pyi +0 -34
- ngsolve/timing.pyi +0 -57
- ngsolve/utils.pyi +0 -279
- ngsolve-6.2.2501.post21.dev1.data/data/Netgen.icns +0 -0
- ngsolve-6.2.2501.post21.dev1.data/data/bin/ngscxx +0 -17
- ngsolve-6.2.2501.post21.dev1.data/data/bin/ngsld +0 -13
- ngsolve-6.2.2501.post21.dev1.data/data/bin/ngsolve.tcl +0 -648
- ngsolve-6.2.2501.post21.dev1.data/data/bin/ngspy +0 -2
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/beam.geo +0 -17
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/beam.vol +0 -240
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/chip.in2d +0 -41
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/chip.vol +0 -614
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coil.geo +0 -12
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coil.vol +0 -2560
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coilshield.geo +0 -24
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/coilshield.vol +0 -3179
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/cube.geo +0 -19
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/cube.vol +0 -1832
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -50
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d11_chip_nitsche.pde +0 -40
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d1_square.pde +0 -43
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d2_chip.pde +0 -35
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d3_helmholtz.pde +0 -22
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d4_cube.pde +0 -46
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d5_beam.pde +0 -74
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d6_shaft.pde +0 -73
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d7_coil.pde +0 -50
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d8_coilshield.pde +0 -49
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/d9_hybridDG.pde +0 -72
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/doubleglazing.in2d +0 -27
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/doubleglazing.vol +0 -737
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/shaft.geo +0 -73
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/shaft.vol +0 -4291
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/square.in2d +0 -17
- ngsolve-6.2.2501.post21.dev1.data/data/share/ngsolve/square.vol +0 -149
- ngsolve-6.2.2501.post21.dev1.dist-info/RECORD +0 -304
- {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post34.dev1.dist-info}/LICENSE +0 -0
- {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post34.dev1.dist-info}/WHEEL +0 -0
- {ngsolve-6.2.2501.post21.dev1.dist-info → ngsolve-6.2.2501.post34.dev1.dist-info}/top_level.txt +0 -0
netgen/include/l2hofe_impl.hpp
DELETED
|
@@ -1,564 +0,0 @@
|
|
|
1
|
-
#ifndef FILE_L2HOFE_IMPL
|
|
2
|
-
#define FILE_L2HOFE_IMPL
|
|
3
|
-
|
|
4
|
-
/*********************************************************************/
|
|
5
|
-
/* File: l2hofe.hpp */
|
|
6
|
-
/* Author: Start */
|
|
7
|
-
/* Date: 6. Feb. 2003 */
|
|
8
|
-
/*********************************************************************/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
#include "l2hofe.hpp"
|
|
12
|
-
|
|
13
|
-
namespace ngfem
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#ifndef __CUDA_ARCH__
|
|
18
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
19
|
-
typename L2HighOrderFE<ET,SHAPES,BASE>::TPRECOMP L2HighOrderFE<ET,SHAPES,BASE>::precomp;
|
|
20
|
-
|
|
21
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
22
|
-
typename L2HighOrderFE<ET,SHAPES,BASE>::TPRECOMP_TRACE L2HighOrderFE<ET,SHAPES,BASE>::precomp_trace(320);
|
|
23
|
-
|
|
24
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
25
|
-
typename L2HighOrderFE<ET,SHAPES,BASE>::TPRECOMP_GRAD L2HighOrderFE<ET,SHAPES,BASE>::precomp_grad(40);
|
|
26
|
-
#endif
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
33
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
34
|
-
PrecomputeTrace ()
|
|
35
|
-
{
|
|
36
|
-
#ifndef __CUDA_ARCH__
|
|
37
|
-
for (int f = 0; f < ElementTopology::GetNFacets(ET); f++)
|
|
38
|
-
{
|
|
39
|
-
int classnr = ET_trait<ET>::GetFacetClassNr (f, vnums);
|
|
40
|
-
if (precomp_trace.Used (IVec<2> (order, classnr)))
|
|
41
|
-
continue;
|
|
42
|
-
|
|
43
|
-
ELEMENT_TYPE etfacet = ElementTopology::GetFacetType (ET, f);
|
|
44
|
-
int nf;
|
|
45
|
-
switch (etfacet)
|
|
46
|
-
{
|
|
47
|
-
case ET_POINT: nf = 1; break;
|
|
48
|
-
case ET_SEGM: nf = order+1; break;
|
|
49
|
-
case ET_TRIG: nf = (order+1)*(order+2)/2; break;
|
|
50
|
-
case ET_QUAD: nf = sqr(order+1); break;
|
|
51
|
-
default: nf = 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
Matrix<> * trace = new Matrix<>(nf, ndof);
|
|
55
|
-
DGFiniteElement<ET>::CalcTraceMatrix (f, *trace);
|
|
56
|
-
precomp_trace.Set (IVec<2> (order, classnr), trace);
|
|
57
|
-
}
|
|
58
|
-
#endif
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
63
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
64
|
-
PrecomputeGrad ()
|
|
65
|
-
{
|
|
66
|
-
#ifndef __CUDA_ARCH__
|
|
67
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
68
|
-
|
|
69
|
-
if (precomp_grad.Used (IVec<2> (order, classnr)))
|
|
70
|
-
return;
|
|
71
|
-
|
|
72
|
-
Matrix<> * gmat = new Matrix<>(ndof*DIM, ndof);
|
|
73
|
-
DGFiniteElement<ET>::CalcGradientMatrix (*gmat);
|
|
74
|
-
precomp_grad.Set (IVec<2> (order, classnr), gmat);
|
|
75
|
-
#endif
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
81
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
82
|
-
PrecomputeShapes (const IntegrationRule & ir)
|
|
83
|
-
{
|
|
84
|
-
#ifndef __CUDA_ARCH__
|
|
85
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
86
|
-
|
|
87
|
-
if (precomp.Get (classnr, order, ir.GetNIP())) return;
|
|
88
|
-
|
|
89
|
-
PrecomputedScalShapes<DIM> * pre = new PrecomputedScalShapes<DIM> (ir.GetNIP(), ndof);
|
|
90
|
-
|
|
91
|
-
MatrixFixWidth<DIM> dshapes(ndof);
|
|
92
|
-
for (int i = 0; i < ir.GetNIP(); i++)
|
|
93
|
-
{
|
|
94
|
-
this->CalcShape (ir[i], pre->shapes.Row(i));
|
|
95
|
-
this->CalcDShape (ir[i], dshapes);
|
|
96
|
-
pre->dshapes.Rows (DIM*i, DIM*(i+1)) = Trans (dshapes);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
precomp.Add (classnr, order, ir.GetNIP(), pre);
|
|
100
|
-
#endif
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
106
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
107
|
-
Evaluate (const IntegrationRule & ir, BareSliceVector<double> coefs, FlatVector<double> vals) const
|
|
108
|
-
{
|
|
109
|
-
#ifndef __CUDA_ARCH__
|
|
110
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
111
|
-
PrecomputedScalShapes<DIM> * pre = precomp.Get (classnr, order, ir.GetNIP());
|
|
112
|
-
if (pre)
|
|
113
|
-
vals = pre->shapes * coefs;
|
|
114
|
-
else
|
|
115
|
-
#endif
|
|
116
|
-
BASE :: Evaluate (ir, coefs, vals);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
120
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
121
|
-
EvaluateTrans (const IntegrationRule & ir, BareSliceVector<> values, BareSliceVector<> coefs) const
|
|
122
|
-
{
|
|
123
|
-
#ifndef __CUDA_ARCH__
|
|
124
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
125
|
-
PrecomputedScalShapes<DIM> * pre = precomp.Get (classnr, order, ir.GetNIP());
|
|
126
|
-
|
|
127
|
-
if (pre)
|
|
128
|
-
coefs.Range(0,ndof) = Trans(pre->shapes)*values;
|
|
129
|
-
else
|
|
130
|
-
#endif
|
|
131
|
-
BASE :: EvaluateTrans (ir, values, coefs);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
135
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
136
|
-
EvaluateGrad (const IntegrationRule & ir, BareSliceVector<> coefs, FlatMatrixFixWidth<DIM> values) const
|
|
137
|
-
{
|
|
138
|
-
#ifndef __CUDA_ARCH__
|
|
139
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
140
|
-
|
|
141
|
-
PrecomputedScalShapes<DIM> * pre = precomp.Get (classnr, order, ir.GetNIP());
|
|
142
|
-
if (pre)
|
|
143
|
-
{
|
|
144
|
-
FlatVector<> vval(DIM*values.Height(), &values(0,0));
|
|
145
|
-
vval = pre->dshapes * coefs;
|
|
146
|
-
}
|
|
147
|
-
else
|
|
148
|
-
#endif
|
|
149
|
-
BASE :: EvaluateGrad (ir, coefs, values);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
153
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
154
|
-
EvaluateGradTrans (const IntegrationRule & ir, BareSliceMatrix<> values, BareSliceVector<> coefs) const
|
|
155
|
-
{
|
|
156
|
-
#ifndef __CUDA_ARCH__
|
|
157
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
158
|
-
|
|
159
|
-
PrecomputedScalShapes<DIM> * pre = precomp.Get (classnr, order, ir.GetNIP());
|
|
160
|
-
if (pre)
|
|
161
|
-
coefs.Range(0,ndof) = Trans (pre->dshapes) * FlatVector<> (DIM*ndof, &values(0,0)); // values.Height !!!
|
|
162
|
-
else
|
|
163
|
-
#endif
|
|
164
|
-
BASE :: EvaluateGradTrans (ir, values, coefs);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
169
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
170
|
-
GetGradient (FlatVector<> coefs, FlatMatrixFixWidth<DIM> grad) const
|
|
171
|
-
{
|
|
172
|
-
#ifndef __CUDA_ARCH__
|
|
173
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
174
|
-
int bnr, pos;
|
|
175
|
-
if (precomp_grad.Used (IVec<2> (order, classnr), bnr, pos))
|
|
176
|
-
{
|
|
177
|
-
FlatMatrix<> gmat = *precomp_grad.Get (bnr, pos);
|
|
178
|
-
FlatVector<> vgrad(grad.Height()*DIM, &grad(0,0));
|
|
179
|
-
// vgrad = gmat * coefs;
|
|
180
|
-
MultMatVec (gmat, coefs, vgrad);
|
|
181
|
-
}
|
|
182
|
-
else
|
|
183
|
-
#endif
|
|
184
|
-
DGFiniteElement<ET>::GetGradient (coefs, grad);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
188
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
189
|
-
GetGradientTrans (FlatMatrixFixWidth<DIM> grad, FlatVector<> coefs) const
|
|
190
|
-
{
|
|
191
|
-
#ifndef __CUDA_ARCH__
|
|
192
|
-
int classnr = ET_trait<ET>::GetClassNr (vnums);
|
|
193
|
-
int bnr, pos;
|
|
194
|
-
if (precomp_grad.Used (IVec<2> (order, classnr), bnr, pos))
|
|
195
|
-
{
|
|
196
|
-
FlatMatrix<> gmat = *precomp_grad.Get (bnr, pos);
|
|
197
|
-
FlatVector<> vgrad(grad.Height()*DIM, &grad(0,0));
|
|
198
|
-
// coefs = Trans(gmat) * vgrad;
|
|
199
|
-
MultMatTransVec (gmat, vgrad, coefs);
|
|
200
|
-
}
|
|
201
|
-
else
|
|
202
|
-
#endif
|
|
203
|
-
DGFiniteElement<ET>::GetGradientTrans (grad, coefs);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
215
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
216
|
-
GetTrace (int facet, FlatVector<> coefs, FlatVector<> fcoefs) const
|
|
217
|
-
{
|
|
218
|
-
#ifndef __CUDA_ARCH__
|
|
219
|
-
int classnr = ET_trait<ET>::GetFacetClassNr (facet, vnums);
|
|
220
|
-
int bnr, pos;
|
|
221
|
-
if (precomp_trace.Used (IVec<2> (order, classnr), bnr, pos))
|
|
222
|
-
{
|
|
223
|
-
FlatMatrix<> trace = *precomp_trace.Get (bnr, pos);
|
|
224
|
-
// fcoefs = trace * coefs;
|
|
225
|
-
MultMatVec (trace, coefs, fcoefs);
|
|
226
|
-
}
|
|
227
|
-
else
|
|
228
|
-
#endif
|
|
229
|
-
DGFiniteElement<ET>::GetTrace (facet, coefs, fcoefs);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
233
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
234
|
-
GetTraceTrans (int facet, FlatVector<> fcoefs, FlatVector<> coefs) const
|
|
235
|
-
{
|
|
236
|
-
#ifndef __CUDA_ARCH__
|
|
237
|
-
int classnr = ET_trait<ET>::GetFacetClassNr (facet, vnums);
|
|
238
|
-
if (precomp_trace.Used (IVec<2> (order, classnr)))
|
|
239
|
-
{
|
|
240
|
-
FlatMatrix<> trace = *precomp_trace.Get (IVec<2> (order, classnr));
|
|
241
|
-
// coefs = Trans(*precomp_trace.Get (IVec<2> (order, classnr))) * fcoefs;
|
|
242
|
-
MultMatTransVec (trace, fcoefs, coefs);
|
|
243
|
-
}
|
|
244
|
-
else
|
|
245
|
-
#endif
|
|
246
|
-
DGFiniteElement<ET>::GetTraceTrans (facet, fcoefs, coefs);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
template <ELEMENT_TYPE ET, class SHAPES, class BASE>
|
|
251
|
-
void L2HighOrderFE<ET,SHAPES,BASE> ::
|
|
252
|
-
GetDiagMassMatrix (FlatVector<> mass) const
|
|
253
|
-
{
|
|
254
|
-
switch (ET)
|
|
255
|
-
{
|
|
256
|
-
case ET_POINT:
|
|
257
|
-
mass(0) = 1;
|
|
258
|
-
break;
|
|
259
|
-
|
|
260
|
-
case ET_SEGM:
|
|
261
|
-
for (int ix = 0; ix <= order; ix++)
|
|
262
|
-
mass(ix) = 1.0 / (2 * ix + 1);
|
|
263
|
-
break;
|
|
264
|
-
|
|
265
|
-
case ET_TRIG:
|
|
266
|
-
for (int ix = 0, ii = 0; ix <= order; ix++)
|
|
267
|
-
for (int iy = 0; iy <= order - ix; iy++, ii++)
|
|
268
|
-
mass(ii) = 1.0 / ((2 * ix + 1) * (2 * ix + 2 * iy + 2));
|
|
269
|
-
break;
|
|
270
|
-
|
|
271
|
-
case ET_QUAD:
|
|
272
|
-
for (int ix = 0, ii = 0; ix <= order; ix++)
|
|
273
|
-
for (int iy = 0; iy <= order; iy++, ii++)
|
|
274
|
-
mass(ii) = 1.0 / ((2 * ix + 1) * (2 * iy + 1));
|
|
275
|
-
break;
|
|
276
|
-
|
|
277
|
-
case ET_TET:
|
|
278
|
-
for (int ix = 0, ii = 0; ix <= order; ix++)
|
|
279
|
-
for (int iy = 0; iy <= order - ix; iy++)
|
|
280
|
-
for (int iz = 0; iz <= order - ix-iy; iz++, ii++)
|
|
281
|
-
mass(ii) = 1.0 / ((2 * ix + 1) * (2 * ix + 2 * iy + 2) * (2 * ix + 2 * iy + 2 * iz + 3));
|
|
282
|
-
break;
|
|
283
|
-
|
|
284
|
-
case ET_HEX:
|
|
285
|
-
for (int ix = 0, ii = 0; ix <= order; ix++)
|
|
286
|
-
for (int iy = 0; iy <= order; iy++)
|
|
287
|
-
for (int iz = 0; iz <= order; iz++, ii++)
|
|
288
|
-
mass(ii) = 1.0 / ((2 * ix + 1) * (2 * iy + 1) * (2 * iz + 1));
|
|
289
|
-
break;
|
|
290
|
-
|
|
291
|
-
default:
|
|
292
|
-
DGFiniteElement<ET>::GetDiagMassMatrix (mass);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
template <ELEMENT_TYPE ET>
|
|
308
|
-
class L2HighOrderFE_Shape : public L2HighOrderFE<ET>
|
|
309
|
-
{
|
|
310
|
-
using L2HighOrderFE<ET>::vnums;
|
|
311
|
-
using L2HighOrderFE<ET>::order;
|
|
312
|
-
using L2HighOrderFE<ET>::order_inner;
|
|
313
|
-
using L2HighOrderFE<ET>::GetFaceSort;
|
|
314
|
-
using L2HighOrderFE<ET>::GetEdgeSort;
|
|
315
|
-
using L2HighOrderFE<ET>::DIM;
|
|
316
|
-
public:
|
|
317
|
-
template<typename Tx, typename TFA>
|
|
318
|
-
INLINE void T_CalcShape (TIP<DIM,Tx> ip, TFA & shape) const;
|
|
319
|
-
|
|
320
|
-
template<typename Tx, typename TFA>
|
|
321
|
-
INLINE void T_CalcDualShape (TIP<DIM,Tx> ip, TFA & shape) const
|
|
322
|
-
{
|
|
323
|
-
if (ip.vb == VOL)
|
|
324
|
-
T_CalcShape (ip, shape);
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
/* *********************** Point **********************/
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
template<> template<typename Tx, typename TFA>
|
|
335
|
-
void L2HighOrderFE_Shape<ET_POINT> ::
|
|
336
|
-
T_CalcShape (TIP<0,Tx> ip, TFA & shape) const
|
|
337
|
-
{
|
|
338
|
-
shape[0] = Tx(1.0);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
/* *********************** Segment **********************/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
template<> template<typename Tx, typename TFA>
|
|
347
|
-
void L2HighOrderFE_Shape<ET_SEGM> ::
|
|
348
|
-
T_CalcShape (TIP<1,Tx> ip, TFA & shape) const
|
|
349
|
-
{
|
|
350
|
-
Tx lam[2] = { ip.x, 1-ip.x };
|
|
351
|
-
IVec<2> e = GetEdgeSort (0, vnums);
|
|
352
|
-
LegendrePolynomial (order, lam[e[1]]-lam[e[0]], shape);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
/* *********************** Triangle **********************/
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
template<> template<typename Tx, typename TFA>
|
|
361
|
-
void L2HighOrderFE_Shape<ET_TRIG> ::
|
|
362
|
-
T_CalcShape (TIP<DIM,Tx> ip, TFA & shape) const
|
|
363
|
-
{
|
|
364
|
-
Tx lam[3] = { ip.x, ip.y, 1-ip.x-ip.y };
|
|
365
|
-
IVec<4> f = GetFaceSort (0, vnums);
|
|
366
|
-
size_t p = order_inner[0];
|
|
367
|
-
DubinerBasis::Eval (p, lam[f[0]], lam[f[1]], shape);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
/* *********************** Quad **********************/
|
|
374
|
-
|
|
375
|
-
template<> template<typename Tx, typename TFA>
|
|
376
|
-
void L2HighOrderFE_Shape<ET_QUAD> ::
|
|
377
|
-
T_CalcShape (TIP<2,Tx> ip, TFA & shape) const
|
|
378
|
-
{
|
|
379
|
-
Tx x = ip.x, y = ip.y;
|
|
380
|
-
Tx sigma[4] = {(1-x)+(1-y),x+(1-y),x+y,(1-x)+y};
|
|
381
|
-
|
|
382
|
-
IVec<4> f = GetFaceSort (0, vnums);
|
|
383
|
-
|
|
384
|
-
Tx xi = sigma[f[0]]-sigma[f[1]];
|
|
385
|
-
Tx eta = sigma[f[0]]-sigma[f[3]];
|
|
386
|
-
|
|
387
|
-
int p=order_inner[0];
|
|
388
|
-
int q=order_inner[1];
|
|
389
|
-
|
|
390
|
-
STACK_ARRAY(Tx, mem, p+q+2);
|
|
391
|
-
Tx * polx = &mem[0];
|
|
392
|
-
Tx * poly = &mem[p+1];
|
|
393
|
-
|
|
394
|
-
LegendrePolynomial (p, xi, polx);
|
|
395
|
-
LegendrePolynomial (q, eta, poly);
|
|
396
|
-
|
|
397
|
-
for (size_t i = 0, ii = 0; i <= p; i++)
|
|
398
|
-
for (size_t j = 0; j <= q; j++)
|
|
399
|
-
shape[ii++] = polx[i] * poly[j];
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
/* *********************** Tet **********************/
|
|
404
|
-
|
|
405
|
-
template<> template<typename Tx, typename TFA>
|
|
406
|
-
void L2HighOrderFE_Shape<ET_TET> ::
|
|
407
|
-
T_CalcShape (TIP<3,Tx> ip, TFA & shape) const
|
|
408
|
-
{
|
|
409
|
-
Tx lami[4] = { ip.x, ip.y, ip.z, 1-ip.x-ip.y-ip.z };
|
|
410
|
-
|
|
411
|
-
unsigned char sort[4] = { 0, 1, 2, 3 };
|
|
412
|
-
|
|
413
|
-
if (vnums[sort[0]] > vnums[sort[1]]) Swap (sort[0], sort[1]);
|
|
414
|
-
if (vnums[sort[2]] > vnums[sort[3]]) Swap (sort[2], sort[3]);
|
|
415
|
-
if (vnums[sort[0]] > vnums[sort[2]]) Swap (sort[0], sort[2]);
|
|
416
|
-
if (vnums[sort[1]] > vnums[sort[3]]) Swap (sort[1], sort[3]);
|
|
417
|
-
if (vnums[sort[1]] > vnums[sort[2]]) Swap (sort[1], sort[2]);
|
|
418
|
-
|
|
419
|
-
Tx lamis[4];
|
|
420
|
-
for (int i = 0; i < 4; i++)
|
|
421
|
-
lamis[i] = lami[sort[i]];
|
|
422
|
-
|
|
423
|
-
DubinerBasis3D::Eval (this->order, lamis[0], lamis[1], lamis[2], shape);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
/* *********************** Prism **********************/
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
template<> template<typename Tx, typename TFA>
|
|
432
|
-
void L2HighOrderFE_Shape<ET_PRISM> ::
|
|
433
|
-
T_CalcShape (TIP<3,Tx> ip, TFA & shape) const
|
|
434
|
-
{
|
|
435
|
-
Tx lami[3] = { ip.x, ip.y, 1-ip.x-ip.y }; // hx[0], hx[1], 1-hx[0]-hx[1] };
|
|
436
|
-
|
|
437
|
-
int sort[3];
|
|
438
|
-
for (int i = 0; i < 3; i++) sort[i] = i;
|
|
439
|
-
|
|
440
|
-
if (vnums[sort[0]] > vnums[sort[1]]) Swap (sort[0], sort[1]);
|
|
441
|
-
if (vnums[sort[1]] > vnums[sort[2]]) Swap (sort[1], sort[2]);
|
|
442
|
-
if (vnums[sort[0]] > vnums[sort[1]]) Swap (sort[0], sort[1]);
|
|
443
|
-
|
|
444
|
-
Tx lamis[3];
|
|
445
|
-
for (int i = 0; i < 3; i++)
|
|
446
|
-
lamis[i] = lami[sort[i]];
|
|
447
|
-
|
|
448
|
-
Tx x = lamis[0];
|
|
449
|
-
// Tx y = lamis[1];
|
|
450
|
-
Tx z = ip.z; // hx[2];
|
|
451
|
-
|
|
452
|
-
int p=order_inner[0];
|
|
453
|
-
int q=order_inner[1];
|
|
454
|
-
|
|
455
|
-
ArrayMem<Tx, 20> memx(sqr(p+1));
|
|
456
|
-
FlatMatrix<Tx> polsx(p+1, &memx[0]);
|
|
457
|
-
|
|
458
|
-
VectorMem<10, Tx> polsy(p+1);
|
|
459
|
-
VectorMem<10, Tx> polsz(q+1);
|
|
460
|
-
|
|
461
|
-
for (int i = 0; i <= p; i++)
|
|
462
|
-
// JacobiPolynomial (p, 2*x-1, 2*i+1, 0, polsx.Row(i));
|
|
463
|
-
JacobiPolynomialAlpha (p, 2*x-1, 2*i+1, polsx.Row(i));
|
|
464
|
-
|
|
465
|
-
// ScaledLegendrePolynomial (order, lamis[1]-lamis[2], lamis[1]+lamis[2], polsy);
|
|
466
|
-
LegendrePolynomial::EvalScaled (p, lamis[1]-lamis[2], lamis[1]+lamis[2], polsy);
|
|
467
|
-
LegendrePolynomial (q, 2*z-1, polsz);
|
|
468
|
-
|
|
469
|
-
int ii = 0;
|
|
470
|
-
for (int k = 0; k <= q; k++)
|
|
471
|
-
for (int i = 0; i <= p; i++)
|
|
472
|
-
for (int j = 0; j <= p-i; j++)
|
|
473
|
-
shape[ii++] = polsx(j,i) * polsy(j) * polsz(k);
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
/* *********************** Pyramid **********************/
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
template<> template<typename Tx, typename TFA>
|
|
483
|
-
void L2HighOrderFE_Shape<ET_PYRAMID> ::
|
|
484
|
-
T_CalcShape (TIP<3,Tx> ip, TFA & shape) const
|
|
485
|
-
{
|
|
486
|
-
Tx x = ip.x;
|
|
487
|
-
Tx y = ip.y;
|
|
488
|
-
Tx z = ip.z;
|
|
489
|
-
|
|
490
|
-
// if (z == 1) z -= 1e-8;
|
|
491
|
-
z *= (1-1e-8);
|
|
492
|
-
Tx xt = 2 * (x / (1-z)) - 1;
|
|
493
|
-
Tx yt = 2 * (y / (1-z)) - 1;
|
|
494
|
-
|
|
495
|
-
VectorMem<10, Tx> polsx(order+1);
|
|
496
|
-
VectorMem<10, Tx> polsy(order+1);
|
|
497
|
-
|
|
498
|
-
ArrayMem<Tx, 20> memz(sqr(order+1));
|
|
499
|
-
FlatMatrix<Tx> polsz(order+1, &memz[0]);
|
|
500
|
-
|
|
501
|
-
Tx fac(1.0);
|
|
502
|
-
for (int i = 0; i <= order; i++)
|
|
503
|
-
{
|
|
504
|
-
// JacobiPolynomial (order, 2*z-1, 2*i+2, 0, polsz.Row(i));
|
|
505
|
-
JacobiPolynomialAlpha (order, 2*z-1, 2*i+2, polsz.Row(i));
|
|
506
|
-
polsz.Row(i) *= fac;
|
|
507
|
-
fac *= (1-z);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
LegendrePolynomial (order, xt, polsx);
|
|
511
|
-
LegendrePolynomial (order, yt, polsy);
|
|
512
|
-
|
|
513
|
-
int ii = 0;
|
|
514
|
-
for (int iz = 0; iz <= order; iz++)
|
|
515
|
-
for (int ix = 0; ix <= order-iz; ix++)
|
|
516
|
-
for (int iy = 0; iy <= order-iz; iy++, ii++)
|
|
517
|
-
shape[ii] = polsx(ix) * polsy(iy) * polsz(max2(ix,iy), iz);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
/* *********************** Pyramid **********************/
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
template<> template<typename Tx, typename TFA>
|
|
524
|
-
void L2HighOrderFE_Shape<ET_HEXAMID> ::
|
|
525
|
-
T_CalcShape (TIP<3,Tx> ip, TFA & shape) const
|
|
526
|
-
{
|
|
527
|
-
throw Exception("L2-hexamid not implemented");
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
/* *********************** Hex **********************/
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
template<> template<typename Tx, typename TFA>
|
|
535
|
-
void L2HighOrderFE_Shape<ET_HEX> :: T_CalcShape (TIP<3,Tx> ip, TFA & shape) const
|
|
536
|
-
{
|
|
537
|
-
Tx x = ip.x, y = ip.y, z = ip.z;
|
|
538
|
-
|
|
539
|
-
// no orientation necessary
|
|
540
|
-
int p=order_inner[0];
|
|
541
|
-
int q=order_inner[1];
|
|
542
|
-
int r=order_inner[2];
|
|
543
|
-
|
|
544
|
-
STACK_ARRAY(Tx, mem, p+q+r+3);
|
|
545
|
-
Tx * polx = &mem[0];
|
|
546
|
-
Tx * poly = &mem[p+1];
|
|
547
|
-
Tx * polz = &mem[p+q+2];
|
|
548
|
-
|
|
549
|
-
LegendrePolynomial (p, 2*x-1, polx);
|
|
550
|
-
LegendrePolynomial (q, 2*y-1, poly);
|
|
551
|
-
LegendrePolynomial (r, 2*z-1, polz);
|
|
552
|
-
|
|
553
|
-
for (int i = 0, ii = 0; i <= p; i++)
|
|
554
|
-
for (int j = 0; j <= q; j++)
|
|
555
|
-
{
|
|
556
|
-
Tx hval = polx[i] * poly[j];
|
|
557
|
-
for (int k = 0; k <= r; k++)
|
|
558
|
-
shape[ii++] = hval * polz[k];
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
#endif
|