pyroll-core 3.0.3__tar.gz → 3.0.4__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.
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/PKG-INFO +1 -1
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/__init__.py +2 -4
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/profile.py +19 -2
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/.gitignore +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/LICENSE +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/README.md +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/hatch.toml +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyproject.toml +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/config.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/disk_elements/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/disk_elements/disk_element_unit.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/disk_elements/hookimpls.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/base.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/boxes/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/boxes/box.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/boxes/constricted_box.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/boxes/upset_box.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/diamonds/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/diamonds/diamond.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/diamonds/gothic.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/diamonds/square.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/equivalent_ripped_groove.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/flat.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/generic_elongation.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/generic_elongation_solvers.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/hexagonal.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/circular_oval.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/constricted_circular_oval.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/constricted_swedish_oval.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/flat_oval.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/oval_3radii.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/oval_3radii_flanked.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/swedish_oval.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/upset_oval.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/rounds/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/rounds/false_round.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/rounds/round.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/spline.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/hooks.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/log.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/profile/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/profile/hookimpls.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/profile/profile.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/repr.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll/hookimpls.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll/roll.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/base.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/deformation_unit.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/base_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/deformation_unit.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/disk_element.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/helpers.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/roll.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/symmetric_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/three_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/two_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/symmetric_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/three_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/two_roll_pass.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/rotator/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/rotator/hookimpls.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/rotator/rotator.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/sequence/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/sequence/hookimpls.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/sequence/sequence.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/shapes.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/transport/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/transport/cooling_pipe.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/transport/hookimpls/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/transport/hookimpls/cooling_pipe.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/transport/hookimpls/transport.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/transport/transport.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/unit/__init__.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/unit/hookimpls.py +0 -0
- {pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/unit/unit.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyroll-core
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.4
|
|
4
4
|
Summary: PyRoll rolling simulation framework - core library.
|
|
5
5
|
Project-URL: Homepage, https://pyroll-project.github.io
|
|
6
6
|
Project-URL: Repository, https://github.com/pyroll-project/pyroll-core
|
|
@@ -44,7 +44,7 @@ from .hooks import Hook, HookHost, HookFunction, root_hooks
|
|
|
44
44
|
from .disk_elements import DiskElementUnit
|
|
45
45
|
from .config import Config, config, PlottingBackend, ConfigValue, ConfigMeta
|
|
46
46
|
|
|
47
|
-
VERSION = "3.0.
|
|
47
|
+
VERSION = "3.0.4"
|
|
48
48
|
|
|
49
49
|
__all__ = [
|
|
50
50
|
# grooves
|
|
@@ -131,8 +131,6 @@ root_hooks.extend(
|
|
|
131
131
|
BaseRollPass.InProfile.velocity,
|
|
132
132
|
PassSequence.log_elongation,
|
|
133
133
|
BaseRollPass.OutProfile.technologically_orientated_cross_section,
|
|
134
|
-
BaseRollPass.technologically_orientated_contour_lines
|
|
135
|
-
# BaseRollPass.back_tension,
|
|
136
|
-
# BaseRollPass.front_tension
|
|
134
|
+
BaseRollPass.technologically_orientated_contour_lines
|
|
137
135
|
]
|
|
138
136
|
)
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import numpy as np
|
|
2
|
+
from shapely import Polygon, clip_by_rect, union
|
|
3
|
+
from shapely.affinity import translate, scale
|
|
4
|
+
from shapely.errors import GEOSException
|
|
2
5
|
|
|
3
6
|
from ..base import BaseRollPass
|
|
4
7
|
from ..three_roll_pass import ThreeRollPass
|
|
@@ -63,7 +66,21 @@ def cross_section_error(self: BaseRollPass.OutProfile):
|
|
|
63
66
|
|
|
64
67
|
@BaseRollPass.OutProfile.cross_section
|
|
65
68
|
def cross_section(self: BaseRollPass.OutProfile) -> Polygon:
|
|
66
|
-
|
|
69
|
+
half_abs_spread = (self.width - self.roll_pass.in_profile.width) / 2
|
|
70
|
+
half_in_profile = clip_by_rect(self.roll_pass.in_profile.cross_section, 0, -np.inf, np.inf, np.inf)
|
|
71
|
+
out_profile_side_contour_translated = translate(half_in_profile, xoff=half_abs_spread)
|
|
72
|
+
roll_pass_cross_section = Polygon(np.concatenate([cl.coords for cl in self.roll_pass.contour_lines.geoms]))
|
|
73
|
+
|
|
74
|
+
try:
|
|
75
|
+
filling_rectangle = clip_by_rect(roll_pass_cross_section, 0, -np.inf, half_abs_spread, np.inf)
|
|
76
|
+
intermediate_section = roll_pass_cross_section.intersection(out_profile_side_contour_translated)
|
|
77
|
+
half_cross_section_1 = union(intermediate_section, filling_rectangle)
|
|
78
|
+
half_cross_section_2 = scale(half_cross_section_1, xfact=-1, yfact=-1, origin=(0, 0))
|
|
79
|
+
cs = union(half_cross_section_1, half_cross_section_2)
|
|
80
|
+
except GEOSException as e:
|
|
81
|
+
self.logger.warning("Infinitesimal small spreading. Continuing without bulging.")
|
|
82
|
+
cs = helpers.out_cross_section(self.roll_pass, self.width)
|
|
83
|
+
|
|
67
84
|
if cs.width * 1.01 < self.width:
|
|
68
85
|
raise ValueError(
|
|
69
86
|
"Profile's width can not be larger than its contour lines." "May be caused by critical overfilling."
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/constricted_circular_oval.py
RENAMED
|
File without changes
|
{pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/grooves/ovals/constricted_swedish_oval.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyroll_core-3.0.3 → pyroll_core-3.0.4}/pyroll/core/roll_pass/hookimpls/symmetric_roll_pass.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|