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.

Files changed (73) hide show
  1. netgen/include/analytic_integrals.hpp +10 -0
  2. netgen/include/bdbequations.hpp +20 -0
  3. netgen/include/bem_diffops.hpp +475 -0
  4. netgen/include/bspline.hpp +2 -0
  5. netgen/include/contact.hpp +4 -0
  6. netgen/include/h1lumping.hpp +6 -0
  7. netgen/include/hcurl_equations.hpp +29 -0
  8. netgen/include/hdivfe_utils.hpp +1 -0
  9. netgen/include/kernels.hpp +654 -0
  10. netgen/include/mp_coefficient.hpp +20 -20
  11. netgen/include/mptools.hpp +268 -123
  12. netgen/include/potentialtools.hpp +2 -2
  13. netgen/include/thdivfe_impl.hpp +66 -0
  14. netgen/libngbla.dylib +0 -0
  15. netgen/libngcomp.dylib +0 -0
  16. netgen/libngfem.dylib +0 -0
  17. netgen/libngla.dylib +0 -0
  18. netgen/libngsbem.dylib +0 -0
  19. netgen/libngsolve.dylib +0 -0
  20. netgen/libngstd.dylib +0 -0
  21. ngsolve/__init__.pyi +2 -2
  22. ngsolve/cmake/NGSolveConfig.cmake +1 -1
  23. ngsolve/config/__init__.pyi +7 -7
  24. ngsolve/config/config.py +6 -6
  25. ngsolve/config/config.pyi +7 -7
  26. ngsolve/demos/intro/cmagnet.py +19 -22
  27. ngsolve/directsolvers.pyi +1 -1
  28. ngsolve/krylovspace.pyi +3 -3
  29. ngsolve/nonlinearsolvers.pyi +1 -1
  30. ngsolve/solve.pyi +1 -1
  31. ngsolve/solve_implementation.py +4 -0
  32. ngsolve/solve_implementation.pyi +3 -3
  33. ngsolve/timestepping.pyi +3 -3
  34. ngsolve/timing.pyi +1 -1
  35. ngsolve/utils.pyi +1 -1
  36. {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/METADATA +2 -2
  37. {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/RECORD +73 -70
  38. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/Netgen.icns +0 -0
  39. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngscxx +0 -0
  40. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngsld +0 -0
  41. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngsolve.tcl +0 -0
  42. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/bin/ngspy +0 -0
  43. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/beam.geo +0 -0
  44. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/beam.vol +0 -0
  45. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/chip.in2d +0 -0
  46. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/chip.vol +0 -0
  47. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coil.geo +0 -0
  48. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coil.vol +0 -0
  49. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coilshield.geo +0 -0
  50. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/coilshield.vol +0 -0
  51. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/cube.geo +0 -0
  52. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/cube.vol +0 -0
  53. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -0
  54. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d11_chip_nitsche.pde +0 -0
  55. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d1_square.pde +0 -0
  56. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d2_chip.pde +0 -0
  57. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d3_helmholtz.pde +0 -0
  58. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d4_cube.pde +0 -0
  59. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d5_beam.pde +0 -0
  60. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d6_shaft.pde +0 -0
  61. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d7_coil.pde +0 -0
  62. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d8_coilshield.pde +0 -0
  63. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/d9_hybridDG.pde +0 -0
  64. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/doubleglazing.in2d +0 -0
  65. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/doubleglazing.vol +0 -0
  66. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
  67. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/shaft.geo +0 -0
  68. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/shaft.vol +0 -0
  69. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/square.in2d +0 -0
  70. {ngsolve-6.2.2505.post105.dev0.data → ngsolve-6.2.2506.post33.dev0.data}/data/share/ngsolve/square.vol +0 -0
  71. {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/LICENSE +0 -0
  72. {ngsolve-6.2.2505.post105.dev0.dist-info → ngsolve-6.2.2506.post33.dev0.dist-info}/WHEEL +0 -0
  73. {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 (SingularMLMultiPole<Complex> & mp, shared_ptr<CoefficientFunction> current, ngcomp::Region reg);
16
+ extern void AddChargeDensity (SingularMLExpansion<Complex> & mp, shared_ptr<CoefficientFunction> current, ngcomp::Region reg);
17
17
 
18
- extern void AddCurrentDensity (SingularMLMultiPole<Vec<3,Complex>> & mp, shared_ptr<CoefficientFunction> current, ngcomp::Region reg);
18
+ extern void AddCurrentDensity (SingularMLExpansion<Vec<3,Complex>> & mp, shared_ptr<CoefficientFunction> current, ngcomp::Region reg);
19
19
 
20
20
  }
21
21
 
@@ -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.2505-105-g71e668761'
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>
@@ -1,4 +1,4 @@
1
- set(PACKAGE_VERSION "6.2.2505-105-g71e668761")
1
+ set(PACKAGE_VERSION "6.2.2506-33-g6156da6de")
2
2
  find_package(Netgen CONFIG REQUIRED HINTS
3
3
  ${CMAKE_CURRENT_LIST_DIR}
4
4
  ${CMAKE_CURRENT_LIST_DIR}/..
@@ -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.2505-105-g71e668761'
28
- NGSOLVE_VERSION_GIT: str = 'v6.2.2505-105-g71e668761'
29
- NGSOLVE_VERSION_HASH: str = 'g71e668761'
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 = '2505'
33
- NGSOLVE_VERSION_PYTHON: str = '6.2.2505.post105.dev0'
34
- NGSOLVE_VERSION_TWEAK: str = '105'
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.2505-105-g71e668761'
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.2505-105-g71e668761"
33
- NGSOLVE_VERSION_GIT = "v6.2.2505-105-g71e668761"
34
- NGSOLVE_VERSION_PYTHON = "6.2.2505.post105.dev0"
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 = "105"
39
- NGSOLVE_VERSION_PATCH = "2505"
40
- NGSOLVE_VERSION_HASH = "g71e668761"
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.2505-105-g71e668761'
30
- NGSOLVE_VERSION_GIT: str = 'v6.2.2505-105-g71e668761'
31
- NGSOLVE_VERSION_HASH: str = 'g71e668761'
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 = '2505'
35
- NGSOLVE_VERSION_PYTHON: str = '6.2.2505.post105.dev0'
36
- NGSOLVE_VERSION_TWEAK: str = '105'
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.2505-105-g71e668761'
45
+ version: str = 'v6.2.2506-33-g6156da6de'
@@ -1,29 +1,26 @@
1
- from netgen.csg import *
1
+ from netgen.occ import *
2
2
  from ngsolve import *
3
3
 
4
4
 
5
5
  def MakeGeometry():
6
- geometry = CSGeometry()
7
- box = OrthoBrick(Pnt(-1,-1,-1),Pnt(2,1,2)).bc("outer")
8
-
9
- core = OrthoBrick(Pnt(0,-0.05,0),Pnt(0.8,0.05,1))- \
10
- OrthoBrick(Pnt(0.1,-1,0.1),Pnt(0.7,1,0.9))- \
11
- OrthoBrick(Pnt(0.5,-1,0.4),Pnt(1,1,0.6)).maxh(0.2).mat("core")
12
-
13
- coil = (Cylinder(Pnt(0.05,0,0), Pnt(0.05,0,1), 0.3) - \
14
- Cylinder(Pnt(0.05,0,0), Pnt(0.05,0,1), 0.15)) * \
15
- OrthoBrick (Pnt(-1,-1,0.3),Pnt(1,1,0.7)).maxh(0.2).mat("coil")
16
-
17
- geometry.Add ((box-core-coil).mat("air"))
18
- geometry.Add (core)
19
- geometry.Add (coil)
20
- return geometry
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', 'fd', 'lu', 'freedofs')
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] = ('restart', 'innerproduct', 'norm', 'iterations')
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] = ('residuals', 'plotrates', 'its', 'maxiter', 'mat', 'printrates', 'clear_output', '_final_residual', 'sol', 'pre', 'display', 'ress', 'callback', 'tol', 'fig', 'ax', 'callback_sol', 'plt', 'atol', 'iterations')
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] = ('ep', 'pre2')
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
  ...
@@ -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] = ('uh', 'a', 'rhs', 'inv', 'w', 'inverse', 'lin_solver_cls', 'lin_solver_args', 'u', 'r', 'freedofs')
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
 
@@ -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)
@@ -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] = ('cf', 'region')
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] = 134
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] = 65
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] = ('bfmstar', '_lin_solver_args', 'time', 'gfu_old', '_lin_solver_cls', 'c', 'dt')
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] = ('bfmstar', '_lin_solver_args', 'time', 'gfu_old', '_lin_solver_cls', 'c', 'dt')
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] = ('bfmstar', '_lin_solver_args', 'gfv_old', 'time', 'gfa_old', 'gfu_old', '_lin_solver_cls', 'c', 'dt')
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] = ('name', 'timings', 'timings_par')
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.2505.post105.dev0
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.2505.post50.dev0
8
+ Requires-Dist: netgen-mesher==6.2.2506.post8.dev0
9
9