parametrical simulation
parametrical simulation
(OP)
I would like to perform one simulation which has a few steps:
- one load is changing and after each step result from one node i stored in file
How to do this using loops?
thx
- one load is changing and after each step result from one node i stored in file
How to do this using loops?
thx





RE: parametrical simulation
*dim,result,array,steps
2. Start a do loop:
*do,i,1,steps
3. Solve and get the nodal result
/solu
solve
/post1
*get,result(i),node,....
4. End do loop
*enddo
5. Write vector to file
*mwrite,result(1),result,dat
(1F20.6)
RE: parametrical simulation
each time in results2.dat only FINISH line is stored (amount correspond to steps value)
---------
steps=2
*dim,result,array,steps - two steps
*dim,volts,array,3 - array with different load values
volts(1)=10
volts(2)=100
volts(3)=1000
*do,i,1,steps
/PREP7
NSEL,S,LOC,Z,dif+h
D,ALL,VOLT,volts(2)
NSEL,ALL
/SOLU
ANTYPE,STATIC
SOLVE
/POST1
*get,result(i),node,30,u,z
*enddo
*mwrite,result,result2,dat
------------------