XANSYS Forum Index
    Register    

FAQ    Search    Memberlist    Usergroups    SmartFeedSmartFeed    Profile    Log in
[OT][APDL] Crazy/Complex APDL Scripts
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
Author Message
daniel.diaz
User


Joined: 21 Apr 2015
Posts: 11

PostPosted: Tue Aug 18, 2015 3:54 am  Reply with quote

Hello XANSYS,

I am curious of the bounds of what can be done (and what should never be tried) with APDL scripting. With that in mind, I have a few questions:

What are some of the craziest and/or most complex APDL scripts you have seen written by yourself or others? What was the intended purpose of the script?

Was it effective and efficient? Was it a horror to behold that could wipe your drive clean?

!-----------------------

As for me, I would say the craziest script I have created was one for selecting nodes between non-coplanar element faces (aka, like the /EDGE command, but getting the nodes). The script itself ended up being around only 1,100 lines of code...

It works by first coating your 3D mesh with 2D elements. From those 2D elements, it then gets all of the elements attached to each node (like a vectorized ENEXTN function), calculates the element normals, and does dot products between the element normals to get angles. If the angles calculated are more than the input angle, the faces are non-coplanar and the node is selected.

It has worked for some 3D models I have tested so far (<1M nodes) and has run pretty quickly. It would sometimes end up causing some paging, but that was mostly fixed with some VMASK compression.


Cheers,
_________________
Dan Diaz
Belcan Engineeering
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    XANSYS Forum Index -> XANSYS
All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

sleek template created by Andrew Charron