jonnyc1003
Mechanical
- Sep 11, 2013
- 1
I'm writing a Python code to create multiple steps to change loading conditions on a beam in each step. I'm wondering if there is a way to start each static step from the initial step, instead of starting from the end of the previous step. Here is my code for creating the steps:
p = 1
for k in range(0,len(Fx)):
for l in range(0,len(Fy)):
for m in range(0,len(Mz)):
mdb.models['Model-1'].StaticStep(initialInc=0.05, maxInc=0.05, maxNumInc=1000,
name='Step-'+str(p), previous='Step-'+str(p-1))
mdb.models['Model-1'].loads['Load-1'].setValuesInStep(cf1=Fx[k], cf2=Fy[l], cf3=0
, stepName='Step-'+str(p))
mdb.models['Model-1'].loads['Load-2'].setValuesInStep(cm3=Mz[m], stepName=
'Step-'+str(p))
p = p+1
Would it work to change "previous='Step-'+str(p-1)" to "previous='Initial'"?
Any input anyone has would be greatly appreciated.
Thanks!
p = 1
for k in range(0,len(Fx)):
for l in range(0,len(Fy)):
for m in range(0,len(Mz)):
mdb.models['Model-1'].StaticStep(initialInc=0.05, maxInc=0.05, maxNumInc=1000,
name='Step-'+str(p), previous='Step-'+str(p-1))
mdb.models['Model-1'].loads['Load-1'].setValuesInStep(cf1=Fx[k], cf2=Fy[l], cf3=0
, stepName='Step-'+str(p))
mdb.models['Model-1'].loads['Load-2'].setValuesInStep(cm3=Mz[m], stepName=
'Step-'+str(p))
p = p+1
Would it work to change "previous='Step-'+str(p-1)" to "previous='Initial'"?
Any input anyone has would be greatly appreciated.
Thanks!