ngsolve 6.2.2502__cp312-cp312-macosx_10_15_universal2.whl → 6.2.2504__cp312-cp312-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.
- netgen/include/fespace.hpp +3 -2
- netgen/include/integrator.hpp +4 -16
- netgen/include/intrules_SauterSchwab.hpp +25 -0
- netgen/include/mp_coefficient.hpp +140 -0
- netgen/include/mptools.hpp +106 -161
- netgen/include/potentialtools.hpp +20 -0
- netgen/include/prolongation.hpp +126 -3
- netgen/include/sparsematrix_impl.hpp +71 -5
- netgen/include/symbolicintegrator.hpp +1 -0
- netgen/include/tangentialfacetfespace.hpp +7 -22
- netgen/libngbla.dylib +0 -0
- netgen/libngcomp.dylib +0 -0
- netgen/libngfem.dylib +0 -0
- netgen/libngla.dylib +0 -0
- netgen/libngsbem.dylib +0 -0
- netgen/libngsolve.dylib +0 -0
- netgen/libngstd.dylib +0 -0
- ngsolve/__init__.py +1 -0
- ngsolve/__init__.pyi +4 -2
- ngsolve/bla.pyi +8 -0
- ngsolve/cmake/NGSolveConfig.cmake +5 -5
- ngsolve/cmake/ngsolve-targets-release.cmake +10 -0
- ngsolve/cmake/ngsolve-targets.cmake +9 -2
- ngsolve/comp/__init__.pyi +12 -1
- ngsolve/config/__init__.pyi +6 -6
- ngsolve/config/config.py +5 -5
- ngsolve/config/config.pyi +6 -6
- ngsolve/fem.pyi +7 -118
- ngsolve/ngslib.so +0 -0
- ngsolve/solve_implementation.py +146 -0
- ngsolve/solve_implementation.pyi +42 -0
- ngsolve/utils.pyi +1 -13
- {ngsolve-6.2.2502.dist-info → ngsolve-6.2.2504.dist-info}/METADATA +2 -2
- {ngsolve-6.2.2502.dist-info → ngsolve-6.2.2504.dist-info}/RECORD +70 -64
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/Netgen.icns +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/bin/ngscxx +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/bin/ngsld +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/bin/ngsolve.tcl +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/bin/ngspy +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/beam.geo +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/beam.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/chip.in2d +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/chip.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/coil.geo +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/coil.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/coilshield.geo +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/coilshield.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/cube.geo +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/cube.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d11_chip_nitsche.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d1_square.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d2_chip.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d3_helmholtz.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d4_cube.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d5_beam.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d6_shaft.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d7_coil.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d8_coilshield.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/d9_hybridDG.pde +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/doubleglazing.in2d +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/doubleglazing.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/shaft.geo +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/shaft.vol +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/square.in2d +0 -0
- {ngsolve-6.2.2502.data → ngsolve-6.2.2504.data}/data/share/ngsolve/square.vol +0 -0
- {ngsolve-6.2.2502.dist-info → ngsolve-6.2.2504.dist-info}/LICENSE +0 -0
- {ngsolve-6.2.2502.dist-info → ngsolve-6.2.2504.dist-info}/WHEEL +0 -0
- {ngsolve-6.2.2502.dist-info → ngsolve-6.2.2504.dist-info}/top_level.txt +0 -0
|
@@ -51,28 +51,94 @@ namespace ngla
|
|
|
51
51
|
FlatArray<TM> val, size_t h, size_t w)
|
|
52
52
|
{
|
|
53
53
|
static Timer t("SparseMatrix::CreateFromCOO"); RegionTimer r(t);
|
|
54
|
-
|
|
54
|
+
static Timer t1("SparseMatrix::CreateFromCOO 1");
|
|
55
|
+
static Timer t2("SparseMatrix::CreateFromCOO 2");
|
|
56
|
+
static Timer t3("SparseMatrix::CreateFromCOO 3");
|
|
55
57
|
|
|
56
58
|
/*
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*/
|
|
59
|
+
{
|
|
60
|
+
Array<int> cnt(h);
|
|
60
61
|
|
|
62
|
+
t1.Start();
|
|
61
63
|
DynamicTable<int> tab(h);
|
|
62
64
|
for (size_t i = 0; i < indi.Size(); i++)
|
|
63
65
|
tab.AddUnique(indi[i], indj[i]);
|
|
66
|
+
t1.Stop();
|
|
64
67
|
for (size_t i = 0; i < h; i++)
|
|
65
68
|
cnt[i] = tab.EntrySize(i);
|
|
66
69
|
|
|
67
70
|
auto matrix = make_shared<SparseMatrix<TM>> (cnt, w);
|
|
71
|
+
t2.Start();
|
|
68
72
|
for (auto k : ngstd::Range(indi))
|
|
69
73
|
matrix->CreatePosition(indi[k], indj[k]);
|
|
74
|
+
t2.Stop();
|
|
70
75
|
matrix->SetZero();
|
|
71
76
|
|
|
77
|
+
t3.Start();
|
|
72
78
|
for (auto k : ngstd::Range(indi))
|
|
73
79
|
(*matrix)(indi[k], indj[k]) += val[k];
|
|
80
|
+
t3.Stop();
|
|
81
|
+
// return matrix;
|
|
82
|
+
}
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
Array<int> cnt(h);
|
|
86
|
+
cnt = 0;
|
|
87
|
+
for (auto i : indi)
|
|
88
|
+
cnt[i]++;
|
|
89
|
+
|
|
90
|
+
Table<int> tab(cnt);
|
|
91
|
+
cnt = 0;
|
|
92
|
+
|
|
93
|
+
for (auto [i,j] : Zip(indi, indj))
|
|
94
|
+
tab[i][cnt[i]++] = j;
|
|
95
|
+
|
|
96
|
+
cnt = 0;
|
|
97
|
+
// for (int i = 0; i < tab.Size(); i++)
|
|
98
|
+
ParallelFor (tab.Size(), [&] (size_t i)
|
|
99
|
+
{
|
|
100
|
+
QuickSort (tab[i]);
|
|
101
|
+
|
|
102
|
+
int prev = -1;
|
|
103
|
+
for (auto j : tab[i])
|
|
104
|
+
{
|
|
105
|
+
if (j != prev) cnt[i]++;
|
|
106
|
+
prev = j;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
auto matrix = make_shared<SparseMatrix<TM>> (cnt, w);
|
|
111
|
+
t2.Start();
|
|
112
|
+
// for (auto k : ngstd::Range(indi))
|
|
113
|
+
// matrix->CreatePosition(indi[k], indj[k]);
|
|
74
114
|
|
|
75
|
-
|
|
115
|
+
cnt = 0;
|
|
116
|
+
for (int i = 0; i < tab.Size(); i++)
|
|
117
|
+
{
|
|
118
|
+
int prev = -1;
|
|
119
|
+
for (auto j : tab[i])
|
|
120
|
+
{
|
|
121
|
+
auto cols = matrix->GetRowIndices(i);
|
|
122
|
+
if (j != prev)
|
|
123
|
+
cols[cnt[i]++] = j;
|
|
124
|
+
prev = j;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
t2.Stop();
|
|
129
|
+
matrix->SetZero();
|
|
130
|
+
|
|
131
|
+
t3.Start();
|
|
132
|
+
/*
|
|
133
|
+
for (auto k : ngstd::Range(indi))
|
|
134
|
+
(*matrix)(indi[k], indj[k]) += val[k];
|
|
135
|
+
*/
|
|
136
|
+
ParallelFor (indi.Size(), [&](size_t k)
|
|
137
|
+
{
|
|
138
|
+
AtomicAdd ( (*matrix)(indi[k], indj[k]), val[k]);
|
|
139
|
+
});
|
|
140
|
+
t3.Stop();
|
|
141
|
+
return matrix;
|
|
76
142
|
}
|
|
77
143
|
|
|
78
144
|
|
|
@@ -16,34 +16,22 @@ namespace ngcomp
|
|
|
16
16
|
class NGS_DLL_HEADER TangentialFacetFESpace : public FESpace
|
|
17
17
|
{
|
|
18
18
|
protected:
|
|
19
|
-
/// Level
|
|
20
|
-
// int level;
|
|
21
|
-
/// Number of Facets
|
|
22
|
-
// int nfacets;
|
|
23
|
-
///
|
|
24
|
-
// int ncfacets;
|
|
25
|
-
///
|
|
26
|
-
// int nel;
|
|
27
|
-
|
|
28
19
|
Array<int> first_facet_dof;
|
|
29
20
|
Array<int> first_inner_dof; // for highest_order_dc
|
|
30
|
-
// int ndof_lo;
|
|
31
21
|
|
|
32
22
|
int rel_order;
|
|
33
23
|
|
|
34
24
|
Array<IVec<2> > order_facet;
|
|
35
25
|
Array<bool> fine_facet;
|
|
36
26
|
|
|
37
|
-
// int ndof;
|
|
38
|
-
// Array<int> ndlevel;
|
|
39
27
|
bool var_order;
|
|
40
28
|
bool print;
|
|
41
29
|
|
|
42
30
|
bool highest_order_dc;
|
|
43
31
|
bool hide_highest_order_dc;
|
|
32
|
+
bool all_dofs_together;
|
|
44
33
|
|
|
45
34
|
public:
|
|
46
|
-
///
|
|
47
35
|
TangentialFacetFESpace (shared_ptr<MeshAccess> ama, const Flags & flags,
|
|
48
36
|
bool parseflags = false );
|
|
49
37
|
|
|
@@ -61,20 +49,11 @@ namespace ngcomp
|
|
|
61
49
|
virtual void SetOrder (NodeId ni, int order) override;
|
|
62
50
|
virtual int GetOrder (NodeId ni) const override;
|
|
63
51
|
|
|
64
|
-
|
|
65
|
-
// virtual size_t GetNDof() const throw() override { return ndof; }
|
|
66
|
-
// virtual size_t GetNDofLevel ( int i ) const override { return ndlevel[i]; }
|
|
67
|
-
|
|
68
52
|
virtual FlatArray<VorB> GetDualShapeNodes (VorB vb) const override;
|
|
69
53
|
|
|
70
|
-
// virtual int GetNDofLowOrder () const
|
|
71
|
-
// { return ndof_lo; }
|
|
72
54
|
|
|
73
55
|
virtual FiniteElement & GetFE(ElementId ei, Allocator & lh) const override;
|
|
74
56
|
|
|
75
|
-
// virtual const FiniteElement & GetFE ( int elnr, LocalHeap & lh ) const;
|
|
76
|
-
// virtual const FiniteElement & GetSFE ( int selnr, LocalHeap & lh ) const;
|
|
77
|
-
|
|
78
57
|
virtual void GetFacetDofNrs (int felnr, Array<DofId> & dnums) const;
|
|
79
58
|
|
|
80
59
|
virtual int GetNFacetDofs (int felnr) const;
|
|
@@ -90,6 +69,12 @@ namespace ngcomp
|
|
|
90
69
|
virtual IVec<2> GetFacetOrder(int fnr) const;
|
|
91
70
|
|
|
92
71
|
virtual int GetFirstFacetDof(int fanr) const;
|
|
72
|
+
const auto & GetFirstFacetDof() const { return first_facet_dof; }
|
|
73
|
+
|
|
74
|
+
IntRange GetFacetDofs (int nr) const
|
|
75
|
+
{
|
|
76
|
+
return IntRange (first_facet_dof[nr], first_facet_dof[nr+1]);
|
|
77
|
+
}
|
|
93
78
|
|
|
94
79
|
virtual bool UsesHighestOrderDiscontinuous() const {return highest_order_dc;};
|
|
95
80
|
|
netgen/libngbla.dylib
CHANGED
|
Binary file
|
netgen/libngcomp.dylib
CHANGED
|
Binary file
|
netgen/libngfem.dylib
CHANGED
|
Binary file
|
netgen/libngla.dylib
CHANGED
|
Binary file
|
netgen/libngsbem.dylib
ADDED
|
Binary file
|
netgen/libngsolve.dylib
CHANGED
|
Binary file
|
netgen/libngstd.dylib
CHANGED
|
Binary file
|
ngsolve/__init__.py
CHANGED
|
@@ -75,6 +75,7 @@ from .utils import x, y, z, dx, ds, grad, Grad, curl, div, Deviator, PyId, PyTra
|
|
|
75
75
|
from . import solvers
|
|
76
76
|
from . import preconditioners
|
|
77
77
|
from . import timestepping
|
|
78
|
+
from .solve_implementation import Solve
|
|
78
79
|
|
|
79
80
|
try:
|
|
80
81
|
from netgen.occ import unit_square, unit_cube
|
ngsolve/__init__.pyi
CHANGED
|
@@ -147,6 +147,7 @@ from ngsolve.la import QMRSolver
|
|
|
147
147
|
from ngsolve.ngstd import IntRange
|
|
148
148
|
from ngsolve.solve import Draw
|
|
149
149
|
from ngsolve.solve import SetVisualization
|
|
150
|
+
from ngsolve.solve_implementation.Application import Solve
|
|
150
151
|
from ngsolve.timing import Timing
|
|
151
152
|
from ngsolve.utils import Deviator
|
|
152
153
|
from ngsolve.utils import Grad
|
|
@@ -185,11 +186,12 @@ from . import ngstd
|
|
|
185
186
|
from . import nonlinearsolvers
|
|
186
187
|
from . import preconditioners
|
|
187
188
|
from . import solve
|
|
189
|
+
from . import solve_implementation
|
|
188
190
|
from . import solvers
|
|
189
191
|
from . import timestepping
|
|
190
192
|
from . import timing
|
|
191
193
|
from . import utils
|
|
192
|
-
__all__ = ['APhiHCurlAMG', 'ArnoldiSolver', 'BBBND', 'BBND', 'BFI', 'BND', 'BSpline', 'BaseMatrix', 'BaseVector', 'BilinearForm', 'BitArray', 'BlockBFI', 'BlockLFI', 'BlockMatrix', 'BlockVector', 'BoundaryFromVolumeCF', 'CELL', 'CF', 'CGSolver', 'COUPLING_TYPE', 'CacheCF', 'CoefficientFunction', 'Cof', 'CompoundBFI', 'CompoundLFI', 'Compress', 'CompressCompound', 'Conj', 'ConstEBEMatrix', 'ContactBoundary', 'ConvertOperator', 'CreateVVector', 'Cross', 'Det', 'Deviator', 'DiagonalMatrix', 'Discontinuous', 'Draw', 'EDGE', 'ELEMENT', 'ET', 'ElementId', 'Embedding', 'FACE', 'FACET', 'FESpace', 'FacetFESpace', 'FacetSurface', 'GMRESSolver', 'Grad', 'GridFunction', 'H1', 'H1LumpingFESpace', 'HCurl', 'HCurlAMG', 'HCurlCurl', 'HCurlDiv', 'HDiv', 'HDivDiv', 'HDivDivSurface', 'HDivSurface', 'HEX', 'Hidden', 'Id', 'IdentityMatrix', 'IfPos', 'InnerProduct', 'IntRange', 'Integrate', 'IntegrationRule', 'Interpolate', 'Inv', 'L2', 'LFI', 'LinearForm', 'Matrix', 'MatrixValued', 'Mesh', 'MultiGridPreconditioner', 'MultiVector', 'NodalFESpace', 'NodeId', 'Norm', 'NormalFacetFESpace', 'NormalFacetSurface', 'Normalize', 'NumberSpace', 'ORDER_POLICY', 'OuterProduct', 'PARALLEL_STATUS', 'POINT', 'PRISM', 'PYRAMID', 'PajeTrace', 'ParallelMatrix', 'Parameter', 'ParameterC', 'PatchwiseSolve', 'Periodic', 'PermutationMatrix', 'PlaceholderCF', 'PlateauFESpace', 'Preconditioner', 'PrivateSpace', 'ProductSpace', 'Projector', 'PyCof', 'PyCross', 'PyDet', 'PyId', 'PyInv', 'PySkew', 'PySym', 'PyTrace', 'QMRSolver', 'QUAD', 'Redraw', 'Region', 'SEGM', 'SetHeapSize', 'SetNumThreads', 'SetTestoutFile', 'SetVisualization', 'Skew', 'SurfaceL2', 'Sym', 'SymbolicBFI', 'SymbolicEnergy', 'SymbolicLFI', 'TET', 'TRIG', 'TangentialFacetFESpace', 'TangentialSurfaceL2', 'TaskManager', 'TimeFunction', 'Timer', 'Timers', 'Timing', 'Trace', 'VERTEX', 'VOL', 'VTKOutput', 'Variation', 'Vector', 'VectorFacetFESpace', 'VectorFacetSurface', 'VectorH1', 'VectorL2', 'VectorNodalFESpace', 'VectorSurfaceL2', 'VectorValued', 'VoxelCoefficient', 'ZeroCF', 'acos', 'asin', 'atan', 'atan2', 'atexit', 'bla', 'builtin_sum', 'bvp', 'ceil', 'comp', 'config', 'cos', 'cosh', 'curl', 'directsolvers', 'div', 'ds', 'dx', 'eigenvalues', 'erf', 'exp', 'fem', 'floor', 'grad', 'krylovspace', 'la', 'log', 'netgen', 'ngsglobals', 'ngslib', 'ngstd', 'nonlinearsolvers', 'os', 'pi', 'pml', 'pow', 'preconditioners', 'printonce', 'sin', 'sinh', 'solve', 'solvers', 'specialcf', 'sqrt', 'sum', 'sys', 'tan', 'timestepping', 'timing', 'unit_cube', 'unit_square', 'utils', 'x', 'y', 'z']
|
|
194
|
+
__all__ = ['APhiHCurlAMG', 'ArnoldiSolver', 'BBBND', 'BBND', 'BFI', 'BND', 'BSpline', 'BaseMatrix', 'BaseVector', 'BilinearForm', 'BitArray', 'BlockBFI', 'BlockLFI', 'BlockMatrix', 'BlockVector', 'BoundaryFromVolumeCF', 'CELL', 'CF', 'CGSolver', 'COUPLING_TYPE', 'CacheCF', 'CoefficientFunction', 'Cof', 'CompoundBFI', 'CompoundLFI', 'Compress', 'CompressCompound', 'Conj', 'ConstEBEMatrix', 'ContactBoundary', 'ConvertOperator', 'CreateVVector', 'Cross', 'Det', 'Deviator', 'DiagonalMatrix', 'Discontinuous', 'Draw', 'EDGE', 'ELEMENT', 'ET', 'ElementId', 'Embedding', 'FACE', 'FACET', 'FESpace', 'FacetFESpace', 'FacetSurface', 'GMRESSolver', 'Grad', 'GridFunction', 'H1', 'H1LumpingFESpace', 'HCurl', 'HCurlAMG', 'HCurlCurl', 'HCurlDiv', 'HDiv', 'HDivDiv', 'HDivDivSurface', 'HDivSurface', 'HEX', 'Hidden', 'Id', 'IdentityMatrix', 'IfPos', 'InnerProduct', 'IntRange', 'Integrate', 'IntegrationRule', 'Interpolate', 'Inv', 'L2', 'LFI', 'LinearForm', 'Matrix', 'MatrixValued', 'Mesh', 'MultiGridPreconditioner', 'MultiVector', 'NodalFESpace', 'NodeId', 'Norm', 'NormalFacetFESpace', 'NormalFacetSurface', 'Normalize', 'NumberSpace', 'ORDER_POLICY', 'OuterProduct', 'PARALLEL_STATUS', 'POINT', 'PRISM', 'PYRAMID', 'PajeTrace', 'ParallelMatrix', 'Parameter', 'ParameterC', 'PatchwiseSolve', 'Periodic', 'PermutationMatrix', 'PlaceholderCF', 'PlateauFESpace', 'Preconditioner', 'PrivateSpace', 'ProductSpace', 'Projector', 'PyCof', 'PyCross', 'PyDet', 'PyId', 'PyInv', 'PySkew', 'PySym', 'PyTrace', 'QMRSolver', 'QUAD', 'Redraw', 'Region', 'SEGM', 'SetHeapSize', 'SetNumThreads', 'SetTestoutFile', 'SetVisualization', 'Skew', 'Solve', 'SurfaceL2', 'Sym', 'SymbolicBFI', 'SymbolicEnergy', 'SymbolicLFI', 'TET', 'TRIG', 'TangentialFacetFESpace', 'TangentialSurfaceL2', 'TaskManager', 'TimeFunction', 'Timer', 'Timers', 'Timing', 'Trace', 'VERTEX', 'VOL', 'VTKOutput', 'Variation', 'Vector', 'VectorFacetFESpace', 'VectorFacetSurface', 'VectorH1', 'VectorL2', 'VectorNodalFESpace', 'VectorSurfaceL2', 'VectorValued', 'VoxelCoefficient', 'ZeroCF', 'acos', 'asin', 'atan', 'atan2', 'atexit', 'bla', 'builtin_sum', 'bvp', 'ceil', 'comp', 'config', 'cos', 'cosh', 'curl', 'directsolvers', 'div', 'ds', 'dx', 'eigenvalues', 'erf', 'exp', 'fem', 'floor', 'grad', 'krylovspace', 'la', 'log', 'netgen', 'ngsglobals', 'ngslib', 'ngstd', 'nonlinearsolvers', 'os', 'pi', 'pml', 'pow', 'preconditioners', 'printonce', 'sin', 'sinh', 'solve', 'solve_implementation', 'solvers', 'specialcf', 'sqrt', 'sum', 'sys', 'tan', 'timestepping', 'timing', 'unit_cube', 'unit_square', 'utils', 'x', 'y', 'z']
|
|
193
195
|
def _add_flags_doc(module):
|
|
194
196
|
...
|
|
195
197
|
def _jupyter_nbextension_paths():
|
|
@@ -217,7 +219,7 @@ TET: fem.ET # value = <ET.TET: 20>
|
|
|
217
219
|
TRIG: fem.ET # value = <ET.TRIG: 10>
|
|
218
220
|
VERTEX: fem.NODE_TYPE # value = <NODE_TYPE.VERTEX: 0>
|
|
219
221
|
VOL: comp.VorB # value = <VorB.VOL: 0>
|
|
220
|
-
__version__: str = '6.2.
|
|
222
|
+
__version__: str = '6.2.2504'
|
|
221
223
|
ds: comp.DifferentialSymbol # value = <ngsolve.comp.DifferentialSymbol object>
|
|
222
224
|
dx: comp.DifferentialSymbol # value = <ngsolve.comp.DifferentialSymbol object>
|
|
223
225
|
ngsglobals: comp.GlobalVariables # value = <ngsolve.comp.GlobalVariables object>
|
ngsolve/bla.pyi
CHANGED
|
@@ -916,8 +916,12 @@ class Vec2D:
|
|
|
916
916
|
"""
|
|
917
917
|
Return value at given position
|
|
918
918
|
"""
|
|
919
|
+
@typing.overload
|
|
919
920
|
def __init__(self, arg0: float, arg1: float) -> None:
|
|
920
921
|
...
|
|
922
|
+
@typing.overload
|
|
923
|
+
def __init__(self, t: tuple) -> None:
|
|
924
|
+
...
|
|
921
925
|
def __mul__(self, value: float) -> Vec2D:
|
|
922
926
|
...
|
|
923
927
|
def __neg__(self) -> Vec2D:
|
|
@@ -971,8 +975,12 @@ class Vec3D:
|
|
|
971
975
|
"""
|
|
972
976
|
Return value at given position
|
|
973
977
|
"""
|
|
978
|
+
@typing.overload
|
|
974
979
|
def __init__(self, arg0: float, arg1: float, arg2: float) -> None:
|
|
975
980
|
...
|
|
981
|
+
@typing.overload
|
|
982
|
+
def __init__(self, t: tuple) -> None:
|
|
983
|
+
...
|
|
976
984
|
def __mul__(self, value: float) -> Vec3D:
|
|
977
985
|
...
|
|
978
986
|
def __neg__(self) -> Vec3D:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
set(PACKAGE_VERSION "6.2.
|
|
1
|
+
set(PACKAGE_VERSION "6.2.2504")
|
|
2
2
|
find_package(Netgen CONFIG REQUIRED HINTS
|
|
3
3
|
${CMAKE_CURRENT_LIST_DIR}
|
|
4
4
|
${CMAKE_CURRENT_LIST_DIR}/..
|
|
@@ -23,15 +23,15 @@ set(NGSOLVE_PYBIND_INCLUDE_DIR "")
|
|
|
23
23
|
set(NGSOLVE_PYTHON_INCLUDE_DIRS "/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12")
|
|
24
24
|
set(NGSOLVE_PYTHON_LIBRARIES "/Library/Frameworks/Python.framework/Versions/3.12/lib/libpython3.12.dylib")
|
|
25
25
|
set(NGSOLVE_PYTHON_PACKAGES_INSTALL_DIR "")
|
|
26
|
-
set(NGSOLVE_TCL_INCLUDE_PATH "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/
|
|
26
|
+
set(NGSOLVE_TCL_INCLUDE_PATH "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/netgen/_skbuild/macosx-10.15-universal2-3.12/cmake-build/dependencies/src/project_tcl/generic")
|
|
27
27
|
set(NGSOLVE_TCL_LIBRARY "/Library/Frameworks/Python.framework/Versions/3.12/lib/libtclstub8.6.a")
|
|
28
28
|
set(NGSOLVE_TK_DND_LIBRARY "")
|
|
29
|
-
set(NGSOLVE_TK_INCLUDE_PATH "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/
|
|
29
|
+
set(NGSOLVE_TK_INCLUDE_PATH "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/netgen/_skbuild/macosx-10.15-universal2-3.12/cmake-build/dependencies/src/project_tk/generic")
|
|
30
30
|
set(NGSOLVE_TK_LIBRARY "/Library/Frameworks/Python.framework/Versions/3.12/lib/libtkstub8.6.a")
|
|
31
31
|
set(NGSOLVE_X11_X11_LIB "")
|
|
32
32
|
set(NGSOLVE_X11_Xmu_LIB "")
|
|
33
|
-
set(NGSOLVE_ZLIB_INCLUDE_DIRS "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/
|
|
34
|
-
set(NGSOLVE_ZLIB_LIBRARIES "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/
|
|
33
|
+
set(NGSOLVE_ZLIB_INCLUDE_DIRS "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/netgen/_skbuild/macosx-10.15-universal2-3.12/cmake-build/dependencies/zlib/include")
|
|
34
|
+
set(NGSOLVE_ZLIB_LIBRARIES "/Users/gitlab-runner/builds/builds/rL7WHzyj/0/ngsolve/netgen/_skbuild/macosx-10.15-universal2-3.12/cmake-build/dependencies/zlib/lib/libz.a")
|
|
35
35
|
|
|
36
36
|
set(NGSOLVE_INTEL_MIC OFF)
|
|
37
37
|
set(NGSOLVE_USE_CCACHE ON)
|
|
@@ -45,6 +45,16 @@ set_target_properties(ngfem PROPERTIES
|
|
|
45
45
|
list(APPEND _cmake_import_check_targets ngfem )
|
|
46
46
|
list(APPEND _cmake_import_check_files_for_ngfem "${_IMPORT_PREFIX}/netgen/libngfem.dylib" )
|
|
47
47
|
|
|
48
|
+
# Import target "ngsbem" for configuration "Release"
|
|
49
|
+
set_property(TARGET ngsbem APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
50
|
+
set_target_properties(ngsbem PROPERTIES
|
|
51
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/netgen/libngsbem.dylib"
|
|
52
|
+
IMPORTED_SONAME_RELEASE "@rpath/libngsbem.dylib"
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
list(APPEND _cmake_import_check_targets ngsbem )
|
|
56
|
+
list(APPEND _cmake_import_check_files_for_ngsbem "${_IMPORT_PREFIX}/netgen/libngsbem.dylib" )
|
|
57
|
+
|
|
48
58
|
# Import target "ngcomp" for configuration "Release"
|
|
49
59
|
set_property(TARGET ngcomp APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
50
60
|
set_target_properties(ngcomp PROPERTIES
|
|
@@ -19,7 +19,7 @@ set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
|
19
19
|
set(_cmake_targets_defined "")
|
|
20
20
|
set(_cmake_targets_not_defined "")
|
|
21
21
|
set(_cmake_expected_targets "")
|
|
22
|
-
foreach(_cmake_expected_target IN ITEMS netgen_libs ngs_lapack netgen_python ngstd ngbla ngla ngfem ngcomp ngsolve)
|
|
22
|
+
foreach(_cmake_expected_target IN ITEMS netgen_libs ngs_lapack netgen_python ngstd ngbla ngla ngfem ngsbem ngcomp ngsolve)
|
|
23
23
|
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
|
24
24
|
if(TARGET "${_cmake_expected_target}")
|
|
25
25
|
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
|
@@ -105,6 +105,13 @@ set_target_properties(ngfem PROPERTIES
|
|
|
105
105
|
INTERFACE_LINK_LIBRARIES "ngbla;ngstd"
|
|
106
106
|
)
|
|
107
107
|
|
|
108
|
+
# Create imported target ngsbem
|
|
109
|
+
add_library(ngsbem SHARED IMPORTED)
|
|
110
|
+
|
|
111
|
+
set_target_properties(ngsbem PROPERTIES
|
|
112
|
+
INTERFACE_LINK_LIBRARIES "ngcomp;ngfem;ngla;ngbla;ngstd"
|
|
113
|
+
)
|
|
114
|
+
|
|
108
115
|
# Create imported target ngcomp
|
|
109
116
|
add_library(ngcomp SHARED IMPORTED)
|
|
110
117
|
|
|
@@ -116,7 +123,7 @@ set_target_properties(ngcomp PROPERTIES
|
|
|
116
123
|
add_library(ngsolve SHARED IMPORTED)
|
|
117
124
|
|
|
118
125
|
set_target_properties(ngsolve PROPERTIES
|
|
119
|
-
INTERFACE_LINK_LIBRARIES "netgen_libs;ngsolve;ngcomp;ngfem;ngbla;ngla;ngstd"
|
|
126
|
+
INTERFACE_LINK_LIBRARIES "netgen_libs;ngsolve;ngcomp;ngfem;ngsbem;ngbla;ngla;ngstd"
|
|
120
127
|
)
|
|
121
128
|
|
|
122
129
|
# Load information for each installed configuration.
|
ngsolve/comp/__init__.pyi
CHANGED
|
@@ -7,6 +7,7 @@ import ngsolve.bla
|
|
|
7
7
|
import ngsolve.fem
|
|
8
8
|
import ngsolve.la
|
|
9
9
|
import ngsolve.ngstd
|
|
10
|
+
import ngsolve.solve_implementation
|
|
10
11
|
import numpy
|
|
11
12
|
import pyngcore.pyngcore
|
|
12
13
|
import typing
|
|
@@ -230,6 +231,10 @@ class BilinearForm(NGS_Object):
|
|
|
230
231
|
...
|
|
231
232
|
def UnsetPreconditioner(self, arg0: ...) -> None:
|
|
232
233
|
...
|
|
234
|
+
@typing.overload
|
|
235
|
+
def __call__(self, gfu: GridFunction) -> typing.Any:
|
|
236
|
+
...
|
|
237
|
+
@typing.overload
|
|
233
238
|
def __call__(self, gfu: GridFunction, gfv: GridFunction) -> float:
|
|
234
239
|
...
|
|
235
240
|
@typing.overload
|
|
@@ -250,6 +255,8 @@ class BilinearForm(NGS_Object):
|
|
|
250
255
|
@typing.overload
|
|
251
256
|
def __init__(self, arg0: SumOfIntegrals, **kwargs) -> None:
|
|
252
257
|
...
|
|
258
|
+
def __mul__(self, gfu: GridFunction) -> ngsolve.solve_implementation.LinearApplication:
|
|
259
|
+
...
|
|
253
260
|
def __str__(self) -> str:
|
|
254
261
|
...
|
|
255
262
|
@property
|
|
@@ -938,7 +945,7 @@ class FESpace(NGS_Object):
|
|
|
938
945
|
region : ngsolve.comp.Region
|
|
939
946
|
input region
|
|
940
947
|
"""
|
|
941
|
-
def SetHarmonicProlongation(self,
|
|
948
|
+
def SetHarmonicProlongation(self, bf: ..., inverse: str = 'sparsecholesky') -> None:
|
|
942
949
|
"""
|
|
943
950
|
use harmonic prolongation w.r.t. bilinear-form
|
|
944
951
|
"""
|
|
@@ -3107,6 +3114,10 @@ class MultiGridPreconditioner(Preconditioner):
|
|
|
3107
3114
|
'block': Block smoother
|
|
3108
3115
|
coarsetype: string = direct
|
|
3109
3116
|
How to solve coarse problem.
|
|
3117
|
+
cycle: int = 1
|
|
3118
|
+
multigrid cycle (0 only smoothing, 1..V-cycle, 2..W-cycle.
|
|
3119
|
+
smoothingsteps: int = 1
|
|
3120
|
+
number of (pre and post-)smoothing steps
|
|
3110
3121
|
coarsesmoothingsteps: int = 1
|
|
3111
3122
|
If coarsetype is smoothing, then how many smoothingsteps will be done.
|
|
3112
3123
|
updatealways: bool = False
|
ngsolve/config/__init__.pyi
CHANGED
|
@@ -24,13 +24,13 @@ NGSOLVE_INSTALL_DIR_INCLUDE: str = 'netgen/include'
|
|
|
24
24
|
NGSOLVE_INSTALL_DIR_LIB: str = 'netgen'
|
|
25
25
|
NGSOLVE_INSTALL_DIR_PYTHON: str = '.'
|
|
26
26
|
NGSOLVE_INSTALL_DIR_RES: str = 'share'
|
|
27
|
-
NGSOLVE_VERSION: str = '6.2.
|
|
28
|
-
NGSOLVE_VERSION_GIT: str = 'v6.2.
|
|
29
|
-
NGSOLVE_VERSION_HASH: str = '
|
|
27
|
+
NGSOLVE_VERSION: str = '6.2.2504'
|
|
28
|
+
NGSOLVE_VERSION_GIT: str = 'v6.2.2504-0-g7dd7ba8dd'
|
|
29
|
+
NGSOLVE_VERSION_HASH: str = 'g7dd7ba8dd'
|
|
30
30
|
NGSOLVE_VERSION_MAJOR: str = '6'
|
|
31
31
|
NGSOLVE_VERSION_MINOR: str = '2'
|
|
32
|
-
NGSOLVE_VERSION_PATCH: str = '
|
|
33
|
-
NGSOLVE_VERSION_PYTHON: str = '6.2.
|
|
32
|
+
NGSOLVE_VERSION_PATCH: str = '2504'
|
|
33
|
+
NGSOLVE_VERSION_PYTHON: str = '6.2.2504'
|
|
34
34
|
NGSOLVE_VERSION_TWEAK: str = '0'
|
|
35
35
|
USE_CCACHE: bool = True
|
|
36
36
|
USE_HYPRE: bool = False
|
|
@@ -40,4 +40,4 @@ USE_MUMPS: bool = False
|
|
|
40
40
|
USE_PARDISO: bool = False
|
|
41
41
|
USE_UMFPACK: bool = True
|
|
42
42
|
is_python_package: bool = True
|
|
43
|
-
version: str = 'v6.2.
|
|
43
|
+
version: str = 'v6.2.2504-0-g7dd7ba8dd'
|
ngsolve/config/config.py
CHANGED
|
@@ -29,15 +29,15 @@ NGSOLVE_INSTALL_DIR_INCLUDE = "netgen/include"
|
|
|
29
29
|
NGSOLVE_INSTALL_DIR_CMAKE = "ngsolve/cmake"
|
|
30
30
|
NGSOLVE_INSTALL_DIR_RES = "share"
|
|
31
31
|
|
|
32
|
-
NGSOLVE_VERSION = "6.2.
|
|
33
|
-
NGSOLVE_VERSION_GIT = "v6.2.
|
|
34
|
-
NGSOLVE_VERSION_PYTHON = "6.2.
|
|
32
|
+
NGSOLVE_VERSION = "6.2.2504"
|
|
33
|
+
NGSOLVE_VERSION_GIT = "v6.2.2504-0-g7dd7ba8dd"
|
|
34
|
+
NGSOLVE_VERSION_PYTHON = "6.2.2504"
|
|
35
35
|
|
|
36
36
|
NGSOLVE_VERSION_MAJOR = "6"
|
|
37
37
|
NGSOLVE_VERSION_MINOR = "2"
|
|
38
38
|
NGSOLVE_VERSION_TWEAK = "0"
|
|
39
|
-
NGSOLVE_VERSION_PATCH = "
|
|
40
|
-
NGSOLVE_VERSION_HASH = "
|
|
39
|
+
NGSOLVE_VERSION_PATCH = "2504"
|
|
40
|
+
NGSOLVE_VERSION_HASH = "g7dd7ba8dd"
|
|
41
41
|
|
|
42
42
|
CMAKE_CXX_COMPILER = "/Library/Developer/CommandLineTools/usr/bin/c++"
|
|
43
43
|
CMAKE_CUDA_COMPILER = ""
|
ngsolve/config/config.pyi
CHANGED
|
@@ -26,13 +26,13 @@ NGSOLVE_INSTALL_DIR_INCLUDE: str = 'netgen/include'
|
|
|
26
26
|
NGSOLVE_INSTALL_DIR_LIB: str = 'netgen'
|
|
27
27
|
NGSOLVE_INSTALL_DIR_PYTHON: str = '.'
|
|
28
28
|
NGSOLVE_INSTALL_DIR_RES: str = 'share'
|
|
29
|
-
NGSOLVE_VERSION: str = '6.2.
|
|
30
|
-
NGSOLVE_VERSION_GIT: str = 'v6.2.
|
|
31
|
-
NGSOLVE_VERSION_HASH: str = '
|
|
29
|
+
NGSOLVE_VERSION: str = '6.2.2504'
|
|
30
|
+
NGSOLVE_VERSION_GIT: str = 'v6.2.2504-0-g7dd7ba8dd'
|
|
31
|
+
NGSOLVE_VERSION_HASH: str = 'g7dd7ba8dd'
|
|
32
32
|
NGSOLVE_VERSION_MAJOR: str = '6'
|
|
33
33
|
NGSOLVE_VERSION_MINOR: str = '2'
|
|
34
|
-
NGSOLVE_VERSION_PATCH: str = '
|
|
35
|
-
NGSOLVE_VERSION_PYTHON: str = '6.2.
|
|
34
|
+
NGSOLVE_VERSION_PATCH: str = '2504'
|
|
35
|
+
NGSOLVE_VERSION_PYTHON: str = '6.2.2504'
|
|
36
36
|
NGSOLVE_VERSION_TWEAK: str = '0'
|
|
37
37
|
USE_CCACHE: bool = True
|
|
38
38
|
USE_HYPRE: bool = False
|
|
@@ -42,4 +42,4 @@ USE_MUMPS: bool = False
|
|
|
42
42
|
USE_PARDISO: bool = False
|
|
43
43
|
USE_UMFPACK: bool = True
|
|
44
44
|
is_python_package: bool = True
|
|
45
|
-
version: str = 'v6.2.
|
|
45
|
+
version: str = 'v6.2.2504-0-g7dd7ba8dd'
|
ngsolve/fem.pyi
CHANGED
|
@@ -8,7 +8,7 @@ import numpy
|
|
|
8
8
|
import os
|
|
9
9
|
import pyngcore.pyngcore
|
|
10
10
|
import typing
|
|
11
|
-
__all__ = ['BFI', 'BSpline', 'BSpline2D', 'BaseMappedIntegrationPoint', '
|
|
11
|
+
__all__ = ['BFI', 'BSpline', 'BSpline2D', 'BaseMappedIntegrationPoint', 'BlockBFI', 'BlockLFI', 'CELL', 'CacheCF', 'CoefficientFunction', 'Cof', 'CompilePythonModule', 'CompoundBFI', 'CompoundLFI', 'Conj', 'CoordCF', 'CoordinateTrafo', 'Cross', 'Det', 'DifferentialOperator', 'EDGE', 'ELEMENT', 'ET', 'Einsum', 'ElementTopology', 'ElementTransformation', 'FACE', 'FACET', 'FiniteElement', 'GenerateL2ElementCode', 'H1FE', 'HCurlFE', 'HDivDivFE', 'HDivFE', 'HEX', 'Id', 'IfPos', 'IntegrationPoint', 'IntegrationRule', 'Inv', 'L2FE', 'LFI', 'LeviCivitaSymbol', 'LoggingCF', 'MeshPoint', 'MinimizationCF', 'MixedFE', 'NODE_TYPE', 'NewtonCF', 'POINT', 'PRISM', 'PYRAMID', 'Parameter', 'ParameterC', 'PlaceholderCF', 'PointEvaluationFunctional', 'QUAD', 'SEGM', 'ScalarFE', 'SetPMLParameters', 'Skew', 'SpecialCFCreator', 'Sym', 'TET', 'TRIG', 'Trace', 'VERTEX', 'VoxelCoefficient', 'Zero', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'cosh', 'erf', 'exp', 'floor', 'log', 'pow', 'sin', 'sinh', 'specialcf', 'sqrt', 'tan']
|
|
12
12
|
class BFI:
|
|
13
13
|
"""
|
|
14
14
|
|
|
@@ -242,23 +242,6 @@ class BaseMappedIntegrationPoint:
|
|
|
242
242
|
"""
|
|
243
243
|
Transformation of the mapped integration point
|
|
244
244
|
"""
|
|
245
|
-
class BiotSavartCF(CoefficientFunction):
|
|
246
|
-
def AddCurrent(self, sp: ngsolve.bla.Vec3D, ep: ngsolve.bla.Vec3D, j: complex, num: int = 100) -> None:
|
|
247
|
-
...
|
|
248
|
-
def __init__(self, order: int, kappa: float, center: ngsolve.bla.Vec3D, scale: float = 1.0) -> None:
|
|
249
|
-
...
|
|
250
|
-
class BiotSavartRegularMLCF(CoefficientFunction):
|
|
251
|
-
def __init__(self, mp: BiotSavartSingularMLCF, center: ngsolve.bla.Vec3D, r: float, order: int = -1) -> None:
|
|
252
|
-
...
|
|
253
|
-
@property
|
|
254
|
-
def mlmp(self) -> ...:
|
|
255
|
-
...
|
|
256
|
-
class BiotSavartSingularMLCF(CoefficientFunction):
|
|
257
|
-
def __init__(self, center: ngsolve.bla.Vec3D, r: float, order: int = -1, kappa: float) -> None:
|
|
258
|
-
...
|
|
259
|
-
@property
|
|
260
|
-
def mlmp(self) -> SingularMLMP3:
|
|
261
|
-
...
|
|
262
245
|
class CoefficientFunction:
|
|
263
246
|
"""
|
|
264
247
|
A CoefficientFunction (CF) is some function defined on a mesh.
|
|
@@ -420,6 +403,12 @@ class CoefficientFunction:
|
|
|
420
403
|
def __neg__(self) -> CoefficientFunction:
|
|
421
404
|
...
|
|
422
405
|
@typing.overload
|
|
406
|
+
def __or__(self, cf: CoefficientFunction) -> CoefficientFunction:
|
|
407
|
+
...
|
|
408
|
+
@typing.overload
|
|
409
|
+
def __or__(self, cf: ...) -> None:
|
|
410
|
+
...
|
|
411
|
+
@typing.overload
|
|
423
412
|
def __pow__(self, exponent: int) -> CoefficientFunction:
|
|
424
413
|
...
|
|
425
414
|
@typing.overload
|
|
@@ -993,31 +982,6 @@ class PlaceholderCF(CoefficientFunction):
|
|
|
993
982
|
class PointEvaluationFunctional:
|
|
994
983
|
def Assemble(self) -> ngsolve.bla.SparseVector:
|
|
995
984
|
...
|
|
996
|
-
class RegularMLMP:
|
|
997
|
-
def Norm(self) -> float:
|
|
998
|
-
...
|
|
999
|
-
def Print(self) -> None:
|
|
1000
|
-
...
|
|
1001
|
-
def __str__(self) -> str:
|
|
1002
|
-
...
|
|
1003
|
-
class RegularMLMultiPoleCF(CoefficientFunction):
|
|
1004
|
-
def __init__(self, mp: SingularMLMultiPoleCF, center: ngsolve.bla.Vec3D, r: float, order: int = -1) -> None:
|
|
1005
|
-
...
|
|
1006
|
-
@property
|
|
1007
|
-
def mlmp(self) -> RegularMLMP:
|
|
1008
|
-
...
|
|
1009
|
-
class RegularMultiPoleCF(CoefficientFunction):
|
|
1010
|
-
def ShiftZ(self, arg0: float, arg1: RegularMultiPoleCF) -> None:
|
|
1011
|
-
...
|
|
1012
|
-
def Spectrum(self, scaled: bool) -> ngsolve.bla.VectorD:
|
|
1013
|
-
...
|
|
1014
|
-
def Transform(self, arg0: RegularMultiPoleCF) -> None:
|
|
1015
|
-
...
|
|
1016
|
-
def __init__(self, order: int, kappa: float, center: ngsolve.bla.Vec3D, scale: float = 1.0) -> None:
|
|
1017
|
-
...
|
|
1018
|
-
@property
|
|
1019
|
-
def sh(self) -> Sphericalharmonics:
|
|
1020
|
-
...
|
|
1021
985
|
class ScalarFE(FiniteElement):
|
|
1022
986
|
"""
|
|
1023
987
|
a scalar-valued finite element
|
|
@@ -1070,58 +1034,6 @@ class ScalarFE(FiniteElement):
|
|
|
1070
1034
|
mip : ngsolve.BaseMappedIntegrationPoint
|
|
1071
1035
|
input mapped integration point
|
|
1072
1036
|
"""
|
|
1073
|
-
class SingularMLMP:
|
|
1074
|
-
def AddCharge(self, arg0: ngsolve.bla.Vec3D, arg1: complex) -> None:
|
|
1075
|
-
...
|
|
1076
|
-
def AddDipole(self, arg0: ngsolve.bla.Vec3D, arg1: ngsolve.bla.Vec3D, arg2: complex) -> None:
|
|
1077
|
-
...
|
|
1078
|
-
def Calc(self) -> None:
|
|
1079
|
-
...
|
|
1080
|
-
def Norm(self) -> float:
|
|
1081
|
-
...
|
|
1082
|
-
def Print(self) -> None:
|
|
1083
|
-
...
|
|
1084
|
-
def __init__(self, arg0: ngsolve.bla.Vec3D, arg1: float, arg2: int, arg3: float) -> None:
|
|
1085
|
-
...
|
|
1086
|
-
def __str__(self) -> str:
|
|
1087
|
-
...
|
|
1088
|
-
class SingularMLMP3:
|
|
1089
|
-
def AddCurrent(self, sp: ngsolve.bla.Vec3D, ep: ngsolve.bla.Vec3D, j: complex, num: int = 100) -> None:
|
|
1090
|
-
...
|
|
1091
|
-
def Calc(self) -> None:
|
|
1092
|
-
...
|
|
1093
|
-
def __init__(self, arg0: ngsolve.bla.Vec3D, arg1: float, arg2: int, arg3: float) -> None:
|
|
1094
|
-
...
|
|
1095
|
-
class SingularMLMultiPoleCF(CoefficientFunction):
|
|
1096
|
-
def __init__(self, center: ngsolve.bla.Vec3D, r: float, order: int = -1, kappa: float) -> None:
|
|
1097
|
-
...
|
|
1098
|
-
@property
|
|
1099
|
-
def mlmp(self) -> SingularMLMP:
|
|
1100
|
-
...
|
|
1101
|
-
class SingularMultiPoleCF(CoefficientFunction):
|
|
1102
|
-
def AddCharge(self, arg0: ngsolve.bla.Vec3D, arg1: complex) -> None:
|
|
1103
|
-
...
|
|
1104
|
-
def AddDipole(self, arg0: ngsolve.bla.Vec3D, arg1: ngsolve.bla.Vec3D, arg2: complex) -> None:
|
|
1105
|
-
...
|
|
1106
|
-
@typing.overload
|
|
1107
|
-
def ShiftZ(self, arg0: float, arg1: RegularMultiPoleCF) -> None:
|
|
1108
|
-
...
|
|
1109
|
-
@typing.overload
|
|
1110
|
-
def ShiftZ(self, arg0: float, arg1: SingularMultiPoleCF) -> None:
|
|
1111
|
-
...
|
|
1112
|
-
def Spectrum(self, scaled: bool) -> ngsolve.bla.VectorD:
|
|
1113
|
-
...
|
|
1114
|
-
@typing.overload
|
|
1115
|
-
def Transform(self, arg0: RegularMultiPoleCF) -> None:
|
|
1116
|
-
...
|
|
1117
|
-
@typing.overload
|
|
1118
|
-
def Transform(self, arg0: SingularMultiPoleCF) -> None:
|
|
1119
|
-
...
|
|
1120
|
-
def __init__(self, order: int, kappa: float, center: ngsolve.bla.Vec3D, scale: float = 1.0) -> None:
|
|
1121
|
-
...
|
|
1122
|
-
@property
|
|
1123
|
-
def sh(self) -> Sphericalharmonics:
|
|
1124
|
-
...
|
|
1125
1037
|
class SpecialCFCreator:
|
|
1126
1038
|
def EdgeCurvature(self, dim: int) -> ...:
|
|
1127
1039
|
"""
|
|
@@ -1184,29 +1096,6 @@ class SpecialCFCreator:
|
|
|
1184
1096
|
"""
|
|
1185
1097
|
local mesh-size (approximate element diameter) as CF
|
|
1186
1098
|
"""
|
|
1187
|
-
class SphericalHarmonicsCF(CoefficientFunction):
|
|
1188
|
-
def __init__(self, arg0: int) -> None:
|
|
1189
|
-
...
|
|
1190
|
-
@property
|
|
1191
|
-
def sh(self) -> Sphericalharmonics:
|
|
1192
|
-
...
|
|
1193
|
-
class Sphericalharmonics:
|
|
1194
|
-
def RotateY(self, arg0: float) -> None:
|
|
1195
|
-
...
|
|
1196
|
-
def RotateZ(self, arg0: float) -> None:
|
|
1197
|
-
...
|
|
1198
|
-
def __getitem__(self, arg0: tuple[int, int]) -> complex:
|
|
1199
|
-
...
|
|
1200
|
-
def __setitem__(self, arg0: tuple[int, int], arg1: complex) -> None:
|
|
1201
|
-
...
|
|
1202
|
-
@property
|
|
1203
|
-
def coefs(self) -> ngsolve.bla.FlatVectorC:
|
|
1204
|
-
"""
|
|
1205
|
-
coefficient vector
|
|
1206
|
-
"""
|
|
1207
|
-
@property
|
|
1208
|
-
def order(self) -> int:
|
|
1209
|
-
...
|
|
1210
1099
|
def BlockBFI(bfi: BFI = 0, dim: int = 2, comp: int = 0) -> ...:
|
|
1211
1100
|
"""
|
|
1212
1101
|
Block Bilinear Form Integrator
|
ngsolve/ngslib.so
CHANGED
|
Binary file
|