Coreform-Cubit-Mesh-Export 0.9.1__tar.gz → 0.9.3__tar.gz
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 Coreform-Cubit-Mesh-Export might be problematic. Click here for more details.
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/Coreform_Cubit_Mesh_Export.egg-info/PKG-INFO +10 -13
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/Coreform_Cubit_Mesh_Export.egg-info/SOURCES.txt +2 -2
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/Coreform_Cubit_Mesh_Export.egg-info/top_level.txt +2 -0
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/PKG-INFO +10 -13
- coreform_cubit_mesh_export-0.9.3/file_format/ngsolve_read_gmsh.py +218 -0
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/pyproject.toml +22 -4
- coreform_cubit_mesh_export-0.9.1/setup.py +0 -59
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/Coreform_Cubit_Mesh_Export.egg-info/dependency_links.txt +0 -0
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/Coreform_Cubit_Mesh_Export.egg-info/requires.txt +0 -0
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/README.md +0 -0
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/cubit_mesh_export.py +0 -0
- {coreform_cubit_mesh_export-0.9.1 → coreform_cubit_mesh_export-0.9.3}/setup.cfg +0 -0
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Coreform_Cubit_Mesh_Export
|
|
3
|
-
Version: 0.9.
|
|
4
|
-
Summary:
|
|
5
|
-
Home-page: https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
6
|
-
Download-URL: https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
7
|
-
Author: Kengo Sugahara
|
|
3
|
+
Version: 0.9.3
|
|
4
|
+
Summary: Cubit mesh export to various formats including Gmsh, Nastran, and VTK
|
|
8
5
|
Author-email: Kengo Sugahara <ksugahar@gmail.com>
|
|
9
|
-
Maintainer: Kengo Sugahara
|
|
10
|
-
|
|
6
|
+
Maintainer-email: Kengo Sugahara <ksugahar@gmail.com>
|
|
7
|
+
License: BSD-3-Clause
|
|
11
8
|
Project-URL: Homepage, https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
12
9
|
Project-URL: Repository, https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/ksugahar/Coreform_Cubit_Mesh_Export/issues
|
|
11
|
+
Keywords: cubit,mesh,gmsh,nastran,vtk,export,coreform
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Intended Audience :: Science/Research
|
|
14
14
|
Classifier: License :: OSI Approved :: BSD License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
15
16
|
Classifier: Programming Language :: Python :: 3
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.8
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
23
|
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
22
25
|
Requires-Python: >=3.7
|
|
23
26
|
Description-Content-Type: text/markdown
|
|
24
27
|
Requires-Dist: numpy>=1.20.3
|
|
25
28
|
Requires-Dist: scipy>=1.6.3
|
|
26
|
-
Dynamic: author
|
|
27
|
-
Dynamic: download-url
|
|
28
|
-
Dynamic: home-page
|
|
29
|
-
Dynamic: maintainer
|
|
30
|
-
Dynamic: maintainer-email
|
|
31
|
-
Dynamic: requires-python
|
|
32
29
|
|
|
33
30
|
# インストール方法
|
|
34
31
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
README.md
|
|
2
2
|
cubit_mesh_export.py
|
|
3
3
|
pyproject.toml
|
|
4
|
-
setup.py
|
|
5
4
|
Coreform_Cubit_Mesh_Export.egg-info/PKG-INFO
|
|
6
5
|
Coreform_Cubit_Mesh_Export.egg-info/SOURCES.txt
|
|
7
6
|
Coreform_Cubit_Mesh_Export.egg-info/dependency_links.txt
|
|
8
7
|
Coreform_Cubit_Mesh_Export.egg-info/requires.txt
|
|
9
|
-
Coreform_Cubit_Mesh_Export.egg-info/top_level.txt
|
|
8
|
+
Coreform_Cubit_Mesh_Export.egg-info/top_level.txt
|
|
9
|
+
file_format/ngsolve_read_gmsh.py
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Coreform_Cubit_Mesh_Export
|
|
3
|
-
Version: 0.9.
|
|
4
|
-
Summary:
|
|
5
|
-
Home-page: https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
6
|
-
Download-URL: https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
7
|
-
Author: Kengo Sugahara
|
|
3
|
+
Version: 0.9.3
|
|
4
|
+
Summary: Cubit mesh export to various formats including Gmsh, Nastran, and VTK
|
|
8
5
|
Author-email: Kengo Sugahara <ksugahar@gmail.com>
|
|
9
|
-
Maintainer: Kengo Sugahara
|
|
10
|
-
|
|
6
|
+
Maintainer-email: Kengo Sugahara <ksugahar@gmail.com>
|
|
7
|
+
License: BSD-3-Clause
|
|
11
8
|
Project-URL: Homepage, https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
12
9
|
Project-URL: Repository, https://github.com/ksugahar/Coreform_Cubit_Mesh_Export
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/ksugahar/Coreform_Cubit_Mesh_Export/issues
|
|
11
|
+
Keywords: cubit,mesh,gmsh,nastran,vtk,export,coreform
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Intended Audience :: Science/Research
|
|
14
14
|
Classifier: License :: OSI Approved :: BSD License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
15
16
|
Classifier: Programming Language :: Python :: 3
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.8
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
23
|
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
22
25
|
Requires-Python: >=3.7
|
|
23
26
|
Description-Content-Type: text/markdown
|
|
24
27
|
Requires-Dist: numpy>=1.20.3
|
|
25
28
|
Requires-Dist: scipy>=1.6.3
|
|
26
|
-
Dynamic: author
|
|
27
|
-
Dynamic: download-url
|
|
28
|
-
Dynamic: home-page
|
|
29
|
-
Dynamic: maintainer
|
|
30
|
-
Dynamic: maintainer-email
|
|
31
|
-
Dynamic: requires-python
|
|
32
29
|
|
|
33
30
|
# インストール方法
|
|
34
31
|
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
from netgen.meshing import *
|
|
2
|
+
|
|
3
|
+
def ReadGmsh(filename):
|
|
4
|
+
if not filename.endswith(".msh"):
|
|
5
|
+
filename += ".msh"
|
|
6
|
+
meshdim = 1
|
|
7
|
+
with open(filename, 'r') as f:
|
|
8
|
+
while f.readline().split()[0] != "$Elements":
|
|
9
|
+
pass
|
|
10
|
+
nelem = int(f.readline())
|
|
11
|
+
for i in range(nelem):
|
|
12
|
+
line = f.readline()
|
|
13
|
+
eltype = int(line.split()[1])
|
|
14
|
+
if eltype > 1 and eltype != 15:
|
|
15
|
+
meshdim = 2
|
|
16
|
+
if eltype > 3 and eltype != 15:
|
|
17
|
+
meshdim = 3
|
|
18
|
+
break
|
|
19
|
+
|
|
20
|
+
f = open(filename, 'r')
|
|
21
|
+
mesh = Mesh(dim=meshdim)
|
|
22
|
+
|
|
23
|
+
pointmap = {}
|
|
24
|
+
facedescriptormap = {}
|
|
25
|
+
namemap = { 0 : { 0 : "default" },
|
|
26
|
+
1: { 0 : "default" },
|
|
27
|
+
2: { 0 : "default" },
|
|
28
|
+
3: { 0 : "default" } }
|
|
29
|
+
materialmap = {}
|
|
30
|
+
bbcmap = {}
|
|
31
|
+
|
|
32
|
+
segm = 1
|
|
33
|
+
trig = 2
|
|
34
|
+
quad = 3
|
|
35
|
+
tet = 4
|
|
36
|
+
hex = 5
|
|
37
|
+
prism = 6
|
|
38
|
+
pyramid = 7
|
|
39
|
+
segm3 = 8 # 2nd order line
|
|
40
|
+
trig6 = 9 # 2nd order trig
|
|
41
|
+
tet10 = 11 # 2nd order tet
|
|
42
|
+
point = 15
|
|
43
|
+
quad8 = 16 # 2nd order quad
|
|
44
|
+
hex20 = 17 # 2nd order hex
|
|
45
|
+
prism15 = 18 # 2nd order prism
|
|
46
|
+
pyramid13 = 19 # 2nd order pyramid
|
|
47
|
+
segms = [segm, segm3]
|
|
48
|
+
trigs = [trig, trig6]
|
|
49
|
+
quads = [quad, quad8]
|
|
50
|
+
tets = [tet, tet10]
|
|
51
|
+
hexes = [hex, hex20]
|
|
52
|
+
prisms = [prism, prism15]
|
|
53
|
+
pyramids = [pyramid, pyramid13]
|
|
54
|
+
elem0d = [point]
|
|
55
|
+
elem1d = segms
|
|
56
|
+
elem2d = trigs + quads
|
|
57
|
+
elem3d = tets + hexes + prisms + pyramids
|
|
58
|
+
|
|
59
|
+
num_nodes_map = { segm : 2,
|
|
60
|
+
trig : 3,
|
|
61
|
+
quad : 4,
|
|
62
|
+
tet : 4,
|
|
63
|
+
hex : 8,
|
|
64
|
+
prism : 6,
|
|
65
|
+
pyramid : 5,
|
|
66
|
+
segm3 : 3,
|
|
67
|
+
trig6 : 6,
|
|
68
|
+
tet10 : 10,
|
|
69
|
+
point : 1,
|
|
70
|
+
quad8 : 8,
|
|
71
|
+
hex20 : 20,
|
|
72
|
+
prism15 : 18,
|
|
73
|
+
pyramid13 : 19 }
|
|
74
|
+
|
|
75
|
+
while True:
|
|
76
|
+
line = f.readline()
|
|
77
|
+
if line == "":
|
|
78
|
+
break
|
|
79
|
+
|
|
80
|
+
if line.split()[0] == "$PhysicalNames":
|
|
81
|
+
print('WARNING: Physical groups detected - Be sure to define them for every geometrical entity.')
|
|
82
|
+
numnames = int(f.readline())
|
|
83
|
+
for i in range(numnames):
|
|
84
|
+
f.readline
|
|
85
|
+
line = f.readline()
|
|
86
|
+
namemap[int(line.split()[0])][int(line.split()[1])] = line.split()[2][1:-1]
|
|
87
|
+
|
|
88
|
+
if line.split()[0] == "$Nodes":
|
|
89
|
+
num = int(f.readline().split()[0])
|
|
90
|
+
for i in range(num):
|
|
91
|
+
line = f.readline()
|
|
92
|
+
nodenum, x, y, z = line.split()[0:4]
|
|
93
|
+
!!! pnum = mesh.Add(MeshPoint(Pnt(float(x), float(y), float(z))))
|
|
94
|
+
pointmap[int(nodenum)] = pnum
|
|
95
|
+
|
|
96
|
+
if line.split()[0] == "$Elements":
|
|
97
|
+
num = int(f.readline().split()[0])
|
|
98
|
+
|
|
99
|
+
for i in range(num):
|
|
100
|
+
line = f.readline().split()
|
|
101
|
+
elmnum = int(line[0])
|
|
102
|
+
elmtype = int(line[1])
|
|
103
|
+
numtags = int(line[2])
|
|
104
|
+
# the first tag is the physical group nr, the second tag is the group nr of the dim
|
|
105
|
+
tags = [int(line[3 + k]) for k in range(numtags)]
|
|
106
|
+
|
|
107
|
+
if elmtype not in num_nodes_map:
|
|
108
|
+
raise Exception("element type", elmtype, "not implemented")
|
|
109
|
+
num_nodes = num_nodes_map[elmtype]
|
|
110
|
+
|
|
111
|
+
nodenums = line[3 + numtags:3 + numtags + num_nodes]
|
|
112
|
+
nodenums2 = [pointmap[int(nn)] for nn in nodenums]
|
|
113
|
+
|
|
114
|
+
if elmtype in elem1d:
|
|
115
|
+
if meshdim == 3:
|
|
116
|
+
if tags[1] in bbcmap:
|
|
117
|
+
index = bbcmap[tags[1]]
|
|
118
|
+
else:
|
|
119
|
+
index = len(bbcmap) + 1
|
|
120
|
+
if len(namemap):
|
|
121
|
+
!!! mesh.SetCD2Name(index, namemap[1][tags[0]])
|
|
122
|
+
else:
|
|
123
|
+
!!! mesh.SetCD2Name(index, "line" + str(tags[1]))
|
|
124
|
+
bbcmap[tags[1]] = index
|
|
125
|
+
|
|
126
|
+
elif meshdim == 2:
|
|
127
|
+
if tags[1] in facedescriptormap.keys():
|
|
128
|
+
index = facedescriptormap[tags[1]]
|
|
129
|
+
else:
|
|
130
|
+
index = len(facedescriptormap) + 1
|
|
131
|
+
!!! fd = FaceDescriptor(bc=index)
|
|
132
|
+
if len(namemap):
|
|
133
|
+
!!! fd.bcname = namemap[1][tags[0]]
|
|
134
|
+
else:
|
|
135
|
+
fd.bcname = 'line' + str(tags[1])
|
|
136
|
+
!!! mesh.SetBCName(index - 1, fd.bcname)
|
|
137
|
+
!!! mesh.Add(fd)
|
|
138
|
+
facedescriptormap[tags[1]] = index
|
|
139
|
+
else:
|
|
140
|
+
if tags[1] in materialmap:
|
|
141
|
+
index = materialmap[tags[1]]
|
|
142
|
+
else:
|
|
143
|
+
index = len(materialmap) + 1
|
|
144
|
+
if len(namemap):
|
|
145
|
+
!!! mesh.SetMaterial(index, namemap[1][tags[0]])
|
|
146
|
+
else:
|
|
147
|
+
!!! mesh.SetMaterial(index, "line" + str(tags[1]))
|
|
148
|
+
materialmap[tags[1]] = index
|
|
149
|
+
|
|
150
|
+
!!! mesh.Add(Element1D(index=index, vertices=nodenums2))
|
|
151
|
+
|
|
152
|
+
if elmtype in elem2d: # 2d elements
|
|
153
|
+
if meshdim == 3:
|
|
154
|
+
if tags[1] in facedescriptormap.keys():
|
|
155
|
+
index = facedescriptormap[tags[1]]
|
|
156
|
+
else:
|
|
157
|
+
index = len(facedescriptormap) + 1
|
|
158
|
+
fd = FaceDescriptor(bc=index)
|
|
159
|
+
if len(namemap):
|
|
160
|
+
!!! fd.bcname = namemap[2][tags[0]]
|
|
161
|
+
else:
|
|
162
|
+
!!! fd.bcname = "surf" + str(tags[1])
|
|
163
|
+
!!! mesh.SetBCName(index - 1, fd.bcname)
|
|
164
|
+
!!! mesh.Add(fd)
|
|
165
|
+
facedescriptormap[tags[1]] = index
|
|
166
|
+
else:
|
|
167
|
+
if tags[1] in materialmap:
|
|
168
|
+
index = materialmap[tags[1]]
|
|
169
|
+
else:
|
|
170
|
+
index = len(materialmap) + 1
|
|
171
|
+
if len(namemap):
|
|
172
|
+
!!! mesh.SetMaterial(index, namemap[2][tags[0]])
|
|
173
|
+
else:
|
|
174
|
+
!!! mesh.SetMaterial(index, "surf" + str(tags[1]))
|
|
175
|
+
materialmap[tags[1]] = index
|
|
176
|
+
|
|
177
|
+
if elmtype in trigs:
|
|
178
|
+
ordering = [i for i in range(3)]
|
|
179
|
+
if elmtype == trig6:
|
|
180
|
+
!! ordering += [4,5,3]
|
|
181
|
+
if elmtype in quads:
|
|
182
|
+
ordering = [i for i in range(4)]
|
|
183
|
+
if elmtype == quad8:
|
|
184
|
+
!! ordering += [4, 6, 7, 5]
|
|
185
|
+
!!! mesh.Add(Element2D(index, [nodenums2[i] for i in ordering]))
|
|
186
|
+
|
|
187
|
+
if elmtype in elem3d: # volume elements
|
|
188
|
+
if tags[1] in materialmap:
|
|
189
|
+
index = materialmap[tags[1]]
|
|
190
|
+
else:
|
|
191
|
+
index = len(materialmap) + 1
|
|
192
|
+
if len(namemap):
|
|
193
|
+
!!! mesh.SetMaterial(index, namemap[3][tags[0]])
|
|
194
|
+
else:
|
|
195
|
+
!!! mesh.SetMaterial(index, "vol" + str(tags[1]))
|
|
196
|
+
materialmap[tags[1]] = index
|
|
197
|
+
|
|
198
|
+
nodenums2 = [pointmap[int(nn)] for nn in nodenums]
|
|
199
|
+
|
|
200
|
+
if elmtype in tets:
|
|
201
|
+
!! ordering = [0,1,2,3]
|
|
202
|
+
if elmtype == tet10:
|
|
203
|
+
!! ordering += [4,6,7,5,9,8]
|
|
204
|
+
elif elmtype in hexes:
|
|
205
|
+
!! ordering = [0,1,5,4,3,2,6,7]
|
|
206
|
+
if elmtype == hex20:
|
|
207
|
+
!! ordering += [8,16,10,12,13,19,15,14,9,11,18,17]
|
|
208
|
+
elif elmtype in prisms:
|
|
209
|
+
!! ordering = [0,2,1,3,5,4]
|
|
210
|
+
if elmtype == prism15:
|
|
211
|
+
!! ordering += [7,6,9,8,11,10,13,12,14]
|
|
212
|
+
elif elmtype in pyramids:
|
|
213
|
+
!! ordering = [3,2,1,0,4]
|
|
214
|
+
if elmtype == pyramid13:
|
|
215
|
+
!! ordering += [10,5,6,8,12,11,9,7]
|
|
216
|
+
!!! mesh.Add(Element3D(index, [nodenums2[i] for i in ordering]))
|
|
217
|
+
|
|
218
|
+
return mesh
|
|
@@ -1,32 +1,50 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "Coreform_Cubit_Mesh_Export"
|
|
7
|
-
version = "0.9.
|
|
7
|
+
version = "0.9.3"
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "Kengo Sugahara", email = "ksugahar@gmail.com"},
|
|
10
10
|
]
|
|
11
|
-
|
|
11
|
+
maintainers = [
|
|
12
|
+
{name = "Kengo Sugahara", email = "ksugahar@gmail.com"},
|
|
13
|
+
]
|
|
14
|
+
description = "Cubit mesh export to various formats including Gmsh, Nastran, and VTK"
|
|
12
15
|
readme = "README.md"
|
|
16
|
+
license = {text = "BSD-3-Clause"}
|
|
13
17
|
requires-python = ">=3.7"
|
|
14
18
|
classifiers = [
|
|
19
|
+
"Development Status :: 4 - Beta",
|
|
15
20
|
"Intended Audience :: Science/Research",
|
|
16
21
|
"License :: OSI Approved :: BSD License",
|
|
22
|
+
"Operating System :: OS Independent",
|
|
17
23
|
"Programming Language :: Python :: 3",
|
|
18
24
|
"Programming Language :: Python :: 3.7",
|
|
19
25
|
"Programming Language :: Python :: 3.8",
|
|
20
26
|
"Programming Language :: Python :: 3.9",
|
|
21
27
|
"Programming Language :: Python :: 3.10",
|
|
22
28
|
"Programming Language :: Python :: 3.11",
|
|
29
|
+
"Programming Language :: Python :: 3.12",
|
|
23
30
|
"Topic :: Scientific/Engineering",
|
|
31
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
24
32
|
]
|
|
25
33
|
dependencies = [
|
|
26
34
|
"numpy>=1.20.3",
|
|
27
35
|
"scipy>=1.6.3",
|
|
28
36
|
]
|
|
37
|
+
keywords = ["cubit", "mesh", "gmsh", "nastran", "vtk", "export", "coreform"]
|
|
29
38
|
|
|
30
39
|
[project.urls]
|
|
31
40
|
Homepage = "https://github.com/ksugahar/Coreform_Cubit_Mesh_Export"
|
|
32
|
-
Repository = "https://github.com/ksugahar/Coreform_Cubit_Mesh_Export"
|
|
41
|
+
Repository = "https://github.com/ksugahar/Coreform_Cubit_Mesh_Export"
|
|
42
|
+
"Bug Tracker" = "https://github.com/ksugahar/Coreform_Cubit_Mesh_Export/issues"
|
|
43
|
+
|
|
44
|
+
[tool.setuptools]
|
|
45
|
+
py-modules = ["cubit_mesh_export"]
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.packages.find]
|
|
48
|
+
where = ["."]
|
|
49
|
+
include = ["*"]
|
|
50
|
+
exclude = ["tests*", "examples*", "docs*"]
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Author: Kengo Sugahara <ksugahar@gmail.com>
|
|
2
|
-
# Copyright (c) 2024 Kengo Sugahara
|
|
3
|
-
# License: BSD 3 clause
|
|
4
|
-
|
|
5
|
-
from setuptools import setup, find_packages
|
|
6
|
-
|
|
7
|
-
DESCRIPTION = "Cubit_Mesh_Export: Cubit mesh export to Gmsh format"
|
|
8
|
-
NAME = 'Coreform_Cubit_Mesh_Export'
|
|
9
|
-
AUTHOR = 'Kengo Sugahara'
|
|
10
|
-
AUTHOR_EMAIL = 'ksugahar@gmail.com'
|
|
11
|
-
URL = 'https://github.com/ksugahar/Coreform_Cubit_Mesh_Export'
|
|
12
|
-
LICENSE = 'BSD 3-Clause'
|
|
13
|
-
DOWNLOAD_URL = 'https://github.com/ksugahar/Coreform_Cubit_Mesh_Export'
|
|
14
|
-
VERSION = '0.9.2'
|
|
15
|
-
PYTHON_REQUIRES = ">=3.7"
|
|
16
|
-
|
|
17
|
-
INSTALL_REQUIRES = [
|
|
18
|
-
'numpy >=1.20.3',
|
|
19
|
-
'scipy>=1.6.3',
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
EXTRAS_REQUIRE = {
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
PACKAGES = find_packages()
|
|
26
|
-
PY_MODULES = ['cubit_mesh_export']
|
|
27
|
-
|
|
28
|
-
CLASSIFIERS = [
|
|
29
|
-
'Intended Audience :: Science/Research',
|
|
30
|
-
'License :: OSI Approved :: BSD License',
|
|
31
|
-
'Programming Language :: Python :: 3',
|
|
32
|
-
'Programming Language :: Python :: 3.6',
|
|
33
|
-
'Programming Language :: Python :: 3.7',
|
|
34
|
-
'Programming Language :: Python :: 3.8',
|
|
35
|
-
'Programming Language :: Python :: 3.9',
|
|
36
|
-
'Programming Language :: Python :: 3 :: Only',
|
|
37
|
-
'Topic :: Scientific/Engineering',
|
|
38
|
-
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
setup(name=NAME,
|
|
42
|
-
author=AUTHOR,
|
|
43
|
-
author_email=AUTHOR_EMAIL,
|
|
44
|
-
maintainer=AUTHOR,
|
|
45
|
-
maintainer_email=AUTHOR_EMAIL,
|
|
46
|
-
description=DESCRIPTION,
|
|
47
|
-
long_description=open('README.md', 'r', encoding='utf-8').read(),
|
|
48
|
-
long_description_content_type='text/markdown',
|
|
49
|
-
license=LICENSE,
|
|
50
|
-
url=URL,
|
|
51
|
-
version=VERSION,
|
|
52
|
-
download_url=DOWNLOAD_URL,
|
|
53
|
-
python_requires=PYTHON_REQUIRES,
|
|
54
|
-
install_requires=INSTALL_REQUIRES,
|
|
55
|
-
extras_require=EXTRAS_REQUIRE,
|
|
56
|
-
packages=PACKAGES,
|
|
57
|
-
py_modules=PY_MODULES,
|
|
58
|
-
classifiers=CLASSIFIERS,
|
|
59
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|