×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Starting each step from initial, not previous

Starting each step from initial, not previous

Starting each step from initial, not previous

(OP)
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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources