A
at
Guest
Anyone knows how can I save the simulation output into a readable format
like comma seperated values or something that I use a different software
to plot the output? Do I have to write an ocean script to dump out the
data and then save? My current hack is to do it with ocean script (which
is terribly slow.)
out = outfile("./paramResults.out" "w")
for(tt 1 1000
time = tt*0.001 - 1*0.001
fprintf(out "%5.3f " time) ; Print the time stamp
fprintf(out "%1.6e \n" value(getData("/N2/D" ?result "dc" ),time))
)
Thanks!
like comma seperated values or something that I use a different software
to plot the output? Do I have to write an ocean script to dump out the
data and then save? My current hack is to do it with ocean script (which
is terribly slow.)
out = outfile("./paramResults.out" "w")
for(tt 1 1000
time = tt*0.001 - 1*0.001
fprintf(out "%5.3f " time) ; Print the time stamp
fprintf(out "%1.6e \n" value(getData("/N2/D" ?result "dc" ),time))
)
Thanks!