Skip to content

Commit d514060

Browse files
committed
updated test and license
1 parent a6f5977 commit d514060

File tree

4 files changed

+16
-108
lines changed

4 files changed

+16
-108
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2022, The PyRoll Project
3+
Copyright (c) 2022, Max Weiner, Christoph Renzing
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

tests/test_solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_solve(tmp_path: Path, caplog):
1616
material=["C45", "steel"],
1717
flow_stress=100e6,
1818
density=7.5e3,
19-
thermal_capacity=690,
19+
specific_heat_capacity=690,
2020
)
2121

2222
sequence = PassSequence([

tests/test_solve_konti.py

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_solve(tmp_path: Path, caplog):
1515
radius=24e-3,
1616
temperature=1200 + 273.15,
1717
strain=0,
18-
material="BST 500",
18+
material=["steel", "BST 500"],
1919
freiberg_flow_stress_coefficients=FreibergFlowStressCoefficients(
2020
a=4877.12 * 1e6,
2121
m1=-0.00273339,
@@ -31,7 +31,7 @@ def test_solve(tmp_path: Path, caplog):
3131
baseStrainRate=0.1
3232
),
3333
density=7.5e3,
34-
thermal_capacity=690,
34+
specific_heat_capacity=690,
3535
)
3636

3737
sequence = PassSequence([
@@ -45,9 +45,7 @@ def test_solve(tmp_path: Path, caplog):
4545
usable_width=60e-3,
4646
depth=7.25e-3
4747
),
48-
nominal_radius=321e-3 / 2,
49-
elastic_modulus=210e9,
50-
poissons_ratio=0.3
48+
nominal_radius=321e-3 / 2
5149
),
5250
velocity=1,
5351
gap=13.5e-3,
@@ -64,9 +62,7 @@ def test_solve(tmp_path: Path, caplog):
6462
r2=18e-3,
6563
depth=17.5e-3
6664
),
67-
nominal_radius=321e-3 / 2,
68-
elastic_modulus=210e9,
69-
poissons_ratio=0.3
65+
nominal_radius=321e-3 / 2
7066
),
7167
velocity=1,
7268
gap=1.5e-3,
@@ -85,9 +81,7 @@ def test_solve(tmp_path: Path, caplog):
8581
usable_width=60e-3,
8682
depth=7.25e-3
8783
),
88-
nominal_radius=321e-3 / 2,
89-
elastic_modulus=210e9,
90-
poissons_ratio=0.3
84+
nominal_radius=321e-3 / 2
9185
),
9286
velocity=2,
9387
gap=1.5e-3,
@@ -104,9 +98,7 @@ def test_solve(tmp_path: Path, caplog):
10498
r2=13.5e-3,
10599
depth=12.5e-3
106100
),
107-
nominal_radius=321e-3 / 2,
108-
elastic_modulus=210e9,
109-
poissons_ratio=0.3
101+
nominal_radius=321e-3 / 2
110102
),
111103
velocity=2,
112104
gap=1e-3,
@@ -123,9 +115,7 @@ def test_solve(tmp_path: Path, caplog):
123115
r2=38e-3,
124116
depth=4e-3
125117
),
126-
nominal_radius=321e-3 / 2,
127-
elastic_modulus=210e9,
128-
poissons_ratio=0.3
118+
nominal_radius=321e-3 / 2
129119
),
130120
velocity=2,
131121
gap=5.4e-3,
@@ -142,9 +132,7 @@ def test_solve(tmp_path: Path, caplog):
142132
r2=10e-3,
143133
depth=9e-3
144134
),
145-
nominal_radius=321e-3 / 2,
146-
elastic_modulus=210e9,
147-
poissons_ratio=0.3
135+
nominal_radius=321e-3 / 2
148136
),
149137
velocity=2,
150138
gap=1.8e-3,
@@ -161,9 +149,7 @@ def test_solve(tmp_path: Path, caplog):
161149
r2=38e-3,
162150
depth=4e-3
163151
),
164-
nominal_radius=321e-3 / 2,
165-
elastic_modulus=210e9,
166-
poissons_ratio=0.3
152+
nominal_radius=321e-3 / 2
167153
),
168154
velocity=2,
169155
gap=0.8e-3,
@@ -181,8 +167,6 @@ def test_solve(tmp_path: Path, caplog):
181167
depth=5.5e-3
182168
),
183169
nominal_radius=321e-3 / 2,
184-
elastic_modulus=210e9,
185-
poissons_ratio=0.3
186170
),
187171
velocity=2,
188172
gap=3.8e-3,
@@ -200,8 +184,6 @@ def test_solve(tmp_path: Path, caplog):
200184
depth=2.5e-3
201185
),
202186
nominal_radius=321e-3 / 2,
203-
elastic_modulus=210e9,
204-
poissons_ratio=0.3
205187
),
206188
velocity=2,
207189
gap=3.5e-3,
@@ -218,8 +200,6 @@ def test_solve(tmp_path: Path, caplog):
218200
depth=4e-3
219201
),
220202
nominal_radius=321e-3 / 2,
221-
elastic_modulus=210e9,
222-
poissons_ratio=0.3
223203
),
224204
velocity=2,
225205
gap=4e-3,
@@ -230,15 +210,14 @@ def test_solve(tmp_path: Path, caplog):
230210
),
231211
RollPass(
232212
label="F1 - K 3/50",
213+
orientation=90,
233214
roll=Roll(
234215
groove=CircularOvalGroove(
235216
r1=2.5e-3,
236217
r2=12.5e-3,
237218
depth=2.9e-3
238219
),
239220
nominal_radius=107.5e-3,
240-
elastic_modulus=210e9,
241-
poissons_ratio=0.3
242221
),
243222
velocity=4.89,
244223
gap=1.2e-3,
@@ -249,15 +228,14 @@ def test_solve(tmp_path: Path, caplog):
249228
),
250229
RollPass(
251230
label="F2 - K 9/24",
231+
orentation=0,
252232
roll=Roll(
253233
groove=RoundGroove(
254234
r1=0.5e-3,
255235
r2=5.1e-3,
256236
depth=4.25e-3
257237
),
258238
nominal_radius=107.5e-3,
259-
elastic_modulus=210e9,
260-
poissons_ratio=0.3
261239
),
262240
velocity=6.1,
263241
gap=0.9e-3,
@@ -268,41 +246,38 @@ def test_solve(tmp_path: Path, caplog):
268246
),
269247
RollPass(
270248
label="F3 - K3/51",
249+
orientation=90,
271250
roll=Roll(
272251
groove=CircularOvalGroove(
273252
r1=2.5e-3,
274253
r2=11e-3,
275254
depth=2.12e-3
276255
),
277256
nominal_radius=107.5e-3,
278-
elastic_modulus=210e9,
279-
poissons_ratio=0.3
280257
),
281258
velocity=7.91,
282259
gap=1.75e-3,
283260
),
284261
Transport(
285-
label="I -> II",
262+
label="XIII -> XIV",
286263
duration=1.5 / 7.91
287264
),
288265
RollPass(
289266
label="F4 - K 9/23",
267+
orientation=0,
290268
roll=Roll(
291269
groove=RoundGroove(
292270
r1=0.5e-3,
293271
r2=3.5e-3,
294272
depth=3.5e-3
295273
),
296274
nominal_radius=85e-3,
297-
elastic_modulus=210e9,
298-
poissons_ratio=0.3
299275
),
300276
velocity=10,
301277
gap=1.5e-3,
302278
),
303279
])
304280

305-
306281
try:
307282
sequence.solve(in_profile)
308283
finally:

tests/test_three_roll_pass.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)