Automate node creation

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi,

I need to create nodes for elements of user specified sizes. For eg, If the user specifies size 6 for the element, the nodes should be created at (0,0), (0,6), (6,0), (6,6). If the user specifies size 8 for the element, the nodes should be created at (0,0), (0,8), (8,0), (8,8). This is to be repeated to generate a geometry 830 mm*450 mm . therefore, if the element is of size 8, 830/8 elements must be created along the length and 450/8 elements along the width with their corresponding nodes. Please tell me how to automate this? Also, I need flexibility to change 830*450 mm dimensions to user specified dimensions (say 500*250 or 1000*600 etc etc). How do I incorporate this??

 

Currently for an element size 10 I've to write

 

*createnode 0 10 0 0 0 0

*createnode 10 0 0 0 0 0

*createnode 10 10 0 0 0 0

*createnode 0 0 0 0 0 0

 

thanks,

Kushal. 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited April 2018

    why don't you create a rectangular surf and automesh on it?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited April 2018

    how do i automate automesh on a rectangular surface of any size?

  • tinh
    tinh Altair Community Member
    edited April 2018

    use

    *createmark surfs 1 $rec_surf_id

    *defaultremeshsurf 1 $mesh_size 2 2 2 0 1 1 1 0 0 0 0