• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

apdl e ciclio do

  • Thread starter Thread starter mattiazavagnin
  • Start date Start date

mattiazavagnin

Guest
Hey, guys, I wanted to ask you a question. I was doing an apdl program, but I have a problem.
in this program I performed a 'do' cycle I would like that to every iteration saved me a different file, for example iteration 1 file1 to iteration 2 file2 understood? Do you have any idea how to do this? with the save command?
 
niter=10
name = opposite
*do,i,1,niter
!comands to be performed in the do cycle
save,strcat(name,chrval(s)),db
*end
 
thank you in particular for your help I see that you are always answering. I'm trying this solution, but I don't think it results, is it ansys11? I don't understand why I have to name it. I can't put it in the save command. and to insert the path file?
Thanks again
 
Hell I solved that enjoyment.... then I implemented the command in ansis 11 and now works perfectly, I have one last question how do I increase the variables?, for example if besides 'i' I had another parameter j or k how can I insert them to the same file.
doing it short I have a set of clique plates and I have to create files.db depending on the width of clique, ray of clique, and distance from the plate, in all three parameters now saves the plates according to the radius I want you to save all possible combinations, in all are 32: 2 lengths, 4 distances, 4 rays.
Thank you.
I think it's a matter of commands.

At least I wish
 
thank you in particular for your help I see that you are always answering. I'm trying this solution, but I don't think it results, is it ansys11? I don't understand why I have to name it. I can't put it in the save command. and to insert the path file?
Thanks again
just like that
 
I don't understand. I don't even know what centers are answering. I still hope that stefano.garbin will answer my question so as to relieve my sufferings thanks
 
Imax = 2 lengths
jmax=4!
Kmax=4!

*do,i,1,imax
*do,j,1,imax
*do,k,1,imax
!comandi to be performed in the do cycle according to i,j,k
save,strcat(strcat('nomefile',chrval(i)),chrval(j)),chrval(k)),db
*end
*end
*end

a spanne should work, but I have no physical time to try.
the exclamation point character serves for comments
strings are between two single apics ('filename')
 
firstly grazoe to stefano.garbin that has, indirectly helped me too. I have a similar problem: I have 3 parameters (i,j,k), with obviously 3 cycles do and I need a list of total mass values for each combination of i,j,k. being:

I=1,...,10
J=1,
K=1,..4

I thought of creating an array 10x4x4, but after using the *get command to get the mass, I have no idea how to write the value in the array.

thank you in advance to anyone who can help me!!
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top