medcoupling 9.11.0__cp311-cp311-win_amd64.whl → 9.15.0__cp311-cp311-win_amd64.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.
- CaseIO.py +27 -8
- CaseReader.py +491 -275
- CaseWriter.py +344 -172
- MCMailFileReader.py +412 -0
- MEDCouplingCompat.py +235 -0
- MEDCouplingRemapper.py +421 -4
- MEDLoader.py +314 -2
- MEDLoaderFinalize.py +680 -0
- MEDLoaderSplitter.py +141 -100
- MEDRenumber.py +235 -0
- VTKReader.py +314 -151
- _MEDCouplingCompat.pyd +0 -0
- _MEDCouplingRemapper.pyd +0 -0
- _MEDLoader.pyd +0 -0
- _MEDPartitioner.pyd +0 -0
- _MEDRenumber.pyd +0 -0
- _medcoupling.pyd +0 -0
- geom2medcoupling.py +34 -17
- hdf5.dll +0 -0
- interpkernel.dll +0 -0
- libxml2.dll +0 -0
- medC.dll +0 -0
- medcoupling-9.15.0.dist-info/METADATA +40 -0
- medcoupling-9.15.0.dist-info/RECORD +31 -0
- medcoupling-9.15.0.dist-info/WHEEL +4 -0
- medcoupling.dll +0 -0
- medcoupling.py +514 -6
- medcouplingremapper.dll +0 -0
- medicoco.dll +0 -0
- medloader.dll +0 -0
- medpartitionercpp.dll +0 -0
- renumbercpp.dll +0 -0
- vtk2medcoupling.py +273 -17
- medcoupling-9.11.0.dist-info/METADATA +0 -22
- medcoupling-9.11.0.dist-info/RECORD +0 -1
- medcoupling-9.11.0.dist-info/WHEEL +0 -1
geom2medcoupling.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#! /usr/bin/env python3
|
2
2
|
# -*- coding: utf-8 -*-
|
3
|
-
# Copyright (C) 2021-
|
3
|
+
# Copyright (C) 2021-2025 CEA, EDF
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -22,33 +22,41 @@
|
|
22
22
|
|
23
23
|
import medcoupling as mc
|
24
24
|
|
25
|
+
|
25
26
|
def __to_geomshape_3D(mcmesh):
|
26
27
|
"""
|
27
28
|
Precondition mcmesh is a MEDCouplingUMesh containing exactly one linear 3D cell.
|
28
29
|
"""
|
29
30
|
import salome
|
31
|
+
|
30
32
|
salome.standalone()
|
31
33
|
salome.salome_init()
|
32
34
|
import GEOM
|
33
35
|
from salome.geom import geomBuilder
|
36
|
+
|
34
37
|
geompy = geomBuilder.New()
|
35
38
|
|
36
39
|
mcmesh2 = mcmesh.deepCopyConnectivityOnly()
|
37
|
-
|
40
|
+
mcmesh2.zipCoords()
|
41
|
+
vertices = [geompy.MakeVertex(*list(elt)) for elt in mcmesh2.getCoords()]
|
38
42
|
|
39
43
|
mcfaces = mcmesh2.buildDescendingConnectivity()[0]
|
40
44
|
shell_1 = geompy.MakeShell(
|
41
45
|
[
|
42
46
|
geompy.MakeFaceWires(
|
43
47
|
[
|
44
|
-
geompy.MakePolyline(
|
45
|
-
|
46
|
-
|
48
|
+
geompy.MakePolyline(
|
49
|
+
[vertices[nodeidx] for nodeidx in elt.getAllConn()[1:]], True
|
50
|
+
)
|
51
|
+
],
|
52
|
+
1,
|
47
53
|
)
|
48
|
-
|
49
|
-
|
54
|
+
for elt in mcfaces
|
55
|
+
]
|
56
|
+
)
|
50
57
|
return geompy.MakeSolid([shell_1])
|
51
58
|
|
59
|
+
|
52
60
|
def to_geomshape(mcmesh):
|
53
61
|
"""
|
54
62
|
Method converting a unique 3D linear cell in a MEDCoupling mesh to GEOM Shape solid
|
@@ -58,28 +66,35 @@ def to_geomshape(mcmesh):
|
|
58
66
|
:return: GEOM shape
|
59
67
|
:rtype: GEOM_Object
|
60
68
|
"""
|
61
|
-
if not isinstance(mcmesh,mc.MEDCouplingUMesh):
|
69
|
+
if not isinstance(mcmesh, mc.MEDCouplingUMesh):
|
62
70
|
raise RuntimeError("Input mesh is expected to be of type mc.MEDCouplingUMesh !")
|
63
71
|
if mcmesh.getNumberOfCells() != 1:
|
64
72
|
raise RuntimeError("Input mesh is expected to contain exactly one cell !")
|
65
|
-
if not mc.MEDCouplingUMesh.IsLinearGeometricType(
|
73
|
+
if not mc.MEDCouplingUMesh.IsLinearGeometricType(
|
74
|
+
mc.MEDCoupling1SGTUMesh(mcmesh).getCellModelEnum()
|
75
|
+
):
|
66
76
|
raise RuntimeError("The unique cell in the mesh is expected to be linear !")
|
67
|
-
dico = {
|
77
|
+
dico = {3: __to_geomshape_3D}
|
68
78
|
mdim = mcmesh.getMeshDimension()
|
69
79
|
if mdim not in dico:
|
70
|
-
raise RuntimeError(
|
80
|
+
raise RuntimeError(
|
81
|
+
"Input mesh is expected to have mesh dimension in {}".format(
|
82
|
+
list(dico.keys())
|
83
|
+
)
|
84
|
+
)
|
71
85
|
if mcmesh.getSpaceDimension() != 3:
|
72
|
-
mcmesh.changeSpaceDimension(3,0.0)
|
86
|
+
mcmesh.changeSpaceDimension(3, 0.0)
|
73
87
|
return (dico[mdim])(mcmesh)
|
74
88
|
|
75
|
-
|
89
|
+
|
90
|
+
def compute_interpolation_P0P0_matrix_with_geom(srcMesh, trgMesh):
|
76
91
|
"""
|
77
92
|
Method computing interpolation matrix P0P0 using GEOM/OCCT engine.
|
78
93
|
This method is normaly slower than mc.MEDCouplingRemapper.prepare method but it may be used to check values.
|
79
94
|
|
80
95
|
:return: a matrix with the same format than mc.MEDCouplingRemapper.getCrudeMatrix (use mc.MEDCouplingRemapper.ToCSRMatrix to convert it into scipy sparse format)
|
81
96
|
"""
|
82
|
-
mat_geom = [
|
97
|
+
mat_geom = [{} for i in range(trgMesh.getNumberOfCells())]
|
83
98
|
for j in range(trgMesh.getNumberOfCells()):
|
84
99
|
for i in range(srcMesh.getNumberOfCells()):
|
85
100
|
mc_src_mesh = srcMesh[i]
|
@@ -88,12 +103,14 @@ def compute_interpolation_P0P0_matrix_with_geom(srcMesh,trgMesh):
|
|
88
103
|
trg_geom = to_geomshape(mc_trg_mesh)
|
89
104
|
|
90
105
|
from salome.geom import geomBuilder
|
106
|
+
|
91
107
|
geompy = geomBuilder.New()
|
92
108
|
import GEOM
|
109
|
+
|
93
110
|
geompy.ExportBREP(src_geom, "src.brep")
|
94
111
|
geompy.ExportBREP(trg_geom, "trg.brep")
|
95
112
|
Common_1 = geompy.MakeCommonList([src_geom, trg_geom], True)
|
96
|
-
_,_,volume = geompy.BasicProperties(Common_1)
|
97
|
-
if volume > 0
|
113
|
+
_, _, volume = geompy.BasicProperties(Common_1)
|
114
|
+
if volume > 0.0:
|
98
115
|
mat_geom[j][i] = volume
|
99
|
-
return mat_geom
|
116
|
+
return mat_geom
|
hdf5.dll
CHANGED
Binary file
|
interpkernel.dll
CHANGED
Binary file
|
libxml2.dll
CHANGED
Binary file
|
medC.dll
CHANGED
Binary file
|
@@ -0,0 +1,40 @@
|
|
1
|
+
Metadata-Version: 1.2
|
2
|
+
Name: medcoupling
|
3
|
+
Version: 9.15.0
|
4
|
+
Summary: Powerful library to manipulate meshes and fields
|
5
|
+
Home-page: https://docs.salome-platform.org/latest/dev/MEDCoupling/developer/index.html
|
6
|
+
Author: EDF R&D
|
7
|
+
Author-email: eric.fayolle@edf.fr
|
8
|
+
License: LGPL
|
9
|
+
Keywords: salome mesh numerical simulation
|
10
|
+
Platform: any
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
12
|
+
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
|
13
|
+
Classifier: Programming Language :: C++
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
17
|
+
Requires-Dist: scipy
|
18
|
+
|
19
|
+
|
20
|
+
MEDCoupling
|
21
|
+
===========
|
22
|
+
|
23
|
+
MEDCoupling is a powerful library to manipulate meshes and fields from the `SALOME <https://www.salome-platform.org/>`_ platform.
|
24
|
+
|
25
|
+
Refer to the `documentation <https://docs.salome-platform.org/latest/dev/MEDCoupling/developer/index.html>`_.
|
26
|
+
|
27
|
+
Built from `github <https://github.com/jschueller/medcoupling-wheels>`_.
|
28
|
+
|
29
|
+
Installation from PyPI
|
30
|
+
----------------------
|
31
|
+
|
32
|
+
To install MEDCoupling, you can now simply do::
|
33
|
+
|
34
|
+
pip install -U medcoupling
|
35
|
+
|
36
|
+
Binary wheels are available for 64-bit Windows (`win_amd64`) and Linux-like platforms (`manylinux2014_x86_64`).
|
37
|
+
|
38
|
+
To ensure that MEDCoupling is well installed, try importing it with::
|
39
|
+
|
40
|
+
import medcoupling # should not raise error
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.\CaseIO.py,sha256=ujiqRryqd8NmARQUVKihhQeyOAGAiWat3188Yhx8yiY=,1951
|
2
|
+
.\CaseReader.py,sha256=AIg39jpxJkN9McmiXHDJVwv6adLnIL_WJJO5WoBQc7Y=,24658
|
3
|
+
.\CaseWriter.py,sha256=HYALEErlY38ActAXQR3sYFo0snLUr1VgMvaysWa9EpQ=,21124
|
4
|
+
.\geom2medcoupling.py,sha256=lo3WuPut6_cPimyDCofBz5VlfLh_8ay5AIo-0SASaPw=,4271
|
5
|
+
.\hdf5.dll,sha256=uDv-olXj4OKARJloNPJAkvHeoXxJhlMKPe9R_aES_FU=,2957824
|
6
|
+
.\interpkernel.dll,sha256=nOOO5_8z2VVQx5j23H5_S4bmi6Vh8js-Yr075wfAM8A=,781312
|
7
|
+
.\libxml2.dll,sha256=iKiGje8yNaM31ZWEd9xIpSfC5XNorxSJnjONppmRW6k=,1405952
|
8
|
+
.\MCMailFileReader.py,sha256=DGL836TYCf0XsaOq7rX4-NWyBjtx4O_Q3PPLhxAu4Hs=,13724
|
9
|
+
.\medC.dll,sha256=gXtX9ldOeNTCtcu5lPyJL3qcU6cvvn4TkBLY8lNHT58=,5152768
|
10
|
+
.\medcoupling.dll,sha256=4Lb4gbPsF4JLWUWsM4DEKFovQfw6YHhIy_zn3oX35iQ=,2872320
|
11
|
+
.\medcoupling.py,sha256=scb-11jAy2VJETavilcBMQPPEn7Fv9lMg_80xTJ8FLA=,827907
|
12
|
+
.\MEDCouplingCompat.py,sha256=QD0NpIWwtPiyNklonpq5CdFTAdb46xRSQykNZsE6ivw=,547276
|
13
|
+
.\medcouplingremapper.dll,sha256=NNpZ6wFuBqFBoaw8TSRSGonZ6aYWuy8lSdOmShS0fnU=,621056
|
14
|
+
.\MEDCouplingRemapper.py,sha256=o2rz4eneEj3CA6nj_As9b425QIE1niVU-OC0UWXADVA=,579565
|
15
|
+
.\medicoco.dll,sha256=mIiLSTexZLq_6lr1Cu-gCKoMyJViZS-ct7XE1tAIOWc=,19968
|
16
|
+
.\medloader.dll,sha256=9AgWVLdo8-Pjn88_ozjklzfvg5xp_oLeXTNc1yiHPgI=,2052608
|
17
|
+
.\MEDLoader.py,sha256=gQXA1WbQt4Wj2hLcnuDzNRmOZlgNH9BIPzpHITtTMoI=,781660
|
18
|
+
.\MEDLoaderFinalize.py,sha256=oOEgilFYHwtz6jw4BkOH7rkI49zaL-GcR9L6X6Ulv3g=,28316
|
19
|
+
.\MEDLoaderSplitter.py,sha256=Pt_eN2iYE_9qRRmosSs5epADIFd6LkRC3ckd6I2EJJs=,10059
|
20
|
+
.\MEDPartitioner.py,sha256=cQIboO-wCLxay01TOARvvdDYzWRdeh2nq5-W2Raxh0c=,5798
|
21
|
+
.\medpartitionercpp.dll,sha256=AHfuHGwn-QSVwZcFmvaXbHNVIJzGD0D3YDb7h4pdZMQ=,488448
|
22
|
+
.\MEDRenumber.py,sha256=Z4JTBlSm2qg8gg8nqfERjZWLWUOmf3XGX8T08c7mLMU=,528582
|
23
|
+
.\renumbercpp.dll,sha256=dnGAutKIMOJVt9lvgwj4sUmifDVJURsm6dS6u2g4Xzo=,132096
|
24
|
+
.\vtk2medcoupling.py,sha256=m5NH3ntXL2lTlRpCsk-TrPF6SpP_EWUJwQLqA9NNTrE=,12058
|
25
|
+
.\VTKReader.py,sha256=R5LEAzQHs62VFbo6HNhaC_h6v7BBpjnOsiT07eIIa7E=,14862
|
26
|
+
.\_medcoupling.pyd,sha256=vesPIoiA1uFPSKHamr-4iDYE8w1qBYgxztMtuvq-_2I=,5321728
|
27
|
+
.\_MEDCouplingCompat.pyd,sha256=z-wmPaaHHU0gL3PvC4Nlk9PWnB6hcm7at040__s6KJg=,3431936
|
28
|
+
.\_MEDCouplingRemapper.pyd,sha256=Tg5Nux65l9G12Ygd41CNeidvFfNFm9ajEL1MjNmJ_fQ=,3560448
|
29
|
+
.\_MEDLoader.pyd,sha256=ersmVaqTx93FRhMwfl71LIeYJpfbfgNRc6fvv-V7-hM=,5117440
|
30
|
+
.\_MEDPartitioner.pyd,sha256=G_yYT9IXUx11J30Z3_NI13TgMPr6jILZs6tX5qi3c6s=,74240
|
31
|
+
.\_MEDRenumber.pyd,sha256=Pvyw-074DiQlNcQkHeoVZ_KlKqwLOz423B39cvvOApo=,3436544
|
medcoupling.dll
CHANGED
Binary file
|