Write out data every time step

Hello,

Is it possible to write out the data at every time step of the simulation in SP files?
Thanks,
Mohsen

I think if you set the write interval (spx_dt) to a value smaller than the minimum time step (dt_min), that should do it. I don’t recommend doing this though for a long simulation, as the SPx files will get very large and may not be usable (Paraview won’t be able to read them).

Thanks Jeff,

I will try it. I will extract the data using the postmfix.

@jeff.dietiker
Hi Jeff,
In order to write the data in each time step, I fixed the time step size and set the spx_dt for velocity a value smaller than the time step size. However, the simulation ends after a while without printing out any error. The end of the log file is:

t= 100.0993 Wrote RES; t= 100.0994 Wrote RES; t= 100.0994 Wrote SPx: 1, 3, 4, Disk=2249.99 Mb
t= 100.0994 Wrote RES; t= 100.0995 Wrote RES; t= 100.0995 Wrote SPx: 1, 3, 4, Disk=2257.34 Mb
t= 100.0995 Wrote RES; t= 100.0996 Wrote RES; t= 100.0996 Wrote SPx: 1, 3, 4, Disk=2264.69 Mb
t= 100.0996 Wrote RES; t= 100.0997 Wrote RES; t= 100.0997 Wrote SPx: 1, 3, 4, Disk=2272.04 Mb
t= 100.0997 Wrote RES; t= 100.0998 Wrote RES; t= 100.0998 Wrote SPx: 1, 3, 4, Disk=2279.39 Mb
t= 100.0998 Wrote RES; t= 100.0999 Wrote RES; t= 100.0999 Wrote SPx: 1, 3, 4, Disk=2286.74 Mb
t= 100.0999 Wrote RES; t= 100.1000 Wrote RES; t= 100.1000 Wrote SPx: 1, 2, 3, 4, 5, 8, A, Disk=2299.34 Mb
t= 100.1000 Wrote RES; t= 100.1001 Wrote RES; t= 100.1001 Wrote SPx: 1, 3, 4, Disk=2306.69 Mb
t= 100.1001 Wrote RES; t= 100.1001 Dt=0.5000E-04 NIT= 10 Sm=1854.7 CPU= 5153. s
MbError%(0,MMAX): 0.3719E-09 -.2950E-06
t= 100.1002 Wrote RES;


Total CPU time used = 5013.3313599999701 seconds


and the last part of the output file is as:

Time = 100.07 Dt = 0.50000E-04 CPU time left = 3.253 days
Nit P0 P1 V0 V1 G1 Max res
1 3.9E-03 0.9 7.7E-04 1.3E-03 6.9E-03 P1
2 1.0E-03 8.7E-03 5.3E-04 6.5E-04 3.5E-03 P1
3 5.4E-04 3.1E-03 2.6E-04 3.3E-04 1.8E-03 P1
4 3.3E-04 1.5E-03 1.4E-04 1.7E-04 9.4E-04 P1
5 2.1E-04 7.6E-04 8.2E-05 8.8E-05 4.9E-04 P1
6 1.3E-04 3.8E-04 4.7E-05 4.5E-05 2.5E-04 P1
7 8.0E-05 1.9E-04 2.6E-05 2.3E-05 1.3E-04 P1
8 5.0E-05 9.4E-05 1.5E-05 1.2E-05 6.9E-05 P1
9 3.1E-05 4.6E-05 8.4E-06 6.2E-06 3.6E-05 P1
10 2.0E-05 2.3E-05 4.7E-06 3.2E-06 1.9E-05 P1
DT = 4.5000000000000003E-005 NIT/s = 200000
************** CPU TIME for IO ********************** 4.2839640000000081


Total CPU time used = 26.799035999867744 seconds


Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL
Note: The following floating-point exceptions are signalling: IEEE_UNDERFLOW_FLAG IEEE_DENORMAL

Do you have any idea what causes the simulation to end after a couple of seconds?(FYI, I am using 2013 version of he code for this simulation.)

Thanks,
Mohsen