I followed the tutorial in the reference and got a pos file. But when I open it with gmsh2.4, there are only 4 color scales. How could I see the vector plot? Thanks.
Is the file empty? You can open it with a text editor and check. Also I do not understand what you mean about 4 color scales.
Are you using OpenFVM v1.3?
the pos file is 501k for lid driven demo. I got the right residual plot in gnuplot.
In gmsh, 4 color legends. 2 for velocity and 2 for streamfunction. other part of the window is all white.
Which version of Gmsh is required? I am using 2.4.2. I know there is a file format change for gmsh.
Check in the parameter file if output is binary or ascii.
There was a problem with binary format on windows but I believe it was corrected in v1.3l.
changed to ascii worked. just wondering why there are 4 views only 2 are good for this lid driven demo.
Successfully compliled with gcc under Ubuntu 10 , so I begin to study this code.
Simulation (char *path)
WriteResults (fpresults, LOGICAL_TRUE, LOGICAL_TRUE, curtime);
// Set write time intervals
if (parameter.nsav != 0)
wdt = (endtime - starttime) / parameter.nsav;
wdt = 2 * (endtime - starttime);
wtime = wdt;
The "WriteResults" is called before time 0, it is not needed for steady state simulation. That's why I got double set of data.
The code writes results before time 0 mostly for debuging purposes to check initial conditions on faces and in elements.
ok, I got it.