pyroll-core 2.0.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 (70) hide show
  1. pyroll_core-2.0.0/.gitignore +430 -0
  2. pyroll_core-2.0.0/LICENSE +11 -0
  3. pyroll_core-2.0.0/PKG-INFO +109 -0
  4. pyroll_core-2.0.0/README.md +77 -0
  5. pyroll_core-2.0.0/hatch.toml +30 -0
  6. pyroll_core-2.0.0/pyproject.toml +47 -0
  7. pyroll_core-2.0.0/pyroll/core/__init__.py +38 -0
  8. pyroll_core-2.0.0/pyroll/core/config.py +155 -0
  9. pyroll_core-2.0.0/pyroll/core/disk_elements/__init__.py +2 -0
  10. pyroll_core-2.0.0/pyroll/core/disk_elements/disk_element_unit.py +73 -0
  11. pyroll_core-2.0.0/pyroll/core/disk_elements/hookimpls.py +26 -0
  12. pyroll_core-2.0.0/pyroll/core/grooves/__init__.py +10 -0
  13. pyroll_core-2.0.0/pyroll/core/grooves/base.py +59 -0
  14. pyroll_core-2.0.0/pyroll/core/grooves/boxes/__init__.py +3 -0
  15. pyroll_core-2.0.0/pyroll/core/grooves/boxes/box.py +57 -0
  16. pyroll_core-2.0.0/pyroll/core/grooves/boxes/constricted_box.py +63 -0
  17. pyroll_core-2.0.0/pyroll/core/grooves/boxes/upset_box.py +18 -0
  18. pyroll_core-2.0.0/pyroll/core/grooves/diamonds/__init__.py +3 -0
  19. pyroll_core-2.0.0/pyroll/core/grooves/diamonds/diamond.py +60 -0
  20. pyroll_core-2.0.0/pyroll/core/grooves/diamonds/gothic.py +41 -0
  21. pyroll_core-2.0.0/pyroll/core/grooves/diamonds/square.py +48 -0
  22. pyroll_core-2.0.0/pyroll/core/grooves/flat.py +31 -0
  23. pyroll_core-2.0.0/pyroll/core/grooves/generic_elongation.py +258 -0
  24. pyroll_core-2.0.0/pyroll/core/grooves/generic_elongation_solvers.py +422 -0
  25. pyroll_core-2.0.0/pyroll/core/grooves/hexagonal.py +57 -0
  26. pyroll_core-2.0.0/pyroll/core/grooves/ovals/__init__.py +8 -0
  27. pyroll_core-2.0.0/pyroll/core/grooves/ovals/circular_oval.py +43 -0
  28. pyroll_core-2.0.0/pyroll/core/grooves/ovals/constricted_circular_oval.py +53 -0
  29. pyroll_core-2.0.0/pyroll/core/grooves/ovals/constricted_swedish_oval.py +61 -0
  30. pyroll_core-2.0.0/pyroll/core/grooves/ovals/flat_oval.py +56 -0
  31. pyroll_core-2.0.0/pyroll/core/grooves/ovals/oval_3radii.py +47 -0
  32. pyroll_core-2.0.0/pyroll/core/grooves/ovals/oval_3radii_flanked.py +65 -0
  33. pyroll_core-2.0.0/pyroll/core/grooves/ovals/swedish_oval.py +57 -0
  34. pyroll_core-2.0.0/pyroll/core/grooves/ovals/upset_oval.py +47 -0
  35. pyroll_core-2.0.0/pyroll/core/grooves/rounds/__init__.py +2 -0
  36. pyroll_core-2.0.0/pyroll/core/grooves/rounds/false_round.py +65 -0
  37. pyroll_core-2.0.0/pyroll/core/grooves/rounds/round.py +44 -0
  38. pyroll_core-2.0.0/pyroll/core/grooves/spline.py +92 -0
  39. pyroll_core-2.0.0/pyroll/core/hooks.py +420 -0
  40. pyroll_core-2.0.0/pyroll/core/log.py +7 -0
  41. pyroll_core-2.0.0/pyroll/core/profile/__init__.py +3 -0
  42. pyroll_core-2.0.0/pyroll/core/profile/hookimpls.py +58 -0
  43. pyroll_core-2.0.0/pyroll/core/profile/profile.py +380 -0
  44. pyroll_core-2.0.0/pyroll/core/repr.py +49 -0
  45. pyroll_core-2.0.0/pyroll/core/roll/__init__.py +3 -0
  46. pyroll_core-2.0.0/pyroll/core/roll/hookimpls.py +65 -0
  47. pyroll_core-2.0.0/pyroll/core/roll/roll.py +145 -0
  48. pyroll_core-2.0.0/pyroll/core/roll_pass/__init__.py +8 -0
  49. pyroll_core-2.0.0/pyroll/core/roll_pass/deformation_unit.py +61 -0
  50. pyroll_core-2.0.0/pyroll/core/roll_pass/hookimpls/__init__.py +5 -0
  51. pyroll_core-2.0.0/pyroll/core/roll_pass/hookimpls/deformation_unit.py +78 -0
  52. pyroll_core-2.0.0/pyroll/core/roll_pass/hookimpls/disk_element.py +16 -0
  53. pyroll_core-2.0.0/pyroll/core/roll_pass/hookimpls/profile.py +94 -0
  54. pyroll_core-2.0.0/pyroll/core/roll_pass/hookimpls/roll.py +43 -0
  55. pyroll_core-2.0.0/pyroll/core/roll_pass/hookimpls/roll_pass.py +107 -0
  56. pyroll_core-2.0.0/pyroll/core/roll_pass/roll_pass.py +168 -0
  57. pyroll_core-2.0.0/pyroll/core/roll_pass/three_roll_pass.py +84 -0
  58. pyroll_core-2.0.0/pyroll/core/rotator/__init__.py +3 -0
  59. pyroll_core-2.0.0/pyroll/core/rotator/hookimpls.py +71 -0
  60. pyroll_core-2.0.0/pyroll/core/rotator/rotator.py +65 -0
  61. pyroll_core-2.0.0/pyroll/core/sequence/__init__.py +3 -0
  62. pyroll_core-2.0.0/pyroll/core/sequence/hookimpls.py +18 -0
  63. pyroll_core-2.0.0/pyroll/core/sequence/sequence.py +68 -0
  64. pyroll_core-2.0.0/pyroll/core/shapes.py +104 -0
  65. pyroll_core-2.0.0/pyroll/core/transport/__init__.py +3 -0
  66. pyroll_core-2.0.0/pyroll/core/transport/hookimpls.py +17 -0
  67. pyroll_core-2.0.0/pyroll/core/transport/transport.py +57 -0
  68. pyroll_core-2.0.0/pyroll/core/unit/__init__.py +3 -0
  69. pyroll_core-2.0.0/pyroll/core/unit/hookimpls.py +67 -0
  70. pyroll_core-2.0.0/pyroll/core/unit/unit.py +271 -0
@@ -0,0 +1,430 @@
1
+ ## Python
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ # For a library or package, you might want to ignore these files since the code is
89
+ # intended to run in multiple environments; otherwise, check them in:
90
+ # .python-version
91
+
92
+ # pipenv
93
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
95
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
96
+ # install all needed dependencies.
97
+ #Pipfile.lock
98
+
99
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
100
+ __pypackages__/
101
+
102
+ # Celery stuff
103
+ celerybeat-schedule
104
+ celerybeat.pid
105
+
106
+ # SageMath parsed files
107
+ *.sage.py
108
+
109
+ # Environments
110
+ .env
111
+ .venv
112
+ env/
113
+ venv/
114
+ ENV/
115
+ env.bak/
116
+ venv.bak/
117
+
118
+ # Spyder project settings
119
+ .spyderproject
120
+ .spyproject
121
+
122
+ # Rope project settings
123
+ .ropeproject
124
+
125
+ # mkdocs documentation
126
+ /site
127
+
128
+ # mypy
129
+ .mypy_cache/
130
+ .dmypy.json
131
+ dmypy.json
132
+
133
+ # Pyre type checker
134
+ .pyre/
135
+
136
+ # pytype static type analyzer
137
+ .pytype/
138
+
139
+ # Cython debug symbols
140
+ cython_debug/
141
+
142
+ ## TeX
143
+
144
+ ## Core latex/pdflatex auxiliary files:
145
+ *.aux
146
+ *.lof
147
+ *.lot
148
+ *.fls
149
+ *.out
150
+ *.toc
151
+ *.fmt
152
+ *.fot
153
+ *.cb
154
+ *.cb2
155
+ .*.lb
156
+
157
+ ## Intermediate documents:
158
+ *.dvi
159
+ *.xdv
160
+ *-converted-to.*
161
+ # these rules might exclude image files for figures etc.
162
+ # *.ps
163
+ # *.eps
164
+ # *.pdf
165
+
166
+ ## Generated if empty string is given at "Please type another file name for output:"
167
+ .pdf
168
+
169
+ ## Bibliography auxiliary files (bibtex/biblatex/biber):
170
+ *.bbl
171
+ *.bcf
172
+ *.blg
173
+ *-blx.aux
174
+ *-blx.bib
175
+ *.run.xml
176
+
177
+ ## Build tool auxiliary files:
178
+ *.fdb_latexmk
179
+ *.synctex
180
+ *.synctex(busy)
181
+ *.synctex.gz
182
+ *.synctex.gz(busy)
183
+ *.pdfsync
184
+
185
+ ## Build tool directories for auxiliary files
186
+ # latexrun
187
+ latex.out/
188
+
189
+ ## Auxiliary and intermediate files from other packages:
190
+ # algorithms
191
+ *.alg
192
+ *.loa
193
+
194
+ # achemso
195
+ acs-*.bib
196
+
197
+ # amsthm
198
+ *.thm
199
+
200
+ # beamer
201
+ *.nav
202
+ *.pre
203
+ *.snm
204
+ *.vrb
205
+
206
+ # changes
207
+ *.soc
208
+
209
+ # comment
210
+ *.cut
211
+
212
+ # cprotect
213
+ *.cpt
214
+
215
+ # elsarticle (documentclass of Elsevier journals)
216
+ *.spl
217
+
218
+ # endnotes
219
+ *.ent
220
+
221
+ *.lox
222
+
223
+ # feynmf/feynmp
224
+ *.mf
225
+ *.mp
226
+ *.t[1-9]
227
+ *.t[1-9][0-9]
228
+ *.tfm
229
+
230
+ #(r)(e)ledmac/(r)(e)ledpar
231
+ *.end
232
+ *.?end
233
+ *.[1-9]
234
+ *.[1-9][0-9]
235
+ *.[1-9][0-9][0-9]
236
+ *.[1-9]R
237
+ *.[1-9][0-9]R
238
+ *.[1-9][0-9][0-9]R
239
+ *.eledsec[1-9]
240
+ *.eledsec[1-9]R
241
+ *.eledsec[1-9][0-9]
242
+ *.eledsec[1-9][0-9]R
243
+ *.eledsec[1-9][0-9][0-9]
244
+ *.eledsec[1-9][0-9][0-9]R
245
+
246
+ # glossaries
247
+ *.acn
248
+ *.acr
249
+ *.glg
250
+ *.glo
251
+ *.gls
252
+ *.glsdefs
253
+ *.lzo
254
+ *.lzs
255
+
256
+ # uncomment this for glossaries-extra (will ignore makeindex's style files!)
257
+ # *.ist
258
+
259
+ # gnuplottex
260
+ *-gnuplottex-*
261
+
262
+ # gregoriotex
263
+ *.gaux
264
+ *.glog
265
+ *.gtex
266
+
267
+ # htlatex
268
+ *.4ct
269
+ *.4tc
270
+ *.idv
271
+ *.lg
272
+ *.trc
273
+ *.xref
274
+
275
+ # hyperref
276
+ *.brf
277
+
278
+ # knitr
279
+ *-concordance.tex
280
+ # *.tikz
281
+ *-tikzDictionary
282
+
283
+ # listings
284
+ *.lol
285
+
286
+ # luatexja-ruby
287
+ *.ltjruby
288
+
289
+ # makeidx
290
+ *.idx
291
+ *.ilg
292
+ *.ind
293
+
294
+ # minitoc
295
+ *.maf
296
+ *.mlf
297
+ *.mlt
298
+ *.mtc[0-9]*
299
+ *.slf[0-9]*
300
+ *.slt[0-9]*
301
+ *.stc[0-9]*
302
+
303
+ # minted
304
+ _minted*
305
+ *.pyg
306
+
307
+ # morewrites
308
+ *.mw
309
+
310
+ # newpax
311
+ *.newpax
312
+
313
+ # nomencl
314
+ *.nlg
315
+ *.nlo
316
+ *.nls
317
+
318
+ # pax
319
+ *.pax
320
+
321
+ # pdfpcnotes
322
+ *.pdfpc
323
+
324
+ # sagetex
325
+ *.sagetex.sage
326
+ *.sagetex.py
327
+ *.sagetex.scmd
328
+
329
+ # scrwfile
330
+ *.wrt
331
+
332
+ # sympy
333
+ *.sout
334
+ *.sympy
335
+ sympy-plots-for-*.tex/
336
+
337
+ # pdfcomment
338
+ *.upa
339
+ *.upb
340
+
341
+ # pythontex
342
+ *.pytxcode
343
+ pythontex-files-*/
344
+
345
+ # tcolorbox
346
+ *.listing
347
+
348
+ # thmtools
349
+ *.loe
350
+
351
+ # TikZ & PGF
352
+ *.dpth
353
+ *.md5
354
+ *.auxlock
355
+
356
+ # todonotes
357
+ *.tdo
358
+
359
+ # vhistory
360
+ *.hst
361
+ *.ver
362
+
363
+ # easy
364
+ *.lod
365
+
366
+ # xcolor
367
+ *.xcp
368
+
369
+ # xmpincl
370
+ *.xmpi
371
+
372
+ # xindy
373
+ *.xdy
374
+
375
+ # xypic precompiled matrices and outlines
376
+ *.xyc
377
+ *.xyd
378
+
379
+ # endfloat
380
+ *.ttt
381
+ *.fff
382
+
383
+ # Latexian
384
+ TSWLatexianTemp*
385
+
386
+ ## Editors:
387
+ # WinEdt
388
+ *.bak
389
+ *.sav
390
+
391
+ # Texpad
392
+ .texpadtmp
393
+
394
+ # LyX
395
+ *.lyx~
396
+
397
+ # Kile
398
+ *.backup
399
+
400
+ # gummi
401
+ .*.swp
402
+
403
+ # KBibTeX
404
+ *~[0-9]*
405
+
406
+ # TeXnicCenter
407
+ *.tps
408
+
409
+ # auto folder when using emacs and auctex
410
+ ./auto/*
411
+ *.el
412
+
413
+ # expex forward references with \gathertags
414
+ *-tags.tex
415
+
416
+ # standalone packages
417
+ *.sta
418
+
419
+ # Makeindex log files
420
+ *.lpz
421
+
422
+ # xwatermark package
423
+ *.xwm
424
+
425
+ ## JetBrains
426
+
427
+ .idea
428
+
429
+ ## HTML report
430
+ /out/report.html
@@ -0,0 +1,11 @@
1
+ Copyright 2022 Max Weiner, Christoph Renzing, Matthias Schmidtchen, Max Stirl
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyroll-core
3
+ Version: 2.0.0
4
+ Summary: PyRoll rolling simulation framework - core library.
5
+ Project-URL: Homepage, https://pyroll-project.github.io
6
+ Project-URL: Repository, https://github.com/pyroll-project/pyroll-core
7
+ Project-URL: Documentation, https://pyroll.readthedocs.io/en/latest
8
+ Author-email: Max Weiner <max.weiner@imf.tu-freiberg.de>, Christoph Renzing <christoph.renzing@imf.tu-freiberg.de>, Matthias Schmidtchen <matthias.schmidtchen@imf.tu-freiberg.de>, Max Stirl <max.stirl@imf.tu-freiberg.de>
9
+ License-Expression: BSD-3-Clause
10
+ License-File: LICENSE
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Framework :: Hatch
13
+ Classifier: Framework :: IPython
14
+ Classifier: Framework :: Jupyter
15
+ Classifier: Framework :: Pytest
16
+ Classifier: Framework :: Sphinx
17
+ Classifier: Intended Audience :: Manufacturing
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: License :: OSI Approved :: BSD License
20
+ Classifier: Natural Language :: English
21
+ Classifier: Operating System :: OS Independent
22
+ Classifier: Programming Language :: Python :: 3
23
+ Classifier: Programming Language :: Python :: 3.9
24
+ Classifier: Programming Language :: Python :: 3.10
25
+ Classifier: Programming Language :: Python :: 3.11
26
+ Classifier: Topic :: Scientific/Engineering
27
+ Requires-Python: >=3.8
28
+ Requires-Dist: numpy~=1.19
29
+ Requires-Dist: scipy~=1.9.0
30
+ Requires-Dist: shapely~=2.0.0
31
+ Description-Content-Type: text/markdown
32
+
33
+ # PyRolL Rolling Simulation Framework
34
+
35
+ [![PyPI](https://img.shields.io/pypi/v/pyroll-core)](https://pypi.org/project/pyroll-core/)
36
+ ![Python Versions](https://img.shields.io/pypi/pyversions/pyroll-core)
37
+ [![License](https://img.shields.io/pypi/l/pyroll-core)](LICENSE)
38
+ ![Downloads](https://img.shields.io/pypi/dm/pyroll-core)
39
+
40
+ Welcome to The PyRolL Project!
41
+
42
+ PyRolL is an OpenSource rolling framework, aimed to provide a fast and extensible base for rolling simulation.
43
+ The current focus lies on groove rolling in elongation grooves.
44
+ The core package includes the basic data structures and algorithms.
45
+ Further functionality is provided via [extension packages](https://pyroll.readthedocs.io/en/latest/extensions/index.html) and model approaches are provided via [plugin packages](https://pyroll.readthedocs.io/en/latest/plugins/index.html).
46
+
47
+ ## Versions
48
+
49
+ The main branch of this repository contains the code of the version 2.0 of PyRolL, which is under ongoing development and currently in beta state.
50
+ See the [backport branch](https://github.com/pyroll-project/pyroll-core/tree/v1.0_backport) for the code of version 1.0.
51
+ Version 1.0 will be out of support, as version 2.0 is released.
52
+ Consider to start development targeting version 2.0 as soon as possible.
53
+ The API of version 2.0 is mostly fixed, but there may be minor but breaking changes until release.
54
+
55
+ ### Principal Changes of Version 2.0 Respective to 1.0
56
+
57
+ - Split of old `pyroll` package into `pyroll-core`, `pyroll-report`, `pyroll-export` and `pyroll-cli`.
58
+ - Complete reworking of the hook system.
59
+ - Implementation of own hooking framework and removal of pluggy.
60
+ - Simpler user interface for hook definition and implementation.
61
+ - More orthodox default hook implementations, removal of "basic models".
62
+ - Rework of the object model.
63
+ - Stricter hierarchy of unit classes.
64
+ - Extended possibilities of groove definition.
65
+ - Roll passes with three working rolls.
66
+ - New unit classes: `Rotator`, `PassSequence`, `ThreeRollPass`.
67
+ - Introduction of disk elements for incremental modelling in rolling direction.
68
+ - Nestable units (esp. pass sequences and disk elements).
69
+
70
+ ## Documentation
71
+
72
+ See the [documentation](https://pyroll.readthedocs.io/en/latest) to learn about basic concepts and
73
+ usage.
74
+ The documentation of version 1.0 can be found [here](https://pyroll.readthedocs.io/en/stable).
75
+
76
+ ## License
77
+
78
+ The project is licensed under the [BSD 3-Clause license](LICENSE).
79
+
80
+ ## Contributing
81
+
82
+ Feel free to open issues, or, fork and open pull requests, if you want to contribute to the core.
83
+ If you want to implement model approaches for use with PyRolL, create your own plugin package using our [plugin template](https://github.com/pyroll-project/pyroll-plugin-template).
84
+ To learn how to write plugins and extensions, please read the [documentation](https://pyroll.readthedocs.io/en/latest) and refer to the numerous existing plugins and extensions available at the [organization's GitHub page](https://github.com/pyroll-project).
85
+
86
+ ### Policy for Inclusion of Hooks in the Core
87
+
88
+ Since version 2.0 we try to include as many hooks as possible into the core, to tie down the nomenclature.
89
+ This seems necessary, since for the same concepts, often different terms exist in literature.
90
+ To avoid collisions and redundancies, it is better to include these hooks in the core, although some of them may come without implementation.
91
+ This improves the exchangeability of plugins.
92
+ If you like a hook to be included in the core, open an issue, or preferably, a pull request with the respective changes.
93
+ Supply your pull request with fallback implementations of the hook, if any meaningful exist.
94
+
95
+ From this policy we explicitly exclude hooks, that are solely of use for one model approach, namely "coefficients".
96
+ They are large in number across the whole plugin landscape, but usually named after the model and of no further use to other plugins.
97
+ So the benefit from including them in the core is small, while the pollution of the core would be exzessive.
98
+ If another plugin has to make use of them, just add a dependency for the respective source plugin.
99
+
100
+ A few examples for clarification:
101
+
102
+ - The hooks `Profile.surface_temperature` and `Profile.core_temperature` may be of interests to many plugins.
103
+ The core provides fallbacks which just return `self.temperature`, which is a good first estimate of those.
104
+ So plugins modelling surface and thermal effects can easily refer to the respective temperatures, without worrying, if there is a model describing the temperature gradient or not.
105
+ - The hook `Profile.freiberg_flow_stress_coefficients` from the `pyroll-freiberg-flow-stress` plugin makes no sense without the Freiberg flow stress model, so it is not included in the core.
106
+ - The hook `Profile.thermal_conductivity` is a material property useful to many plugins, but no meaningful fallback exists, since there is no default material.
107
+ So the provision of values or implementations is deferred to the user or developers of material databases.
108
+
109
+ So the core includes several hooks, that are not used by other core functionality, but provide a save ground for plugins.
@@ -0,0 +1,77 @@
1
+ # PyRolL Rolling Simulation Framework
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/pyroll-core)](https://pypi.org/project/pyroll-core/)
4
+ ![Python Versions](https://img.shields.io/pypi/pyversions/pyroll-core)
5
+ [![License](https://img.shields.io/pypi/l/pyroll-core)](LICENSE)
6
+ ![Downloads](https://img.shields.io/pypi/dm/pyroll-core)
7
+
8
+ Welcome to The PyRolL Project!
9
+
10
+ PyRolL is an OpenSource rolling framework, aimed to provide a fast and extensible base for rolling simulation.
11
+ The current focus lies on groove rolling in elongation grooves.
12
+ The core package includes the basic data structures and algorithms.
13
+ Further functionality is provided via [extension packages](https://pyroll.readthedocs.io/en/latest/extensions/index.html) and model approaches are provided via [plugin packages](https://pyroll.readthedocs.io/en/latest/plugins/index.html).
14
+
15
+ ## Versions
16
+
17
+ The main branch of this repository contains the code of the version 2.0 of PyRolL, which is under ongoing development and currently in beta state.
18
+ See the [backport branch](https://github.com/pyroll-project/pyroll-core/tree/v1.0_backport) for the code of version 1.0.
19
+ Version 1.0 will be out of support, as version 2.0 is released.
20
+ Consider to start development targeting version 2.0 as soon as possible.
21
+ The API of version 2.0 is mostly fixed, but there may be minor but breaking changes until release.
22
+
23
+ ### Principal Changes of Version 2.0 Respective to 1.0
24
+
25
+ - Split of old `pyroll` package into `pyroll-core`, `pyroll-report`, `pyroll-export` and `pyroll-cli`.
26
+ - Complete reworking of the hook system.
27
+ - Implementation of own hooking framework and removal of pluggy.
28
+ - Simpler user interface for hook definition and implementation.
29
+ - More orthodox default hook implementations, removal of "basic models".
30
+ - Rework of the object model.
31
+ - Stricter hierarchy of unit classes.
32
+ - Extended possibilities of groove definition.
33
+ - Roll passes with three working rolls.
34
+ - New unit classes: `Rotator`, `PassSequence`, `ThreeRollPass`.
35
+ - Introduction of disk elements for incremental modelling in rolling direction.
36
+ - Nestable units (esp. pass sequences and disk elements).
37
+
38
+ ## Documentation
39
+
40
+ See the [documentation](https://pyroll.readthedocs.io/en/latest) to learn about basic concepts and
41
+ usage.
42
+ The documentation of version 1.0 can be found [here](https://pyroll.readthedocs.io/en/stable).
43
+
44
+ ## License
45
+
46
+ The project is licensed under the [BSD 3-Clause license](LICENSE).
47
+
48
+ ## Contributing
49
+
50
+ Feel free to open issues, or, fork and open pull requests, if you want to contribute to the core.
51
+ If you want to implement model approaches for use with PyRolL, create your own plugin package using our [plugin template](https://github.com/pyroll-project/pyroll-plugin-template).
52
+ To learn how to write plugins and extensions, please read the [documentation](https://pyroll.readthedocs.io/en/latest) and refer to the numerous existing plugins and extensions available at the [organization's GitHub page](https://github.com/pyroll-project).
53
+
54
+ ### Policy for Inclusion of Hooks in the Core
55
+
56
+ Since version 2.0 we try to include as many hooks as possible into the core, to tie down the nomenclature.
57
+ This seems necessary, since for the same concepts, often different terms exist in literature.
58
+ To avoid collisions and redundancies, it is better to include these hooks in the core, although some of them may come without implementation.
59
+ This improves the exchangeability of plugins.
60
+ If you like a hook to be included in the core, open an issue, or preferably, a pull request with the respective changes.
61
+ Supply your pull request with fallback implementations of the hook, if any meaningful exist.
62
+
63
+ From this policy we explicitly exclude hooks, that are solely of use for one model approach, namely "coefficients".
64
+ They are large in number across the whole plugin landscape, but usually named after the model and of no further use to other plugins.
65
+ So the benefit from including them in the core is small, while the pollution of the core would be exzessive.
66
+ If another plugin has to make use of them, just add a dependency for the respective source plugin.
67
+
68
+ A few examples for clarification:
69
+
70
+ - The hooks `Profile.surface_temperature` and `Profile.core_temperature` may be of interests to many plugins.
71
+ The core provides fallbacks which just return `self.temperature`, which is a good first estimate of those.
72
+ So plugins modelling surface and thermal effects can easily refer to the respective temperatures, without worrying, if there is a model describing the temperature gradient or not.
73
+ - The hook `Profile.freiberg_flow_stress_coefficients` from the `pyroll-freiberg-flow-stress` plugin makes no sense without the Freiberg flow stress model, so it is not included in the core.
74
+ - The hook `Profile.thermal_conductivity` is a material property useful to many plugins, but no meaningful fallback exists, since there is no default material.
75
+ So the provision of values or implementations is deferred to the user or developers of material databases.
76
+
77
+ So the core includes several hooks, that are not used by other core functionality, but provide a save ground for plugins.
@@ -0,0 +1,30 @@
1
+ [build]
2
+ packages = [
3
+ "pyroll"
4
+ ]
5
+
6
+ [version]
7
+ path = "pyroll/core/__init__.py"
8
+
9
+ [envs.default]
10
+ path = ".venv"
11
+ dependencies = [
12
+ "ipython ~= 8.0",
13
+ "pytest ~= 7.0",
14
+ "matplotlib ~= 3.6",
15
+ # "pyroll-report ~= 2.0.0",
16
+ ]
17
+
18
+ [envs.test]
19
+ path = ""
20
+ dependencies = [
21
+ "pytest ~= 7.0",
22
+ "matplotlib ~= 3.6",
23
+ ]
24
+
25
+ [[envs.test.matrix]]
26
+ python = ["3.9", "3.10", "3.11"]
27
+
28
+ [envs.test.scripts]
29
+ all = "pytest tests"
30
+ solve = "pytest tests/test_solve.py"
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "pyroll-core"
7
+ description = "PyRoll rolling simulation framework - core library."
8
+ authors = [
9
+ { name = "Max Weiner", email = "max.weiner@imf.tu-freiberg.de" },
10
+ { name = "Christoph Renzing", email = "christoph.renzing@imf.tu-freiberg.de" },
11
+ { name = "Matthias Schmidtchen", email = "matthias.schmidtchen@imf.tu-freiberg.de" },
12
+ { name = "Max Stirl", email = "max.stirl@imf.tu-freiberg.de" },
13
+ ]
14
+ license = "BSD-3-Clause"
15
+ readme = "README.md"
16
+ classifiers = [
17
+ "Intended Audience :: Science/Research",
18
+ "Intended Audience :: Manufacturing",
19
+ "Operating System :: OS Independent",
20
+ "Topic :: Scientific/Engineering",
21
+ "License :: OSI Approved :: BSD License",
22
+ "Programming Language :: Python :: 3",
23
+ "Programming Language :: Python :: 3.9",
24
+ "Programming Language :: Python :: 3.10",
25
+ "Programming Language :: Python :: 3.11",
26
+ "Development Status :: 5 - Production/Stable",
27
+ "Framework :: Hatch",
28
+ "Framework :: IPython",
29
+ "Framework :: Jupyter",
30
+ "Framework :: Pytest",
31
+ "Framework :: Sphinx",
32
+ "Natural Language :: English",
33
+ ]
34
+ requires-python = ">=3.8"
35
+
36
+ dependencies = [
37
+ "numpy ~= 1.19",
38
+ "scipy ~= 1.9.0",
39
+ "shapely ~= 2.0.0",
40
+ ]
41
+
42
+ dynamic = ["version"]
43
+
44
+ [project.urls]
45
+ Homepage = "https://pyroll-project.github.io"
46
+ Repository = "https://github.com/pyroll-project/pyroll-core"
47
+ Documentation = "https://pyroll.readthedocs.io/en/latest"