[Getdp] Script GMSH post-processing plugins or options from GETDP

michael.asam at infineon.com michael.asam at infineon.com
Tue Jun 5 13:34:35 CEST 2012


Hi Max,

you will find an example in the getdp sub directory demos/test.pro:

PostOperation {

  { Name phi ; NameOfPostProcessing MagSta_phi;
    Operation {
      //Print[ phi, OnElementsOf Domain, File "phi.pos" ] ;
      Print[ b,   OnElementsOf Domain, File "b_phi.pos" ] ;
      //Print[ h,   OnElementsOf Domain, File "h_phi.pos", Depth 0 ] ;
      //Print[ b,   OnPlane {{-0.1,0,0}{0.1, 0, 0}{-0.1,0.1,0}} {60,30}, File "b_phi_grid.pos" ] ;
      //Print[ b,   OnLine {{-0.07,eps,0}{0.09, eps, 0}} {500}, File "b_phi.cut" , Format Table ] ;
      //Print[ h,   OnLine {{-0.06,eps,0}{-0.06,0.05,0}} {500}, File "h_phi.cut" , Format Table ] ;
      //Print[ phi, OnGrid {$A*Cos[$B]-0.05,$A*Sin[$B],0} { 0:0.05:0.001, 0:Pi:Pi/51, 0}, File "phi_polar.pos" ] ;
      //Echo [ "Plugin(Triangulate).iView = PostProcessing.NbViews-1;", File >>"phi_polar.pos" ];
      //Echo [ "Plugin(Triangulate).Run;", File >>"phi_polar.pos" ];
    }
  }

  { Name a ; NameOfPostProcessing MagSta_a;
    Operation {
      //Print[ a, OnElementsOf Domain, File "a.pos"] ;
      //Print[ a, OnElementsOf Domain, File > "a.pos", ChangeOfCoordinates {$X,-$Y,$Z}, ChangeOfValues {2*$Val0/2}] ;
      Print[ b, OnElementsOf Domain, File "b_a.pos" ] ;
      // Print[ h, OnElementsOf Domain, File "h_a.pos", Depth 0 ] ;
      //Print[ b, OnPlane {{-0.1,0,0}{0.1, 0, 0}{-0.1,0.1,0}} {60,30}, File "b_a_grid.pos" ] ;
      //Print[ b, OnLine {{-0.07,eps,0}{0.09, eps, 0}} {500}, File "b_a.cut" , Format Table ] ;
      //Print[ h, OnLine {{-0.06,eps,0}{-0.06,0.05,0}} {500}, File "h_a.cut" , Format Table ] ;
    }
  }

}

I think the option OnPlane is what you want.
You can also insert some Gmsh commands in the result .pos file (e.g. activation of plugins, etc.)
with the Echo command.

Hope this helps
Michael



-----Original Message-----
From: getdp-bounces at ace20.montefiore.ulg.ac.be [mailto:getdp-bounces at ace20.montefiore.ulg.ac.be] On Behalf Of meyer at itwm.fraunhofer.de
Sent: Monday, June 04, 2012 5:04 PM
To: getdp at geuz.org; gmsh at geuz.org
Subject: [Getdp] Script GMSH post-processing plugins or options from GETDP

Hi everybody,

can I somehow tell GMSH to apply the CutPlane Plugin from within the GETDP
problem definition? I'm computing the temperature field of a 3D geometry
in a time loop and I need to visualize some inner plane during the
computation.

Maybe I have to define the plane I want to see as a separate region.

Thanks in advance,
Max Meyer (ITWM)


_______________________________________________
getdp mailing list
getdp at geuz.org
http://www.geuz.org/mailman/listinfo/getdp