×
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

Composite laminate input-code

Composite laminate input-code

Composite laminate input-code

(OP)
Hello, I want to write all my node results to a text-file for all 4 layers of a composite laminate. My code looks like this so far:


/post1    ! Enter postproccesing

*get,Num_nodes,NODE,,COUNT   ! Get number of nodes
 
*dim,results_sx,, 1,4       ! Create a array (1*20)

*dim,node_list,char,Num_nodes
*do,i,1,Num_nodes
node_list(i)='node %(1+i-1)%'
*enddo

*do,i,1,4      ! loop over all 4 layers
layer,i

rsys,solu
shell,mid

*vget,results_sx(1,i),node,1,s,x  ! Get stresses in the x-direction

*enddo

*cfopen,testresults,txt       !create a text-file
*vwrite,'Node'
(A8)
*vwrite,node_list(1),results_sx(1,1),results_sx(1,2),results_sx(1,3),results_sx(1,4)            !help: *vwrite, example
(A8,' ',F10.3,' ',F10.3,' 'F10.3,' 'F10.3)
*cfclose


The above code is just for node 1, but now I want to list all the nodes for all the 4 layers in testresults.txt.

Anyone who could help me?

Thanks alot!

 

RE: Composite laminate input-code

I don't know your program language, but if you want an array with (ply,nodes) you should have 2 do cicle ,one for ply (1 .. 4) and one for node (1 ... number_nodes), one inside the other.
I think that this is the mistake.
Regards

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