Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
yade-dev
trunk
Commits
dc583af9
Commit
dc583af9
authored
Nov 01, 2019
by
Jan Stránský
Browse files
fixed python3 print in doneHook in peri3dController examples
parent
ca4df736
Pipeline
#93065116
passed with stages
in 50 minutes and 59 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
examples/PeriodicBoundaries/peri3dController_example1.py
examples/PeriodicBoundaries/peri3dController_example1.py
+1
-1
examples/PeriodicBoundaries/peri3dController_shear.py
examples/PeriodicBoundaries/peri3dController_shear.py
+2
-2
No files found.
examples/PeriodicBoundaries/peri3dController_example1.py
View file @
dc583af9
...
...
@@ -41,7 +41,7 @@ O.engines=[
stressMask
=
0b101100
,
# prescribed ex,ey,sz,syz,ezx,sxy; e..strain; s..stress
nSteps
=
nSteps
,
# how many time steps the simulation will last
# after reaching nSteps do doneHook action
doneHook
=
'print
"Simulation with Peri3dController finished."; O.pause()'
,
doneHook
=
'print
(
"Simulation with Peri3dController finished."
)
; O.pause()'
,
# the prescribed path (step,value of stress/strain) can be defined in absolute values
xxPath
=
[(
465
,
5e-4
),(
934
,
-
5e-4
),(
1134
,
10e-4
)],
...
...
examples/PeriodicBoundaries/peri3dController_shear.py
View file @
dc583af9
...
...
@@ -14,7 +14,7 @@ O.materials.append(CpmMat(young=25e9,poisson=.2,sigmaT=3e6,epsCrackOnset=1e-4,re
initSize
=
1.2
sp
=
pack
.
randomPeriPack
(
radius
=
.
05
,
initSize
=
Vector3
(
initSize
,
initSize
,
initSize
),
memoizeDb
=
'/tmp/packDb.sqlite'
)
angle
=
0.
#
angle=pi/4
angle
=
pi
/
4
rot
=
Matrix3
(
cos
(
angle
),
-
sin
(
angle
),
0
,
sin
(
angle
),
cos
(
angle
),
0
,
0
,
0
,
1
)
sp
.
toSimulation
(
rot
=
rot
)
...
...
@@ -44,7 +44,7 @@ O.engines=[
Peri3dController
(
goal
=
(
0
,
0
,
0
,
0
,
0
,
5e-3
),
# Vector6 of prescribed final values
stressMask
=
0b011111
,
nSteps
=
2000
,
doneHook
=
'print
"Simulation with Peri3dController finished."; O.pause()'
,
doneHook
=
'print
(
"Simulation with Peri3dController finished."
)
; O.pause()'
,
maxStrain
=
.
5
,
label
=
'p3d'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment