Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting each step from initial, not previous

Status
Not open for further replies.

jonnyc1003

Mechanical
Joined
Sep 11, 2013
Messages
1
Location
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top