Commit dc583af9 authored by Jan Stránský's avatar 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
......@@ -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)],
......
......@@ -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'
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment