[Gmsh] How to post-process from the command line
Jean-Francois Rit
jean-francois.rit at der.edf.fr
Mon Jul 4 19:17:21 CEST 2005
Hello,
I am trying get gmsh (1.60.1) to post process in batch mode from the command
line, but success is only limited so far...
Here is what I try to do.
1) I have a DAAAGI.pos file with 10 views in ASCII PostProcessing.Format =
0. First five lines are :
$PostFormat
1.2 0 8
$EndPostFormat
$View
CDAAAGI_DEPL_VECTEUR 1
2) I want to extract a cut plane on view[3] and print it. So I write a
stt.geo file like this :
//PostProcessing.Format = 0;
//Include "/local00/home/rit/aster/01paluel/criss/1/DAAAGIcol.pos";
// Coupe Oxz
Plugin(CutPlane).A = 0 ;
Plugin(CutPlane).B = 1 ;
Plugin(CutPlane).C = 0 ;
Plugin(CutPlane).D = 0 ;
// View[3] = sigma theta-theta
Plugin(CutPlane).iView = 3 ;
Plugin(CutPlane).Run ;
Print.Format = 10; // File format (10=automatic)
View[10].Visible=1;
Print "DAAAGIcol.png";
3) If I call :
gmsh DAAAGI.pos stt.geo
gmsh runs, as expected, in interactive mode, then I toggle visibility on
View[10] interactively and save it as a .png file.
So far so good, but partly interactive.
4) Problems :
4.1) The Include line is commented out because it generates an error :
line 1 : parse error ($)
Do I have to live with reading DAAAGI.pos with the command line ?
4.2) When I call :
gmsh DAAAGI.pos stt.geo -0
gmsh runs, as expected, in batch mode but generates no .png file.
Did I miss something on how to print any chosen view ?
I'll be grateful for any pointer or piece of advice.
********************
Here is the output of gmsh in batch mode :
rit at ret20ex:1> gmsh DAAAGIcol.pos ~/aster/01paluel/src/criss/stt.geo -0 -v 4
Info : 'gmsh DAAAGIcol.pos /home/rit/aster/01paluel/src/criss/stt.geo -0 -v 4 ' started on Mon Jul 4 19:14:48 2005
Info : Reading post-processing file 'DAAAGIcol.pos'
Debug : Data is in double precision format (size==8)
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_DEPL_VECTEUR' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH0 VH317520 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[0]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_SIEF_ELNO_ELGA_SIXX' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[1]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_SIEF_ELNO_ELGA_SIYY' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[2]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_SIEF_ELNO_ELGA_SIZZ' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[3]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_SIEF_ELNO_ELGA_SIXY' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[4]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_SIEF_ELNO_ELGA_SIXZ' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[5]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_SIEF_ELNO_ELGA_SIYZ' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[6]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_EQUI_ELNO_SIGM_VMIS' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[7]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_EQUI_ELNO_SIGM_VMIS_SG' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[8]
Debug : Detected post-processing view format 1.2
Debug : Read View 'CDAAAGI_ERRE_ELNO_ELGA_ERREST' (1 TimeSteps): 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6615 0 0 0 0 0 0 0 0 0 0
Debug : List_Nbrs: SP0 VP0 TP0 SL0 VL0 TL0 ST0 VT0 TT0 SQ0 VQ0 TQ0 SS0 VS0 TS0 SH211680 VH0 TH0 SI0 VI0 TI0 SY0 VY0 TY0 T2D0 T2C0 T3D0 T3C0
Debug : Added View[9]
Info : Read post-processing file 'DAAAGIcol.pos'
Info : Parsing file '/home/rit/aster/01paluel/src/criss/stt.geo'
Debug : Added View[10]
Debug : View 11
: -> Name 'CDAAAGI_SIEF_ELNO_ELGA_SIZZ_Levelset_0'
: -> FileName 'CDAAAGI_SIEF_ELNO_ELGA_SIZZ_Levelset_0.pos'
: -> AliasOf 0
: -> Links 0
Info : Parsed file '/home/rit/aster/01paluel/src/criss/stt.geo'
---
J-F Rit