pyrucast 0.1.0__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.
Files changed (184) hide show
  1. pyrucast-0.1.0/.gitignore +287 -0
  2. pyrucast-0.1.0/Cargo.lock +4236 -0
  3. pyrucast-0.1.0/Cargo.toml +98 -0
  4. pyrucast-0.1.0/LICENSE +373 -0
  5. pyrucast-0.1.0/PKG-INFO +107 -0
  6. pyrucast-0.1.0/README.md +91 -0
  7. pyrucast-0.1.0/benches/parallel.rs +172 -0
  8. pyrucast-0.1.0/examples/plasticite_poutre_console.dgibi +147 -0
  9. pyrucast-0.1.0/examples/plasticite_poutre_console.rs +327 -0
  10. pyrucast-0.1.0/examples/plasticite_poutre_console_anderson.rs +482 -0
  11. pyrucast-0.1.0/examples/plasticite_poutre_console_benchmark.md +181 -0
  12. pyrucast-0.1.0/examples/plasticite_poutre_console_profil.rs +576 -0
  13. pyrucast-0.1.0/examples/profil_anderson.sh +118 -0
  14. pyrucast-0.1.0/pyproject.toml +51 -0
  15. pyrucast-0.1.0/python/pyrucast/__init__.py +92 -0
  16. pyrucast-0.1.0/python/pyrucast/_pyrucast/__init__.pyi +2903 -0
  17. pyrucast-0.1.0/python/pyrucast/assemble.py +30 -0
  18. pyrucast-0.1.0/python/pyrucast/behavior.py +9 -0
  19. pyrucast-0.1.0/python/pyrucast/build.py +17 -0
  20. pyrucast-0.1.0/python/pyrucast/export.py +9 -0
  21. pyrucast-0.1.0/python/pyrucast/field.py +75 -0
  22. pyrucast-0.1.0/python/pyrucast/mesher.py +62 -0
  23. pyrucast-0.1.0/python/pyrucast/py.typed +0 -0
  24. pyrucast-0.1.0/python/pyrucast/solver.py +13 -0
  25. pyrucast-0.1.0/python/pyrucast/store.py +12 -0
  26. pyrucast-0.1.0/python/pyrucast/thermomechanics.py +395 -0
  27. pyrucast-0.1.0/rustfmt.toml +6 -0
  28. pyrucast-0.1.0/src/UML.md +973 -0
  29. pyrucast-0.1.0/src/aggregate.rs +864 -0
  30. pyrucast-0.1.0/src/bin/scaling.rs +163 -0
  31. pyrucast-0.1.0/src/bin/stub_gen.rs +30 -0
  32. pyrucast-0.1.0/src/containers/element_field.rs +1028 -0
  33. pyrucast-0.1.0/src/containers/evolution.rs +1415 -0
  34. pyrucast-0.1.0/src/containers/field.rs +2160 -0
  35. pyrucast-0.1.0/src/containers/finite_element_space/element.rs +291 -0
  36. pyrucast-0.1.0/src/containers/finite_element_space/interpolation.rs +1056 -0
  37. pyrucast-0.1.0/src/containers/finite_element_space/mod.rs +1283 -0
  38. pyrucast-0.1.0/src/containers/finite_element_space/quadrature.rs +518 -0
  39. pyrucast-0.1.0/src/containers/matrix.rs +3007 -0
  40. pyrucast-0.1.0/src/containers/mesh/cell.rs +262 -0
  41. pyrucast-0.1.0/src/containers/mesh/color.rs +97 -0
  42. pyrucast-0.1.0/src/containers/mesh/coords.rs +574 -0
  43. pyrucast-0.1.0/src/containers/mesh/element_type.rs +339 -0
  44. pyrucast-0.1.0/src/containers/mesh/mod.rs +1143 -0
  45. pyrucast-0.1.0/src/containers/mesh/node.rs +214 -0
  46. pyrucast-0.1.0/src/containers/mesh/point.rs +14 -0
  47. pyrucast-0.1.0/src/containers/mod.rs +22 -0
  48. pyrucast-0.1.0/src/containers/model.rs +1859 -0
  49. pyrucast-0.1.0/src/containers/node_field.rs +1341 -0
  50. pyrucast-0.1.0/src/dump.rs +291 -0
  51. pyrucast-0.1.0/src/error.rs +85 -0
  52. pyrucast-0.1.0/src/interrupt.rs +123 -0
  53. pyrucast-0.1.0/src/lib.rs +194 -0
  54. pyrucast-0.1.0/src/models/contact.rs +487 -0
  55. pyrucast-0.1.0/src/models/convection.rs +324 -0
  56. pyrucast-0.1.0/src/models/dirichlet.rs +305 -0
  57. pyrucast-0.1.0/src/models/elasticity.rs +673 -0
  58. pyrucast-0.1.0/src/models/embedded.rs +549 -0
  59. pyrucast-0.1.0/src/models/frame.rs +462 -0
  60. pyrucast-0.1.0/src/models/frame3d.rs +567 -0
  61. pyrucast-0.1.0/src/models/heat_conduction.rs +351 -0
  62. pyrucast-0.1.0/src/models/kernel.rs +789 -0
  63. pyrucast-0.1.0/src/models/mazars.rs +590 -0
  64. pyrucast-0.1.0/src/models/mod.rs +878 -0
  65. pyrucast-0.1.0/src/models/mpc.rs +417 -0
  66. pyrucast-0.1.0/src/models/plasticity.rs +991 -0
  67. pyrucast-0.1.0/src/models/timoshenko.rs +391 -0
  68. pyrucast-0.1.0/src/models/truss.rs +437 -0
  69. pyrucast-0.1.0/src/ops/assemble/coloring.rs +147 -0
  70. pyrucast-0.1.0/src/ops/assemble/flux.rs +210 -0
  71. pyrucast-0.1.0/src/ops/assemble/internal_forces.rs +291 -0
  72. pyrucast-0.1.0/src/ops/assemble/mod.rs +805 -0
  73. pyrucast-0.1.0/src/ops/assemble/scatter.rs +335 -0
  74. pyrucast-0.1.0/src/ops/behavior.rs +285 -0
  75. pyrucast-0.1.0/src/ops/build/material_field.rs +387 -0
  76. pyrucast-0.1.0/src/ops/build/mod.rs +11 -0
  77. pyrucast-0.1.0/src/ops/export/mod.rs +11 -0
  78. pyrucast-0.1.0/src/ops/export/vtk.rs +425 -0
  79. pyrucast-0.1.0/src/ops/field/band.rs +115 -0
  80. pyrucast-0.1.0/src/ops/field/beam_deformation.rs +130 -0
  81. pyrucast-0.1.0/src/ops/field/consolidate_element.rs +265 -0
  82. pyrucast-0.1.0/src/ops/field/consolidate_node.rs +278 -0
  83. pyrucast-0.1.0/src/ops/field/coordinates.rs +376 -0
  84. pyrucast-0.1.0/src/ops/field/deformation.rs +144 -0
  85. pyrucast-0.1.0/src/ops/field/divergence.rs +197 -0
  86. pyrucast-0.1.0/src/ops/field/elementwise.rs +141 -0
  87. pyrucast-0.1.0/src/ops/field/frame_deformation.rs +358 -0
  88. pyrucast-0.1.0/src/ops/field/gradient.rs +136 -0
  89. pyrucast-0.1.0/src/ops/field/integral.rs +228 -0
  90. pyrucast-0.1.0/src/ops/field/interp_to_gauss.rs +162 -0
  91. pyrucast-0.1.0/src/ops/field/mask.rs +263 -0
  92. pyrucast-0.1.0/src/ops/field/merge.rs +113 -0
  93. pyrucast-0.1.0/src/ops/field/mod.rs +47 -0
  94. pyrucast-0.1.0/src/ops/field/restrict.rs +340 -0
  95. pyrucast-0.1.0/src/ops/field/select.rs +433 -0
  96. pyrucast-0.1.0/src/ops/field/thermal_strain.rs +200 -0
  97. pyrucast-0.1.0/src/ops/geom/locate.rs +634 -0
  98. pyrucast-0.1.0/src/ops/geom/mod.rs +14 -0
  99. pyrucast-0.1.0/src/ops/geom/nearest.rs +98 -0
  100. pyrucast-0.1.0/src/ops/geom/project.rs +447 -0
  101. pyrucast-0.1.0/src/ops/mesher/arc.rs +236 -0
  102. pyrucast-0.1.0/src/ops/mesher/barycenter.rs +182 -0
  103. pyrucast-0.1.0/src/ops/mesher/border.rs +299 -0
  104. pyrucast-0.1.0/src/ops/mesher/circle.rs +192 -0
  105. pyrucast-0.1.0/src/ops/mesher/consolidate.rs +170 -0
  106. pyrucast-0.1.0/src/ops/mesher/convert.rs +231 -0
  107. pyrucast-0.1.0/src/ops/mesher/elements_on.rs +197 -0
  108. pyrucast-0.1.0/src/ops/mesher/extrude.rs +136 -0
  109. pyrucast-0.1.0/src/ops/mesher/from_live_nodes.rs +38 -0
  110. pyrucast-0.1.0/src/ops/mesher/gmsh.rs +1414 -0
  111. pyrucast-0.1.0/src/ops/mesher/line.rs +144 -0
  112. pyrucast-0.1.0/src/ops/mesher/merge_nodes.rs +289 -0
  113. pyrucast-0.1.0/src/ops/mesher/mod.rs +58 -0
  114. pyrucast-0.1.0/src/ops/mesher/orient.rs +588 -0
  115. pyrucast-0.1.0/src/ops/mesher/quadratic.rs +226 -0
  116. pyrucast-0.1.0/src/ops/mesher/skin.rs +458 -0
  117. pyrucast-0.1.0/src/ops/mesher/sweep.rs +273 -0
  118. pyrucast-0.1.0/src/ops/mesher/sweep_kernel.rs +434 -0
  119. pyrucast-0.1.0/src/ops/mesher/sweep_solid.rs +109 -0
  120. pyrucast-0.1.0/src/ops/mesher/to_poi1.rs +110 -0
  121. pyrucast-0.1.0/src/ops/mesher/transfinite.rs +359 -0
  122. pyrucast-0.1.0/src/ops/mesher/transform.rs +239 -0
  123. pyrucast-0.1.0/src/ops/mesher/triangulate_surface.rs +2315 -0
  124. pyrucast-0.1.0/src/ops/mesher/triangulation/cdt.rs +2358 -0
  125. pyrucast-0.1.0/src/ops/mesher/triangulation.rs +425 -0
  126. pyrucast-0.1.0/src/ops/mesher/volume.rs +1708 -0
  127. pyrucast-0.1.0/src/ops/mod.rs +41 -0
  128. pyrucast-0.1.0/src/ops/solver/eliminate.rs +500 -0
  129. pyrucast-0.1.0/src/ops/solver/lu.rs +698 -0
  130. pyrucast-0.1.0/src/ops/solver/mod.rs +11 -0
  131. pyrucast-0.1.0/src/ops/solver/unilateral.rs +920 -0
  132. pyrucast-0.1.0/src/parallel.rs +140 -0
  133. pyrucast-0.1.0/src/persist.rs +57 -0
  134. pyrucast-0.1.0/src/py/cell.rs +79 -0
  135. pyrucast-0.1.0/src/py/coords.rs +135 -0
  136. pyrucast-0.1.0/src/py/element.rs +111 -0
  137. pyrucast-0.1.0/src/py/element_field.rs +505 -0
  138. pyrucast-0.1.0/src/py/evolution.rs +440 -0
  139. pyrucast-0.1.0/src/py/finite_element_space.rs +271 -0
  140. pyrucast-0.1.0/src/py/matrix.rs +355 -0
  141. pyrucast-0.1.0/src/py/mesh.rs +409 -0
  142. pyrucast-0.1.0/src/py/mod.rs +20 -0
  143. pyrucast-0.1.0/src/py/model.rs +528 -0
  144. pyrucast-0.1.0/src/py/node.rs +90 -0
  145. pyrucast-0.1.0/src/py/node_field.rs +587 -0
  146. pyrucast-0.1.0/src/py/ops/assemble.rs +164 -0
  147. pyrucast-0.1.0/src/py/ops/behavior.rs +45 -0
  148. pyrucast-0.1.0/src/py/ops/build.rs +70 -0
  149. pyrucast-0.1.0/src/py/ops/export.rs +43 -0
  150. pyrucast-0.1.0/src/py/ops/field.rs +711 -0
  151. pyrucast-0.1.0/src/py/ops/mesher.rs +455 -0
  152. pyrucast-0.1.0/src/py/ops/mod.rs +55 -0
  153. pyrucast-0.1.0/src/py/ops/solver.rs +175 -0
  154. pyrucast-0.1.0/src/py/signals.rs +23 -0
  155. pyrucast-0.1.0/src/store.rs +773 -0
  156. pyrucast-0.1.0/src/viz/axes.rs +126 -0
  157. pyrucast-0.1.0/src/viz/camera.rs +228 -0
  158. pyrucast-0.1.0/src/viz/curve.rs +165 -0
  159. pyrucast-0.1.0/src/viz/drawable.rs +35 -0
  160. pyrucast-0.1.0/src/viz/field_color.rs +908 -0
  161. pyrucast-0.1.0/src/viz/mesh_draw.rs +1338 -0
  162. pyrucast-0.1.0/src/viz/mod.rs +651 -0
  163. pyrucast-0.1.0/src/viz/overlay.rs +446 -0
  164. pyrucast-0.1.0/src/viz/subdivide.rs +543 -0
  165. pyrucast-0.1.0/src/viz/window.rs +849 -0
  166. pyrucast-0.1.0/tests/contact.rs +358 -0
  167. pyrucast-0.1.0/tests/elasticity.rs +179 -0
  168. pyrucast-0.1.0/tests/embedded.rs +314 -0
  169. pyrucast-0.1.0/tests/frame.rs +105 -0
  170. pyrucast-0.1.0/tests/frame3d.rs +124 -0
  171. pyrucast-0.1.0/tests/geometric.rs +91 -0
  172. pyrucast-0.1.0/tests/integration.rs +234 -0
  173. pyrucast-0.1.0/tests/mass.rs +120 -0
  174. pyrucast-0.1.0/tests/mpc.rs +644 -0
  175. pyrucast-0.1.0/tests/structural.rs +285 -0
  176. pyrucast-0.1.0/tests/tangent.rs +212 -0
  177. pyrucast-0.1.0/tests/thermal_convection.rs +141 -0
  178. pyrucast-0.1.0/tests/thermal_line.rs +105 -0
  179. pyrucast-0.1.0/tests/thermal_square.rs +145 -0
  180. pyrucast-0.1.0/tests/thermoelastic_bar.rs +134 -0
  181. pyrucast-0.1.0/tests/timoshenko.rs +164 -0
  182. pyrucast-0.1.0/tests/truss.rs +88 -0
  183. pyrucast-0.1.0/tests/unilateral.rs +411 -0
  184. pyrucast-0.1.0/tests/viz.rs +528 -0
@@ -0,0 +1,287 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,vim,rust,rust-analyzer,python,jupyternotebooks,venv,mdbook
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,vim,rust,rust-analyzer,python,jupyternotebooks,venv,mdbook
3
+
4
+ ### JupyterNotebooks ###
5
+ # gitignore template for Jupyter Notebooks
6
+ # website: http://jupyter.org/
7
+
8
+ .ipynb_checkpoints
9
+ */.ipynb_checkpoints/*
10
+
11
+ # IPython
12
+ profile_default/
13
+ ipython_config.py
14
+
15
+ # Remove previous ipynb_checkpoints
16
+ # git rm -r .ipynb_checkpoints/
17
+
18
+ ### MdBook ###
19
+ book/book
20
+
21
+
22
+ ### Python ###
23
+ # Byte-compiled / optimized / DLL files
24
+ __pycache__/
25
+ *.py[cod]
26
+ *$py.class
27
+
28
+ # C extensions
29
+ *.so
30
+
31
+ # Distribution / packaging
32
+ .Python
33
+ build/
34
+ develop-eggs/
35
+ dist/
36
+ downloads/
37
+ eggs/
38
+ .eggs/
39
+ lib/
40
+ lib64/
41
+ parts/
42
+ sdist/
43
+ var/
44
+ wheels/
45
+ share/python-wheels/
46
+ *.egg-info/
47
+ .installed.cfg
48
+ *.egg
49
+ MANIFEST
50
+
51
+ # PyInstaller
52
+ # Usually these files are written by a python script from a template
53
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
54
+ *.manifest
55
+ *.spec
56
+
57
+ # Installer logs
58
+ pip-log.txt
59
+ pip-delete-this-directory.txt
60
+
61
+ # Unit test / coverage reports
62
+ htmlcov/
63
+ .tox/
64
+ .nox/
65
+ .coverage
66
+ .coverage.*
67
+ .cache
68
+ nosetests.xml
69
+ coverage.xml
70
+ *.cover
71
+ *.py,cover
72
+ .hypothesis/
73
+ .pytest_cache/
74
+ cover/
75
+
76
+ # Translations
77
+ *.mo
78
+ *.pot
79
+
80
+ # Django stuff:
81
+ *.log
82
+ local_settings.py
83
+ db.sqlite3
84
+ db.sqlite3-journal
85
+
86
+ # Flask stuff:
87
+ instance/
88
+ .webassets-cache
89
+
90
+ # Scrapy stuff:
91
+ .scrapy
92
+
93
+ # Sphinx documentation
94
+ docs/_build/
95
+
96
+ # PyBuilder
97
+ .pybuilder/
98
+ target/
99
+
100
+ # Jupyter Notebook
101
+
102
+ # IPython
103
+
104
+ # pyenv
105
+ # For a library or package, you might want to ignore these files since the code is
106
+ # intended to run in multiple environments; otherwise, check them in:
107
+ # .python-version
108
+
109
+ # pipenv
110
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
111
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
112
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
113
+ # install all needed dependencies.
114
+ #Pipfile.lock
115
+
116
+ # poetry
117
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
118
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
119
+ # commonly ignored for libraries.
120
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
121
+ #poetry.lock
122
+
123
+ # pdm
124
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
125
+ #pdm.lock
126
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
127
+ # in version control.
128
+ # https://pdm.fming.dev/#use-with-ide
129
+ .pdm.toml
130
+
131
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
132
+ __pypackages__/
133
+
134
+ # Celery stuff
135
+ celerybeat-schedule
136
+ celerybeat.pid
137
+
138
+ # SageMath parsed files
139
+ *.sage.py
140
+
141
+ # Environments
142
+ .env
143
+ .venv
144
+ env/
145
+ venv/
146
+ ENV/
147
+ env.bak/
148
+ venv.bak/
149
+
150
+ # Spyder project settings
151
+ .spyderproject
152
+ .spyproject
153
+
154
+ # Rope project settings
155
+ .ropeproject
156
+
157
+ # mkdocs documentation
158
+ /site
159
+
160
+ # mypy
161
+ .mypy_cache/
162
+ .dmypy.json
163
+ dmypy.json
164
+
165
+ # Pyre type checker
166
+ .pyre/
167
+
168
+ # pytype static type analyzer
169
+ .pytype/
170
+
171
+ # Cython debug symbols
172
+ cython_debug/
173
+
174
+ # PyCharm
175
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
176
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
177
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
178
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
179
+ #.idea/
180
+
181
+ ### Python Patch ###
182
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
183
+ poetry.toml
184
+
185
+ # ruff
186
+ .ruff_cache/
187
+
188
+ # LSP config files
189
+ pyrightconfig.json
190
+
191
+ ### Rust ###
192
+ # Generated by Cargo
193
+ # will have compiled files and executables
194
+ debug/
195
+
196
+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
197
+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
198
+ Cargo.lock
199
+
200
+ # These are backup files generated by rustfmt
201
+ **/*.rs.bk
202
+
203
+ # MSVC Windows builds of rustc generate these, which store debugging information
204
+ *.pdb
205
+
206
+ ### rust-analyzer ###
207
+ # Can be generated by other build systems other than cargo (ex: bazelbuild/rust_rules)
208
+ rust-project.json
209
+
210
+
211
+ ### venv ###
212
+ # Virtualenv
213
+ # http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
214
+ [Bb]in
215
+ [Ii]nclude
216
+ [Ll]ib
217
+ [Ll]ib64
218
+ [Ll]ocal
219
+ [Ss]cripts
220
+ pyvenv.cfg
221
+ pip-selfcheck.json
222
+
223
+ # Whitelist Cargo's binary-crate directory (the venv patterns above
224
+ # would otherwise hide src/bin/).
225
+ !/src/bin/
226
+ !/src/bin/**
227
+
228
+ # Whitelist the ops::build source module — the `build/` pattern from the
229
+ # Python template above otherwise hides src/ops/build/ and its files
230
+ # never get committed (the crate then fails to compile from a fresh
231
+ # clone, since ops/mod.rs declares `pub mod build;`).
232
+ !/src/ops/build/
233
+ !/src/ops/build/**
234
+
235
+ ### Vim ###
236
+ # Swap
237
+ [._]*.s[a-v][a-z]
238
+ !*.svg # comment out if you don't need vector files
239
+ [._]*.sw[a-p]
240
+ [._]s[a-rt-v][a-z]
241
+ [._]ss[a-gi-z]
242
+ [._]sw[a-p]
243
+
244
+ # Session
245
+ Session.vim
246
+ Sessionx.vim
247
+
248
+ # Temporary
249
+ .netrwhist
250
+ *~
251
+ # Auto-generated tag files
252
+ tags
253
+ # Persistent undo
254
+ [._]*.un~
255
+
256
+ ### VisualStudioCode ###
257
+ .vscode/*
258
+ !.vscode/settings.json
259
+ !.vscode/tasks.json
260
+ !.vscode/launch.json
261
+ !.vscode/extensions.json
262
+ !.vscode/*.code-snippets
263
+
264
+ # Local History for Visual Studio Code
265
+ .history/
266
+
267
+ # Built Visual Studio Code Extensions
268
+ *.vsix
269
+
270
+ ### VisualStudioCode Patch ###
271
+ # Ignore all local history of files
272
+ .history
273
+ .ionide
274
+
275
+ # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,vim,rust,rust-analyzer,python,jupyternotebooks,venv,mdbook
276
+
277
+ # Recall: keep the versioned resume summary (context.md), ignore the local
278
+ # raw transcript log and capture state.
279
+ .recall/history.md
280
+ .recall/.capture.json
281
+ .recall/.capture-paused
282
+ book/.recall/history.md
283
+ book/.recall/.capture.json
284
+ book/.recall/.capture-paused
285
+
286
+ # Cast3M : fichiers de trace generes a l'execution
287
+ *.trace