ngsolve 6.2.2505.post105.dev0__cp313-cp313-macosx_10_15_universal2.whl → 6.2.2506.post33.dev0__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.
- netgen/include/analytic_integrals.hpp +10 -0
- netgen/include/bdbequations.hpp +20 -0
- netgen/include/bem_diffops.hpp +475 -0
- netgen/include/bspline.hpp +2 -0
- netgen/include/contact.hpp +4 -0
- netgen/include/h1lumping.hpp +6 -0
- netgen/include/hcurl_equations.hpp +29 -0
- netgen/include/hdivfe_utils.hpp +1 -0
- netgen/include/kernels.hpp +654 -0
- netgen/include/mp_coefficient.hpp +20 -20
- netgen/include/mptools.hpp +268 -123
- netgen/include/potentialtools.hpp +2 -2
- netgen/include/thdivfe_impl.hpp +66 -0
- 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__.pyi +2 -2
- ngsolve/cmake/NGSolveConfig.cmake +1 -1
- ngsolve/config/__init__.pyi +7 -7
- ngsolve/config/config.py +6 -6
- ngsolve/config/config.pyi +7 -7
- ngsolve/demos/intro/cmagnet.py +19 -22
- ngsolve/directsolvers.pyi +1 -1
- ngsolve/krylovspace.pyi +3 -3
- ngsolve/nonlinearsolvers.pyi +1 -1
- ngsolve/solve.pyi +1 -1
- ngsolve/solve_implementation.py +4 -0
- ngsolve/solve_implementation.pyi +3 -3
- ngsolve/timestepping.pyi +3 -3
- ngsolve/timing.pyi +1 -1
- ngsolve/utils.pyi +1 -1
- {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/METADATA +2 -2
- {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/RECORD +73 -70
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/Netgen.icns +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngscxx +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngsld +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngsolve.tcl +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngspy +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/beam.geo +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/beam.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/chip.in2d +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/chip.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coil.geo +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coil.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coilshield.geo +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coilshield.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/cube.geo +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/cube.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d11_chip_nitsche.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d1_square.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d2_chip.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d3_helmholtz.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d4_cube.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d5_beam.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d6_shaft.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d7_coil.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d8_coilshield.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d9_hybridDG.pde +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/doubleglazing.in2d +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/doubleglazing.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/shaft.geo +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/shaft.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/square.in2d +0 -0
- {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/square.vol +0 -0
- {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/LICENSE +0 -0
- {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/WHEEL +0 -0
- {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/top_level.txt +0 -0
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
namespace ngsbem
|
|
14
14
|
{
|
|
15
15
|
|
|
16
|
-
extern void AddChargeDensity (
|
|
16
|
+
extern void AddChargeDensity (SingularMLExpansion<Complex> & mp, shared_ptr<CoefficientFunction> current, ngcomp::Region reg);
|
|
17
17
|
|
|
18
|
-
extern void AddCurrentDensity (
|
|
18
|
+
extern void AddCurrentDensity (SingularMLExpansion<Vec<3,Complex>> & mp, shared_ptr<CoefficientFunction> current, ngcomp::Region reg);
|
|
19
19
|
|
|
20
20
|
}
|
|
21
21
|
|
netgen/include/thdivfe_impl.hpp
CHANGED
|
@@ -235,6 +235,7 @@ namespace ngfem
|
|
|
235
235
|
CalcMappedDivShape (const SIMD_BaseMappedIntegrationRule & bmir,
|
|
236
236
|
BareSliceMatrix<SIMD<double>> divshapes) const
|
|
237
237
|
{
|
|
238
|
+
/*
|
|
238
239
|
auto & mir = static_cast<const SIMD_MappedIntegrationRule<DIM,DIM>&> (bmir);
|
|
239
240
|
for (size_t i = 0; i < mir.Size(); i++)
|
|
240
241
|
{
|
|
@@ -246,6 +247,29 @@ namespace ngfem
|
|
|
246
247
|
divshapesi(j) = val;
|
|
247
248
|
}));
|
|
248
249
|
}
|
|
250
|
+
*/
|
|
251
|
+
Iterate<4-DIM>
|
|
252
|
+
([this,&bmir,divshapes](auto CODIM)
|
|
253
|
+
{
|
|
254
|
+
constexpr int DIMSPACE = DIM+CODIM.value;
|
|
255
|
+
if (bmir.DimSpace() == DIMSPACE)
|
|
256
|
+
{
|
|
257
|
+
// cout << "use new div, dim " << DIMSPACE << endl;
|
|
258
|
+
auto & mir = static_cast<const SIMD_MappedIntegrationRule<DIM,DIMSPACE>&> (bmir);
|
|
259
|
+
for (size_t i = 0; i < mir.Size(); i++)
|
|
260
|
+
{
|
|
261
|
+
auto divshapesi = divshapes.Col(i);
|
|
262
|
+
auto invJ = 1.0/mir[i].GetJacobiDet();
|
|
263
|
+
static_cast<const FEL*> (this) ->
|
|
264
|
+
T_CalcShape (GetTIPGrad<DIM>(mir[i].IP()),
|
|
265
|
+
SBLambda ([divshapesi,invJ] (size_t j, THDiv2DivShape<DIM,SIMD<double>> val)
|
|
266
|
+
{
|
|
267
|
+
divshapesi(j) = invJ*val;
|
|
268
|
+
}));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
|
|
249
273
|
}
|
|
250
274
|
|
|
251
275
|
template <class FEL, ELEMENT_TYPE ET>
|
|
@@ -384,6 +408,8 @@ namespace ngfem
|
|
|
384
408
|
EvaluateDiv (const SIMD_BaseMappedIntegrationRule & bmir, BareSliceVector<> coefs,
|
|
385
409
|
BareVector<SIMD<double>> values) const
|
|
386
410
|
{
|
|
411
|
+
/*
|
|
412
|
+
cout << "evaldiv, simd" << endl
|
|
387
413
|
auto & mir = static_cast<const SIMD_MappedIntegrationRule<DIM,DIM>&> (bmir);
|
|
388
414
|
for (size_t i = 0; i < mir.Size(); i++)
|
|
389
415
|
{
|
|
@@ -399,6 +425,46 @@ namespace ngfem
|
|
|
399
425
|
}));
|
|
400
426
|
values(i) = sum;
|
|
401
427
|
}
|
|
428
|
+
*/
|
|
429
|
+
|
|
430
|
+
/*
|
|
431
|
+
Iterate<4-DIM>
|
|
432
|
+
([this,&bmir,coefs,values](auto CODIM)
|
|
433
|
+
{
|
|
434
|
+
constexpr int DIMSPACE = DIM+CODIM.value;
|
|
435
|
+
if (bmir.DimSpace() == DIMSPACE)
|
|
436
|
+
{
|
|
437
|
+
auto & mir = static_cast<const SIMD_MappedIntegrationRule<DIM,DIMSPACE>&> (bmir);
|
|
438
|
+
for (size_t i = 0; i < mir.Size(); i++)
|
|
439
|
+
{
|
|
440
|
+
SIMD<double> sum(0.0);
|
|
441
|
+
static_cast<const FEL*> (this) ->
|
|
442
|
+
T_CalcShape (GetTIPGrad<DIM>(mir[i].IP()),
|
|
443
|
+
SBLambda ([=,&sum] (size_t j, THDiv2DivShape<DIM,SIMD<double>> divshape)
|
|
444
|
+
{
|
|
445
|
+
// auto vshape = HDiv2DivShapeNew (s);
|
|
446
|
+
// shapesi.Range(j*vshape.Size(), (j+1)*vshape.Size()) = vshape;
|
|
447
|
+
// divshapesi(j) = HDiv2DivShapeNew (s);
|
|
448
|
+
sum += coefs(j) * divshape.Get();
|
|
449
|
+
}));
|
|
450
|
+
values(i) = 1/mir[i].GetJacobiDet() * sum;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
*/
|
|
455
|
+
|
|
456
|
+
auto & mir = bmir;
|
|
457
|
+
for (size_t i = 0; i < mir.Size(); i++)
|
|
458
|
+
{
|
|
459
|
+
SIMD<double> sum(0.0);
|
|
460
|
+
static_cast<const FEL*> (this) ->
|
|
461
|
+
T_CalcShape (GetTIPGrad<DIM>(mir[i].IP()),
|
|
462
|
+
SBLambda ([=,&sum] (size_t j, THDiv2DivShape<DIM,SIMD<double>> divshape)
|
|
463
|
+
{
|
|
464
|
+
sum += coefs(j) * divshape.Get();
|
|
465
|
+
}));
|
|
466
|
+
values(i) = 1/mir[i].GetJacobiDet() * sum;
|
|
467
|
+
}
|
|
402
468
|
}
|
|
403
469
|
|
|
404
470
|
template <class FEL, ELEMENT_TYPE ET>
|
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
CHANGED
|
Binary file
|
netgen/libngsolve.dylib
CHANGED
|
Binary file
|
netgen/libngstd.dylib
CHANGED
|
Binary file
|
ngsolve/__init__.pyi
CHANGED
|
@@ -44,8 +44,8 @@ from ngsolve.comp import HDiv
|
|
|
44
44
|
from ngsolve.comp import HDivDiv
|
|
45
45
|
from ngsolve.comp import HDivDivSurface
|
|
46
46
|
from ngsolve.comp import HDivSurface
|
|
47
|
-
from ngsolve.comp import Hidden
|
|
48
47
|
from ngsolve.comp import Hidden as PrivateSpace
|
|
48
|
+
from ngsolve.comp import Hidden
|
|
49
49
|
from ngsolve.comp import Integrate
|
|
50
50
|
from ngsolve.comp import Interpolate
|
|
51
51
|
from ngsolve.comp import L2
|
|
@@ -219,7 +219,7 @@ TET: fem.ET # value = <ET.TET: 20>
|
|
|
219
219
|
TRIG: fem.ET # value = <ET.TRIG: 10>
|
|
220
220
|
VERTEX: fem.NODE_TYPE # value = <NODE_TYPE.VERTEX: 0>
|
|
221
221
|
VOL: comp.VorB # value = <VorB.VOL: 0>
|
|
222
|
-
__version__: str = '6.2.
|
|
222
|
+
__version__: str = '6.2.2506-33-g6156da6de'
|
|
223
223
|
ds: comp.DifferentialSymbol # value = <ngsolve.comp.DifferentialSymbol object>
|
|
224
224
|
dx: comp.DifferentialSymbol # value = <ngsolve.comp.DifferentialSymbol object>
|
|
225
225
|
ngsglobals: comp.GlobalVariables # value = <ngsolve.comp.GlobalVariables object>
|
ngsolve/config/__init__.pyi
CHANGED
|
@@ -24,14 +24,14 @@ 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.2506-33-g6156da6de'
|
|
28
|
+
NGSOLVE_VERSION_GIT: str = 'v6.2.2506-33-g6156da6de'
|
|
29
|
+
NGSOLVE_VERSION_HASH: str = 'g6156da6de'
|
|
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.
|
|
34
|
-
NGSOLVE_VERSION_TWEAK: str = '
|
|
32
|
+
NGSOLVE_VERSION_PATCH: str = '2506'
|
|
33
|
+
NGSOLVE_VERSION_PYTHON: str = '6.2.2506.post33.dev0'
|
|
34
|
+
NGSOLVE_VERSION_TWEAK: str = '33'
|
|
35
35
|
USE_CCACHE: bool = True
|
|
36
36
|
USE_HYPRE: bool = False
|
|
37
37
|
USE_LAPACK: bool = True
|
|
@@ -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.2506-33-g6156da6de'
|
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.2506-33-g6156da6de"
|
|
33
|
+
NGSOLVE_VERSION_GIT = "v6.2.2506-33-g6156da6de"
|
|
34
|
+
NGSOLVE_VERSION_PYTHON = "6.2.2506.post33.dev0"
|
|
35
35
|
|
|
36
36
|
NGSOLVE_VERSION_MAJOR = "6"
|
|
37
37
|
NGSOLVE_VERSION_MINOR = "2"
|
|
38
|
-
NGSOLVE_VERSION_TWEAK = "
|
|
39
|
-
NGSOLVE_VERSION_PATCH = "
|
|
40
|
-
NGSOLVE_VERSION_HASH = "
|
|
38
|
+
NGSOLVE_VERSION_TWEAK = "33"
|
|
39
|
+
NGSOLVE_VERSION_PATCH = "2506"
|
|
40
|
+
NGSOLVE_VERSION_HASH = "g6156da6de"
|
|
41
41
|
|
|
42
42
|
CMAKE_CXX_COMPILER = "/Library/Developer/CommandLineTools/usr/bin/c++"
|
|
43
43
|
CMAKE_CUDA_COMPILER = ""
|
ngsolve/config/config.pyi
CHANGED
|
@@ -26,14 +26,14 @@ 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.2506-33-g6156da6de'
|
|
30
|
+
NGSOLVE_VERSION_GIT: str = 'v6.2.2506-33-g6156da6de'
|
|
31
|
+
NGSOLVE_VERSION_HASH: str = 'g6156da6de'
|
|
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.
|
|
36
|
-
NGSOLVE_VERSION_TWEAK: str = '
|
|
34
|
+
NGSOLVE_VERSION_PATCH: str = '2506'
|
|
35
|
+
NGSOLVE_VERSION_PYTHON: str = '6.2.2506.post33.dev0'
|
|
36
|
+
NGSOLVE_VERSION_TWEAK: str = '33'
|
|
37
37
|
USE_CCACHE: bool = True
|
|
38
38
|
USE_HYPRE: bool = False
|
|
39
39
|
USE_LAPACK: bool = True
|
|
@@ -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.2506-33-g6156da6de'
|
ngsolve/demos/intro/cmagnet.py
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
from netgen.
|
|
1
|
+
from netgen.occ import *
|
|
2
2
|
from ngsolve import *
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
def MakeGeometry():
|
|
6
|
-
|
|
7
|
-
box =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
ngmesh = MakeGeometry().GenerateMesh(maxh=0.5)
|
|
25
|
-
ngmesh.Save("coil.vol")
|
|
26
|
-
mesh = Mesh(ngmesh)
|
|
6
|
+
box = Box((-1,-1,-1), (2,1,2))
|
|
7
|
+
box.faces.name = "outer"
|
|
8
|
+
core = Box((0,-0.05,0), (0.8,0.05,1)) - \
|
|
9
|
+
Box((0.1,-1,0.1), (0.7,1,0.9)) - \
|
|
10
|
+
Box((0.5,-1,0.4), (1,1,0.6))
|
|
11
|
+
core.solids.name = "core"
|
|
12
|
+
core.solids.maxh = 0.03
|
|
13
|
+
|
|
14
|
+
coil = Cylinder((0.05,0,0.3), (0,0,1), 0.3, 0.4) - \
|
|
15
|
+
Cylinder((0.05,0,0.3), (0,0,1), 0.15, 0.4)
|
|
16
|
+
coil.solids.name = "coil"
|
|
17
|
+
air = box - core - coil
|
|
18
|
+
air.solids.name = "air"
|
|
19
|
+
return Glue([core, coil, air])
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
mesh = MakeGeometry().GenerateMesh(maxh=0.5)
|
|
27
24
|
|
|
28
25
|
# curve elements for geometry approximation
|
|
29
26
|
mesh.Curve(5)
|
ngsolve/directsolvers.pyi
CHANGED
|
@@ -9,7 +9,7 @@ import typing
|
|
|
9
9
|
__all__ = ['BaseMatrix', 'BaseVector', 'BilinearForm', 'BitArray', 'SuperLU']
|
|
10
10
|
class SuperLU(ngsolve.la.BaseMatrix):
|
|
11
11
|
__firstlineno__: typing.ClassVar[int] = 3
|
|
12
|
-
__static_attributes__: typing.ClassVar[tuple] = ('a', '
|
|
12
|
+
__static_attributes__: typing.ClassVar[tuple] = ('a', 'lu', 'freedofs', 'fd')
|
|
13
13
|
def Mult(self, x: ngsolve.la.BaseVector, y: ngsolve.la.BaseVector):
|
|
14
14
|
...
|
|
15
15
|
def Update(self):
|
ngsolve/krylovspace.pyi
CHANGED
|
@@ -35,7 +35,7 @@ class CGSolver(LinearSolver):
|
|
|
35
35
|
...
|
|
36
36
|
class GMResSolver(LinearSolver):
|
|
37
37
|
__firstlineno__: typing.ClassVar[int] = 740
|
|
38
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
38
|
+
__static_attributes__: typing.ClassVar[tuple] = ('norm', 'innerproduct', 'restart', 'iterations')
|
|
39
39
|
name: typing.ClassVar[str] = 'GMRes'
|
|
40
40
|
def _SolveImpl(self, rhs: ngsolve.la.BaseVector, sol: ngsolve.la.BaseVector):
|
|
41
41
|
...
|
|
@@ -43,7 +43,7 @@ class GMResSolver(LinearSolver):
|
|
|
43
43
|
...
|
|
44
44
|
class LinearSolver(ngsolve.la.BaseMatrix):
|
|
45
45
|
__firstlineno__: typing.ClassVar[int] = 50
|
|
46
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
46
|
+
__static_attributes__: typing.ClassVar[tuple] = ('callback', 'atol', 'iterations', '_final_residual', 'residuals', 'callback_sol', 'plt', 'maxiter', 'plotrates', 'fig', 'display', 'ax', 'printrates', 'mat', 'ress', 'sol', 'its', 'tol', 'pre', 'clear_output')
|
|
47
47
|
name: typing.ClassVar[str] = 'LinearSolver'
|
|
48
48
|
@staticmethod
|
|
49
49
|
def Solve(*args, **kwargs):
|
|
@@ -73,7 +73,7 @@ class MinResSolver(LinearSolver):
|
|
|
73
73
|
...
|
|
74
74
|
class QMRSolver(LinearSolver):
|
|
75
75
|
__firstlineno__: typing.ClassVar[int] = 295
|
|
76
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
76
|
+
__static_attributes__: typing.ClassVar[tuple] = ('pre2', 'ep')
|
|
77
77
|
name: typing.ClassVar[str] = 'QMR'
|
|
78
78
|
def _SolveImpl(self, rhs: ngsolve.la.BaseVector, sol: ngsolve.la.BaseVector):
|
|
79
79
|
...
|
ngsolve/nonlinearsolvers.pyi
CHANGED
|
@@ -8,7 +8,7 @@ import typing
|
|
|
8
8
|
__all__ = ['InnerProduct', 'Newton', 'NewtonMinimization', 'NewtonSolver', 'Norm', 'Projector', 'TimeFunction', 'sqrt']
|
|
9
9
|
class NewtonSolver:
|
|
10
10
|
__firstlineno__: typing.ClassVar[int] = 6
|
|
11
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
11
|
+
__static_attributes__: typing.ClassVar[tuple] = ('a', 'w', 'r', 'u', 'inv', 'lin_solver_cls', 'lin_solver_args', 'inverse', 'uh', 'freedofs', 'rhs')
|
|
12
12
|
@staticmethod
|
|
13
13
|
def Solve(*args, **kwargs):
|
|
14
14
|
...
|
ngsolve/solve.pyi
CHANGED
|
@@ -7,7 +7,7 @@ import ngsolve.fem
|
|
|
7
7
|
import typing
|
|
8
8
|
__all__ = ['Draw', 'SetVisualization', 'Tcl_Eval']
|
|
9
9
|
@typing.overload
|
|
10
|
-
def Draw(cf: ngsolve.fem.CoefficientFunction, mesh: ngsolve.comp.Mesh, name: str, sd: int = 2, autoscale: bool = True, min: float = 0.0, max: float = 1.0, draw_vol: bool = True, draw_surf: bool = True, reset: bool = False, title: str = '', number_format: str = '%.3e', unit: str = '', **kwargs) -> None:
|
|
10
|
+
def Draw(cf: ngsolve.fem.CoefficientFunction, mesh: ngsolve.comp.Mesh | ngsolve.comp.Region, name: str, sd: int = 2, autoscale: bool = True, min: float = 0.0, max: float = 1.0, draw_vol: bool = True, draw_surf: bool = True, reset: bool = False, title: str = '', number_format: str = '%.3e', unit: str = '', **kwargs) -> None:
|
|
11
11
|
"""
|
|
12
12
|
Parameters:
|
|
13
13
|
|
ngsolve/solve_implementation.py
CHANGED
|
@@ -51,6 +51,10 @@ class NonLinearApplication(Application):
|
|
|
51
51
|
if rhs is not None and rhs != 0:
|
|
52
52
|
rhs.Assemble()
|
|
53
53
|
solver_args["rhs"] = rhs
|
|
54
|
+
if "freedofs" in kwargs:
|
|
55
|
+
solver_args["freedofs"] = kwargs.pop("freedofs")
|
|
56
|
+
if "inverse" in kwargs:
|
|
57
|
+
solver_args["inverse"] = kwargs.pop("inverse")
|
|
54
58
|
solver = NewtonSolver(self.a, self.gf, **solver_args)
|
|
55
59
|
if dirichlet is not None:
|
|
56
60
|
dirichlet_gf = GridFunction(self.gf.space)
|
ngsolve/solve_implementation.pyi
CHANGED
|
@@ -23,18 +23,18 @@ class Application:
|
|
|
23
23
|
...
|
|
24
24
|
class Dirichlet:
|
|
25
25
|
__firstlineno__: typing.ClassVar[int] = 15
|
|
26
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
26
|
+
__static_attributes__: typing.ClassVar[tuple] = ('region', 'cf')
|
|
27
27
|
def __init__(self, cf, region):
|
|
28
28
|
...
|
|
29
29
|
class Equation:
|
|
30
|
-
__firstlineno__: typing.ClassVar[int] =
|
|
30
|
+
__firstlineno__: typing.ClassVar[int] = 138
|
|
31
31
|
__static_attributes__: typing.ClassVar[tuple] = ('lhs', 'rhs')
|
|
32
32
|
def Solve(self, *args, **kwargs):
|
|
33
33
|
...
|
|
34
34
|
def __init__(self, lhs, rhs):
|
|
35
35
|
...
|
|
36
36
|
class LinearApplication(Application):
|
|
37
|
-
__firstlineno__: typing.ClassVar[int] =
|
|
37
|
+
__firstlineno__: typing.ClassVar[int] = 69
|
|
38
38
|
__static_attributes__: typing.ClassVar[tuple] = ('vec')
|
|
39
39
|
def Assemble(self):
|
|
40
40
|
...
|
ngsolve/timestepping.pyi
CHANGED
|
@@ -7,7 +7,7 @@ import typing
|
|
|
7
7
|
__all__ = ['CrankNicolson', 'ImplicitEuler', 'Newmark', 'ngs']
|
|
8
8
|
class CrankNicolson:
|
|
9
9
|
__firstlineno__: typing.ClassVar[int] = 129
|
|
10
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
10
|
+
__static_attributes__: typing.ClassVar[tuple] = ('_lin_solver_cls', '_lin_solver_args', 'time', 'dt', 'gfu_old', 'c', 'bfmstar')
|
|
11
11
|
def Integrate(self, u_start: ngsolve.comp.GridFunction, end_time: float, start_time: typing.Optional[float] = None, newton_args: typing.Optional[dict] = None, callback: typing.Optional[typing.Callable] = None):
|
|
12
12
|
...
|
|
13
13
|
def Step(self, u: ngsolve.comp.GridFunction, dt: typing.Optional[float] = None, newton_args: typing.Optional[dict] = None):
|
|
@@ -16,7 +16,7 @@ class CrankNicolson:
|
|
|
16
16
|
...
|
|
17
17
|
class ImplicitEuler:
|
|
18
18
|
__firstlineno__: typing.ClassVar[int] = 5
|
|
19
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
19
|
+
__static_attributes__: typing.ClassVar[tuple] = ('_lin_solver_cls', '_lin_solver_args', 'time', 'dt', 'gfu_old', 'c', 'bfmstar')
|
|
20
20
|
def Integrate(self, u_start: ngsolve.comp.GridFunction, end_time: float, start_time: typing.Optional[float] = None, newton_args: typing.Optional[dict] = None, callback: typing.Optional[typing.Callable] = None):
|
|
21
21
|
...
|
|
22
22
|
def Step(self, u: ngsolve.comp.GridFunction, dt: typing.Optional[float] = None, newton_args: typing.Optional[dict] = None):
|
|
@@ -25,7 +25,7 @@ class ImplicitEuler:
|
|
|
25
25
|
...
|
|
26
26
|
class Newmark:
|
|
27
27
|
__firstlineno__: typing.ClassVar[int] = 58
|
|
28
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
28
|
+
__static_attributes__: typing.ClassVar[tuple] = ('_lin_solver_cls', 'gfa_old', '_lin_solver_args', 'time', 'dt', 'gfu_old', 'c', 'gfv_old', 'bfmstar')
|
|
29
29
|
def Integrate(self, u: ngsolve.comp.GridFunction, end_time: float, v: typing.Optional[ngsolve.comp.GridFunction] = None, a: typing.Optional[ngsolve.comp.GridFunction] = None, start_time: typing.Optional[float] = None, newton_args: typing.Optional[dict] = None, callback: typing.Optional[typing.Callable] = None):
|
|
30
30
|
...
|
|
31
31
|
def Step(self, u: ngsolve.comp.GridFunction, v: ngsolve.comp.GridFunction, a: ngsolve.comp.GridFunction, dt: typing.Optional[float] = None, newton_args: typing.Optional[dict] = None):
|
ngsolve/timing.pyi
CHANGED
|
@@ -32,7 +32,7 @@ class Timing:
|
|
|
32
32
|
|
|
33
33
|
"""
|
|
34
34
|
__firstlineno__: typing.ClassVar[int] = 5
|
|
35
|
-
__static_attributes__: typing.ClassVar[tuple] = ('
|
|
35
|
+
__static_attributes__: typing.ClassVar[tuple] = ('timings_par', 'name', 'timings')
|
|
36
36
|
def CompareTo(self, folder):
|
|
37
37
|
"""
|
|
38
38
|
|
ngsolve/utils.pyi
CHANGED
|
@@ -48,8 +48,8 @@ from ngsolve.comp import HDiv
|
|
|
48
48
|
from ngsolve.comp import HDivDiv
|
|
49
49
|
from ngsolve.comp import HDivDivSurface
|
|
50
50
|
from ngsolve.comp import HDivSurface
|
|
51
|
-
from ngsolve.comp import Hidden
|
|
52
51
|
from ngsolve.comp import Hidden as PrivateSpace
|
|
52
|
+
from ngsolve.comp import Hidden
|
|
53
53
|
from ngsolve.comp import Integral
|
|
54
54
|
from ngsolve.comp import Integrate
|
|
55
55
|
from ngsolve.comp import IntegrationRuleSpace
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ngsolve
|
|
3
|
-
Version: 6.2.
|
|
3
|
+
Version: 6.2.2506.post33.dev0
|
|
4
4
|
Summary: NGSolve
|
|
5
5
|
Author: The NGSolve team
|
|
6
6
|
License: LGPL2.1
|
|
7
7
|
License-File: LICENSE
|
|
8
|
-
Requires-Dist: netgen-mesher==6.2.
|
|
8
|
+
Requires-Dist: netgen-mesher==6.2.2506.post8.dev0
|
|
9
9
|
|