×
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

copy of entire model

copy of entire model

copy of entire model

(OP)
Hi,

I would like to double entire model in ansys (at least nodes and elements). I tried the following way, but it doesnt work :

/prep7 ! creating model

...

NUMMRG, ALL
NUMCMP, ALL

NWRITE,'nodes','txt'
EWRITE,'elems','txt'

*GET,ne,ELEM,,NUM,MAX  
NUMOFF, ELEM, ne
*GET,nn,node,,NUM,MAX  
NUMOFF, node, nn

LOCAL,11,0,25,-2,0,180, , ,1,1 ! created new position of copy
CSYS,11

NRRANG,1,99999999,1
NREAD,'NODES','TXT'
ERRANG,1,99999999,1
EREAD,'ELEMS','TXT'

i just hoped that if i define new local coordinate system, copy will be attached to it...of course not - you can not do things in the easiest way...The nodes and elems are readed correctly numbered, but in global cartesian.

anyone can help, please ?

Regards,
lubo

RE: copy of entire model

Hello,

try this:

CODE

! Save Model
cdwrite,db,temp,cdb

LOCAL,11,0,25,-2,0,180, , ,1,1 ! created new position of copy

! Move Nodes (Elements will be copied too)
CSYS,0
transfer,11,0,all

! Load Model
cdread,db,temp,cdb

Regards,
Alex

RE: copy of entire model

Hello again,

there is a drawback of the code above: Nodal Coordinate Systems will not be rotated! That can become a problem, when copying elements, which work in a local coordinate system.

This problem can be solved with an macro, that I already wrote. So if you need it, please let me know. To my knowledge there is no standard command in Ansys, witch automatically takes rotated nodal CSYS into account.

Regards,
Alex

RE: copy of entire model

(OP)
Hi !

Thank you for your quick reply - it fully solved my problem. About your rotated nodal coordinate system macro i am always pleased to learn something new...
If you write me some "key commands" to create this macro may be i will be able to create it even by myself.

Regards,
lubo

RE: copy of entire model

Here some of the command I used for my macro:

*get,,cdsy,,ang,xy
*get,,cdsy,,ang,yz
*get,,cdsy,,ang,zx

local
clocal

nsel,,ang,xy,0
nsel,,ang,yz,0
nsel,,ang,zx,0



RE: copy of entire model

(OP)
Thank you.

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