×
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

Removing Existing Variables in Abaqus Python Script

Removing Existing Variables in Abaqus Python Script

Removing Existing Variables in Abaqus Python Script

(OP)
I realized that ABAQUS python compiler (I dont know if this is the correct term) writes the new variable over existing ones. It does not remove all variable and redefine them. So my question: which command should i use the clear the existing variables before running the new script e.g., clear all in matlab?


RE: Removing Existing Variables in Abaqus Python Script

set them at 0 in the beginning of the script.

RE: Removing Existing Variables in Abaqus Python Script

(OP)
Thanks for suggestion but it is not a practical solution since there are a lot of variable.

RE: Removing Existing Variables in Abaqus Python Script

i just remembered: use a function. variables are only accessible within that function and are cleared when you exit that function (except the return of the function if there is any)

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