×
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

Writing a command line to adjust lements in an exiting model

Writing a command line to adjust lements in an exiting model

Writing a command line to adjust lements in an exiting model

(OP)
Welcome to my problem,

For the analysis of my current task I have received the required model from a college. This model was made in FEMAP. Due to current licence issues I have received a text file generated to use in ANSYS.

The model contains many rectangular shell 63 elements, which comprise a complicated 3D structure. While the model works fine in FEMAP, ANSYS cannot handle this model due to high warping factors (up to 11) of a number of elements.

This problem should be easily fixed by dividing each rectangular element that generates a warping error into two triangular elements. This seems simple however the model contains a few thousand to these elements. Each element is generated by a separate EN,#, command line in the text file, requiring a rewrite of a few thousand lines of text. This is not a feasible option.

I have selected all elements containing the warping error. These elements have random element and node numbers. To be able to solve this problem I need to write a command which:
-    Selects a element out of the selection of elements with a warping error
-    Retrieves the node numbers of the selected element
-    Creates two new elements by diving the old over a diagonal
-    Deletes the old element
-    Preferably maintains the original node-numbering
-    Repeats this for all elements of the selection of error us elements  

I have no idea how to accomplish this. Can anyone assist me?

Regards,

Freast

RE: Writing a command line to adjust lements in an exiting model

Freast, you should be able to write a macro using APDL consisting of *IF-*DO-*ELSE statements to redefine the bad elements.  Use the *GET function to get element shape information.  Write out your new elements to a command file using the *CFOPEN to initiate that file and *CFWRITE to output the EN command to the file.  I don't have time now or else I would try giving you an input to start with.  The Ansys documentation has all of the above commands documented rather well so use that as your starting point and maybe make a simple test case to debug your macro.

Good luck,
-Brian

RE: Writing a command line to adjust lements in an exiting model

Another thing you may consider is to disable shape checking in Ansys.  Try adding SHPP,OFF to your input somewhere in /PREP7.  I've never done this personally but it should work if you wish to use the elements you presently have without receiving error messages due to poor shapes.  Note that the analysis may abort for unbeknownst reasons.

-Brian

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