pyroll-forward-slip 3.0.0__py3-none-any.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.
pyroll/forward_slip.py ADDED
@@ -0,0 +1,68 @@
1
+ import numpy as np
2
+
3
+ from pyroll.core import RollPass, Hook, root_hooks
4
+ import pyroll.interface_friction
5
+
6
+ VERSION = "3.0.0"
7
+
8
+ SLIP_FACTOR = 3 / 4
9
+
10
+ RollPass.Roll.effective_diameter = Hook[float]()
11
+ """Working diameter of the roll including the forward slip."""
12
+
13
+
14
+ @RollPass.Roll.groove_factor
15
+ def groove_factor(self: RollPass.Roll):
16
+ roll_pass = self.roll_pass
17
+ return (roll_pass.out_profile.equivalent_height - roll_pass.gap) / 2
18
+
19
+
20
+ @RollPass.Roll.effective_diameter
21
+ def effective_diameter(self: RollPass.Roll):
22
+ return 2 * self.working_radius * (1 + self.roll_pass.forward_slip_ratio)
23
+
24
+
25
+ @RollPass.coulomb_friction_coefficient
26
+ def coulomb_friction_coefficient(self: RollPass):
27
+ roll_diameter_mm = self.roll.nominal_diameter * 1e3
28
+ temperature_celsius = self.in_profile.temperature - 273.15
29
+ velocity = self.velocity
30
+
31
+ roll_factor = 0.8 if roll_diameter_mm < 250 else 0.9
32
+
33
+ if roll_diameter_mm < 250 or velocity <= 2:
34
+ velocity_factor = 1.0
35
+ else:
36
+ velocity_factor = 0.4 + 0.6 * np.exp(-0.2 * (velocity - 2))
37
+
38
+ return roll_factor * velocity_factor * (1.05 - 0.0005 * temperature_celsius)
39
+
40
+
41
+ def neutral_angle_from_friction(roll: RollPass.Roll) -> float:
42
+ roll_pass = roll.roll_pass
43
+ height_change = roll_pass.in_profile.equivalent_height - roll_pass.out_profile.equivalent_height
44
+ working_diameter = 2 * roll.working_radius
45
+ friction = roll_pass.coulomb_friction_coefficient
46
+
47
+ neutral_angle_magnitude = (
48
+ np.sqrt(height_change / (2 * working_diameter))
49
+ - height_change / (2 * friction * working_diameter)
50
+ )
51
+ return -max(neutral_angle_magnitude, 0.0)
52
+
53
+
54
+ @RollPass.Roll.neutral_angle
55
+ def neutral_angle(self: RollPass.Roll):
56
+ return neutral_angle_from_friction(self)
57
+
58
+
59
+ @RollPass.forward_slip_ratio
60
+ def forward_slip_ratio(self: RollPass):
61
+ working_diameter = 2 * self.roll.working_radius
62
+ out_height = self.out_profile.equivalent_height
63
+ return SLIP_FACTOR * self.roll.neutral_angle ** 2 / 2 * (working_diameter / out_height - 1)
64
+
65
+
66
+ root_hooks.append(RollPass.Roll.neutral_angle)
67
+ root_hooks.append(RollPass.Roll.effective_diameter)
68
+ root_hooks.add(RollPass.forward_slip_ratio)
@@ -0,0 +1,14 @@
1
+ Metadata-Version: 2.5
2
+ Name: pyroll-forward-slip
3
+ Version: 3.0.0
4
+ Summary: Plugin for PyRolL providing a forward slip model based on the neutral angle after Mauk.
5
+ Project-URL: Homepage, https://pyroll.readthedocs.io
6
+ Project-URL: Repository, https://codeberg.org/pyroll-project/pyroll-forward-slip
7
+ Project-URL: Documentation, https://codeberg.org/pyroll-project/pyroll-forward-slip/src/branch/main/docs/docs.pdf
8
+ Author-email: Christoph Renzing <christoph.renzing@imf.tu-freiberg.de>
9
+ License-Expression: BSD-3-Clause
10
+ License-File: LICENSE
11
+ Requires-Python: >=3.11
12
+ Requires-Dist: numpy
13
+ Requires-Dist: pyroll-core<3.2,>=3.1.16
14
+ Requires-Dist: pyroll-interface-friction~=3.0
@@ -0,0 +1,5 @@
1
+ pyroll/forward_slip.py,sha256=GE5XLnLhCrHLxUS8_qnP0ntapPXgr8-4IA_pAdJW_as,2165
2
+ pyroll_forward_slip-3.0.0.dist-info/METADATA,sha256=VIy6OuPnqG0IX9C25a4EV187pEInO8XtJ5K-YtRDis0,665
3
+ pyroll_forward_slip-3.0.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
4
+ pyroll_forward_slip-3.0.0.dist-info/licenses/LICENSE,sha256=ba04C9xPoD_SK1gQPi-rnym3Kktrfbe0dWCbqnsw_Mk,1448
5
+ pyroll_forward_slip-3.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.33.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,11 @@
1
+ Copyright 2022 ...
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.