Home
        Post 2.0 - User Guide - - elsA
         Contents
1.      or  cellNF    variable is defined  it is returned in the last position  in the output array  The interpolation order can be 2  3  or 5    constraint is a thresold for extrapolation to occur  To enable more extrapolation  rise this value    If some blocks in A define surfaces  a tolerance    tol    for interpolation cell search can be defined   A hook can be defined in order to keep in memory the ADT on the interpolation cell search  It  can be built and deleted by createHook and freeHook functions in Converter module  using  ex     tractMesh  function   field   P extractPoint A   x y z   order 2  constraint 40   tol 1 e 6  hook None  or F      P extractPoint A    x1 y1 z1   x2 y2 z2    order 2  constraint 40   tol 1 e 6  hook None    See  Examples Post extractPoint py   See  Examples Post extractPointPT py    P extractPlane  slice a solution A with a plane  The extracted solution is interpolated from A   Interpolation order can be 2  3  or 5  but the 5th order is very time consuming for the moment    The best solution is kept  Plane is defined by c1x c2y c3z c4 0     See  Examples Post extractPlane py   See  Examples Post extractPlanePT py    P extractMesh  Interpolation a solution from a set of donor zones defined by A to an extraction  zone a  Parameter order can be 2  3 or 5  meaning that 2nd  3rd and 5th order interpolations are  performed        Parameter constraint O enables to extrapolate from A if interpolation is not possible for some  points  Extrapolation orde
2.     def F x y z    return 12xyxy   4    ni   30  nj   40  nk   3    m   G cart  0 0 0   f10   ni1 1  10  1 mj 1  1    mi nj nmk    m   C initVars  m  F1  F   x   y   z      m   C initVars m  F2  0    m   C initVars m  F3  0    varname     F1   F2   F3      p   P computeCurl m  varname    defined on centers  p   C center2Node p    back on init grid   p   C addVars  m p     C convertArrays2File  p    out plt      Example file   Examples Post computeCurlPT py      computeCurl  pyTree      import Converter PyTree as C   import Post PyTree as P   import Generator PyTree as G    def F x y z   return 12 yxy   4    ni   30  nj   40  nk   3    m  G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk     m   C initVars m  F1  F   CoordinateX   CoordinateY   CoordinateZ     m   C addVars m  F2    m   C addVars m  F3     varname     F1   F2   F3     m   P computeCurl m  varname     t   C newPyTree   Base     t 2   1   2   append  m   C convertPyTree2File t   out cgns      Example file   Examples Post computeNormCurl py    11   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB        computeNormCurl  array     import Converter as C   import Post as P   import Generator as G    def F x y z    return 12xyxy   4    ni   30  nj   40  nk   3    m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk    m   C initVars  m  F1  F   x   y   z      m   C initVars m  F2  0    m   C initVars m  F3  0    varname     F1   F2   F3      p   P computeNormCurl m  varname    defined on centers  p C c
3.    G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj 2      m2   G cart  5 5 0 0    9   ni 1  9   n3j 1  1    ni nm3 2    m    ml m2    m   C initVars m     rou     1     m   C initVars m   rov   F    x      m   C initVars m   row   0      x0 0 1  yO 5   z0 0 5  p   P streamRibbon m   x0 y0 z0   0  0 2 0       rou       rov        row          C convertArrays2File m  p    out plt    Example file   Examples Post streamRibbonPT py        streamRibbon  pyTree     import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G  import math as M    def F x   return M cos  x   ni   30  nj   40    ml   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj 2    m2   G cart  5 5 0 0    9   ni 1  9   nj 1  1    ni nj 2    t   C newPyTree   Base   StreamR     t 2  1  2     m1 m2   t   C initVars t   vx   1     t   C initVars t     vy     F    CoordinateX      t   C initVars t   vz   0      x0 0 1  yO 5   z0 0 5   p   P streamRibbon t   x0 y0 z0   0  0 2 0     vx   vy   vz     t  2   2   2   append  p    C convertPyTree2File t   out cgns      Example file   Examples Post streamSurf py        streamSurf  array     import Converter as C  import Post as P   import Generator as G  import Geom as D   import math as M    ni   30  nj   40      Node mesh   mil G odrt  0 0 0    10  1 1  10   nj 1  1   imi mj 5    m2 G odrt  5 5 0 0     YS  ni 1  9   mj 1  1    mind 9    b D line   0 1 5  0 1    0 1 5  3 9   NEL   b   C convertArray2Tetra  b     m    ml m2   def F x   return M cos 
4.    Parameters are       gamma  for the specific heat ratio      rop for the perfect gas constant  rep    gamma 1    cv        betas  and    Cs     Sutherland s law constants   or  Ce Ts    and   mus   def  values  betas 1 458e   6  Csz110 4        sl for a constant entropy  defined by     s0   sref   rep gamma  gamma 1  In Tref    rep In Pref    where sref  Tref and Pref are defined for a reference state     Computed variables are defined by their CGNS names      VelocityX     VelocityY     VelocityZ  for components of the absolute velocity      VelocityMagnitude  for the absolute velocity magnitude     Pressure    for the static pressure  requires  gamma          Temperature    for the static temperature  requires  gamma  rep       Enthalpy  for the enthalpy  requires  gamma       Entropy    for the entropy  requires  gamma  rep  s0        Mach  for the Mach number  requires  gamma         ViscosityMolecular  for the fluid molecular viscosity  requires  gamma  rep  Ts  mus  Cs         PressureStagnation    for stagnation pressure requires  gamma          TemperatureStagnation    for stagnation temperature  requires  gamma  rgp          PressureDynamic    for dynamic pressure  requires  gamma      b   PcomputeVariables a    varnamel    varname2    gamma 1 4  rgp 287 53  s0 0     betas 1 458e 6  Cs 110 4  mus 1 76e 5  Ts 273 15  or B   P computeVariables A         In the pyTree version  if the variable name is prefixed by    centers     then the variable is computed   at cente
5.    v2    v3   at point  x0 y0 z0   The output yields the set of N extracted points on the stream ribbon   and the input fields at these points  The stream ribbon computation stops when the current point is  not interpolable from the input grids    b   P streamRibbon A   x0 y0 z0    nx ny nz     v1      v2      v3    N 2000  dir 2         ELSA MU 09024 V2 0 O N E R AN    THE FRENCH AEROSPACE LAB     See  Examples Post streamRibbon py   See  Examples Post streamRibbonPT py   P streamSurf  compute the stream surface starting from a BAR array    b   P streamSurf A   x0 y0 20     v1  v2  v3    N 2000  dir 1     See  Examples Post streamSurf py   See  Examples Post streamSurfPT py     1 8 Isos    P isoLine  compute an isoline correponding to value val of field   b   P  isoLine A  field  val    See  Examples Post isoLine py   See  Examples Post isoLinePT py     P isoSurf  compute an isosurface correponding to value val of field  using marching tetrahe   dra   Return a list of two zones  one TRI and one BAR  if relevant    B   PisoSurf A  field  val    See  Examples Post isoSurf py   See  Examples Post isoSurfPT py    P isoSurfMC  compute an isosurface correponding to value val of field  using marching cubes    b   PisoSurfMC A  field  val    See  Examples Post isoSurfMC py   See  Examples Post isoSurf MCPT py     1 9 Solution integration    For all integration functions  the interface is different when using Converter arrays interface or  py Tree interface  For arrays  fields must b
6.   C array  vx   ni  nj  1   cn   C initVars cn   vx    resn   P integ  m    cn        0    print resn   Example file   Examples Post integPT  py       integ  pyTree      import Converter PyTree as C   import Generator PyTree as G   import Post PyTree as P   ni   30   nj   40   m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj 1     m   C initVars m   vx   1    m   C initVars  m   resn   P integ m  vx     print resn    Example file   Examples Post integNorm py    f   integNorm  array     import Converter as C  import Generator as G  import Post as P      Node mesh and field    m   G cartTetra  0  0  0     0 1 0 1 0 2    10     cl   C array  ro   100  162   TRI    c  C initVars 6l      ro  1    res   P integNorm  m    c    1   print  resl        Node mesh  ni   30  nj 40  m   G cart  0 0 0    10   ni 1  10   nj 1  1        Centers field  cl   C array  vx   ni 1  nj 1  1     T T    c   C initVars cl     vx     1      Integration  res   P integNorm  m    c    1   print  res2        Node field  cl   C array  vx  vy     ni  nj  1   cn   C initVars cl   vx   1     cn   C initVars cl   vy   1      resn   P integNorm  m    cn        print  res3    26     ELSA MU 09024 V2 0    ratio     La    10 1        res     ni nj 1        res        resn    ONERA    THE FRENCH AEROSPACE LAB    Example file   Examples Post integNormPT py          integNorm  pyTree    import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    Node mesh    G cartTetra  0  0  0     0 1 
7.  B   P computeCurl A      vectx       vecty       vectz             See  Examples Post computeCurl py   See  Examples Post computeCurlPT  py   P computeNormCurl  compute the norm of the curl of a 3D vector defined by its variable   names     vectx       vecty     vectz   in a    b   PcomputeNormCurl a    vectx   vecty   vectz    or B   PcomputeNormCurl A        vectx       vecty       vectz          See  Examples Post computeNormCurl py   See  Examples Post computeNormCurlPT py   P computeDiff  compute the difference between neighbouring cells of a scalar field defined by   its variable varname in a  The maximum of the absolute difference among all directions is kept     b   PcomputeDiff a  varname  or B   P computeDiff A varname     a       See  Examples Post computeDiff py   See  Examples Post computeDiffPT py     1 5 Solution selection    P selectCells  select cells with respect to a given criterion  If strict   0  the cell is selected if at least  one of the cell vertices satisfies the criterion  If strict 1  the cell is selected if all the cell vertices  satisfy the criterion  The criterion can be defined as a python function returning True   selected     or False  not selected    b   PselectCells a  E      varl        var2      strict 0  or B   PselectCells A  F      varl        var2            strict 0   or by a formula   b   P selectCells a   x y  2     strict 0  or B   P selectCells A   x y  2     strict 0         See  Examples Post selectCells py   See  Examples Pos
8.  C initVars a   field   F    CoordinateX   CoordinateY    CoordinateZ       iso   P isoSurf a   field   value 5    t   C newPyTree   Base      t 2  1  2     iso  C convertPyTree2File t   out cgns      Example file   Examples Post isoSurfMC py        isoSurfMC  array     import Post as P   import Converter as C  import Generator as G  import Geom as D    def F x  y  Zz   return Xx x yx y Zz    Di  N    G cartHexa    20  20  20    0 25 0 25 0 5    100 100 50   a   C initVars a   field   EF    x   y    z       iso   P isoSurfMC a   field   value 5    C convertArrays2File iso   out plt      Example file   Examples Post isoSurf MCPT py          isoSurfMC  pyTree     import Post PyTree as P  import Converter PyTree as C  import Generator PyTree as G    def F x  y  Z   return Xx x yx y Zz    Di  N    G cartHexa    20  20  20    0 5 0 5 0 5    50 50 50   a   C initVars a   field   F    CoordinateX   CoordinateY    CoordinateZ       25   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    iso   P isoSurfMC a   field   value 5    t   C newPyTree   Base      t 2  1  2     iso  C convertPyTree2File t   out cgns      Example file   Examples Post integ py        integ  array     import Converter as C  import Generator as G  import Post as P      Node mesh  ni   30   nj   40    m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj 1     Field in centers   c   C array  vx   ni 1  nj 1  1   c   C initVars c   vx    resc   P integ  m    cl    1  0    print resc     Field in nodes   cn 
9.  KCore test as test    S   D circle  0 0 0   1   N 100   snear   0 1   o   G octree  s    snear   dfar 10   balancing 1    npts   len o 1  0     indicVal   G getVolumeMap  o    indicator  valInf  valSup   P computeIndicatorField   o  indicVal  nbTargetPts 2 xnpts  bodies  s     indicator   C center2Node  indicator    o   C addVars  o  indicator     C convertArrays2File  o    out plt      Example file   Examples Post computelndicatorFieldPT py          compIndicatorField  pyTree     import Generator PyTree as G  import Converter PyTree as C  import Geom PyTree as D   import Post PyTree as P    S   D circle  0 0 0   1   N 100   snear   0 1  o   G octree  s    snear   dfar 10   balancing 1   npts   o 1   0   0     18     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB    o   G getVolumeMap  o   o  valInf  valSup   P computeIndicatorField     O   centers vol   nbTargetPts 2  npts  bodies  s    t   C newPyTree   Base  2    t 2  1   2   append  o   C convertPyTree2File t   out cgns      Example file   Examples Post extractPoint py        extractPoint  array     import Converter as C  import Generator as G  import Post as P    ni   10  nj   10  nk   10     a   G cart   0 0 0    1   ni 1  1   n3 10 y 1   mk 13    ni nj nk    def F x y z   return x x x x   2  y   Z Z  a   C initVars a   F   F    x   y   z         Utilisation directe  val   P extractPoint  a    0 55  0 38  0 12   2   print val      Utilisation avec un hook  hook   C createHook  a   function    extractMesh      
10.  as C   import Generator PyTree as G   import Post PyTree as P   import Transform PyTree as T   al   G oart  0  0  0    01 5 1  1     2 251    a2   T rotate al   0  0  0    0  1  0   100   a2 0     cart2    res   P sharpEdges  al a2  alphaRef 45     t   C newPyTree     Edge    1    Base    2    t 2  1  2     res  t 2  2  2    al a2   C convertPyTree2File t  out cgns      Example file   Examples Post silhouette py        silhouette   array     import Generator as G  import Converter as C  import Post as P    a   G cylinder  0  0  0    0 5  1   360   0   10    50 1 30      vector  1  0  0    res   P silhouette  a   vector     l    a  res  C convertArrays2File l   out plt      Example file   Examples Post silhouettePT py    f   silhouette  pyTree     import Generator PyTree as G  import Converter PyTree as C  import Post PyTree as P    Di  N    G cylinder  0  0  0    0 5  1   360   0   10    50 1 30      ct  N    C newPyTree     Base       t 2  1   2  append  a     vector  1  0  0    res   P silhouette a  vector     t 2  1  2     res  C convertPyTree2File t   out cgns      Example file   Examples Post coarsen py        coarsen  array     import Post as P  import Converter as C    Q    import Generator as  import Transform as T      coarsen all cells of a square    ni   21  nj   21  nk   11  hi   2   ni 1   hj   2   nj 1   hk   1   nk 1     16   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    m   G cart  0  0  0     hi hj hk    ni nj nk      hi   hi 2  hj   hj 2  hk  
11.  hk 2   m2   G cart  0  0  0     hi hj hk    ni nj nk    m2   T subzone  m2   3 3 6    m 2  2 m 3  2  6    m2   T translate m2   0 75 0 75 0 25     m2   T perturbate m2  0 51    tri   G delaunay  m2     npts   tri 2  shape 1   indic   C array    indic     npts  1  1   indic   C initVars indic   indic   1     Sol   P coarsen tri  indic  argqual 0 25  tol 1 e6   C convertArrays2File  tri  sol    out plt      Example file   Examples Post coarsenPT py    f   coarsen  pyTree     import Post PyTree as P  import Converter PyTree as C  import Generator PyTree as G  import Transform PyTree as T    ni   21  nj   21  nk   1  hi   2   ni 1   hj   2   nj 1     m   G cart  0  0  0     hi hj 1     ni nj nk    m   T perturbate m  0 51   tri   G delaunay m   tri   C initVars tri   centers indic   1    sol   P coarsen tri   indic      t   C newPyTree   Base  2    t 2  1  2  append sol   C convertPyTree2File t   out cgns      Example file   Examples Post refine py          refine  array     import Post as P  import Converter as C  import Generator as G  import Geom as D    a   G cartTetra   0 0 0    1 1 1    10 10 1   indic   C array  indic   a 2  shape 1   1  1   indic   C initVars indic   indic   0   C setValue indic  50   1     C setValue indic  49   1     a   P refine a  indic   C convertArrays2File  a    out plt      Example file   Examples Post refinePT py          refine  pyTree      import Post PyTree as P  import Converter PyTree as C  import Generator PyTree as G  import Geom PyTree a
12.  import Post PyTree as P  import Generator PyTree as G    ni   30  nj   40  nk   10    m  G cart  0 0 0    10   ni 1  10    mj 1  1    ni n3 nk     m   C initVars m     Density 2    CoordinateX   CoordinateX    CoordinateY        m   P computeGrad m   Density     t   C newPyTree   Base  3    t 21 11 21 append  m     C convertPyTree2File t   out cgns    Example file   Examples Post computeNormGrad py        computeNormGrad  array     import Converter as C   import Post as P   import Generator as G    10   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    ni   11  nj   11  nk   1  G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk       C initVars m      ro   2x   x    x x    y      P computeNormGrad m  ro     p is defined on centers  C center2Node p    back on initial mesh    addVars  m  pl    convertArrays2File  p    out plt      I  C3    m  m   D  p   p   C     Example file   Examples Post computeNormGradPT py    f   computeNormGrad  pyTree     import Converter PyTree as C  import Post PyTree as P   import Generator PyTree as G    ni   30  nj   40  nk   10    m   G ca  rt  0 0 0    10   ni 1  10   mj 1 541     mi nj nk     m   C initVars m     Density 2   CoordinateX   CoordinateX   CoordinateY        m   P computeNormGrad m   Density     t   C newPyTree   Base  3    t 21 11 21 append  m   C convertPyTree2File t   out cgns      Example file   Examples Post computeCurl py        computeCurl  array     import Converter as C  import Post as P   import Generator as G
13.  is equal to the number of    elements in the initial triangulation    See  Examples Post coarsen py   PyTree version  indic is stored as a solution located at centers     b   P coarsen a  indicName  indic     argqual 0 25  tol 1 e 6         See  Examples Post coarsenPT py    P refine  refine a triangle mesh by providing a refinement indicator  which is 1 if the element  must be refined  0 elsewhere  Array version  an indic i array must be provided  whose dimension  ni is equal to the number of elements in the initial triangulation    b   Prefine a  indic    See  Examples Post refine py     PyTree version  indic is stored as a solution located at centers   b   P refine a  indicName  indic       See  Examples Post refinePT  py    P computelndicator Value  compute the indicator value on the unstructured octree mesh a  based on the absolute maximum value of a varName field defined in the corresponding structured  octree t  In the array version  t is a list of zones  and in the pyTree version  it can be a tree or a base  or a list of bases or a zone or a list of zones  Variable varName can be located at nodes or centers   The resulting projected field is stored at centers in the octree mesh    b   P computelndicatorValue a  t  varName     4   ELS A MU 09024 V 2 0 O N E R A    THE FRENCH AEROSPACE LAB     See  Examples Post computelndicatorValue py   See  Examples Post computeIndicatorValuePT py   P computelndicatorField  compute an indicator field to adapt an octree mesh with res
14.  res    Example file   Examples Post integMoment py      integMoment  array      import Converter as C   import Generator as G    import Post as P      Maillage et champs non structure  en noeuds  m   G cartTetra  0  0  0     0 1 0 1 0 2    10 10 1      27   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    c   C array  vx vy vz   100  162   TRI    c   C initVars 6   vx vy vz   1l    res   P integMoment  m    c    1    5  5   0      print res    f Maillage en noeuds   ni   30   nj   40   m   G cart  0 0 0    10   ni 1  10   mj 1  1    ni njr1   C convertArrays2File  m    new plt    bin_tp        Champ a integrer en centres  c   C array    vx vy vz     ni 1  nj 1  1     c   C initVars c   vx vy vz   1        Integration de chaque champ  res   P integMoment  m    c    1    5  5   0       print res    f Champ a integrer en noeuds    cn   C array  vx vy VZz   ni  nj  1   cn   C initVars cn   vx vy vz   1    resn   P integMoment  m    cn    1    5  5   0      print resn    Example file   Examples Post integMomentPT py          integMoment  pyTree     import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    m   G cartTetra  0  0  0     0 1 0 1 0 2    10 10 1    m   C initVars m  vx  1    m   C initVars m  vy  0    m   C initVars m    vz    0    res   P integMoment  m  center  5  5   0   vector   vx   vy   vz     print res    Example file   Examples Post integMomentNorm py        integMomentNorm  array     import Converter as C   import Genera
15.  v  i   P isoLine a   field   value   if  i         isos append i   C convertArrays2File  a  isos   out plt      Example file   Examples Post isoLinePT py          isoLine  pyTree     import Post PyTree as P  import Converter PyTree as C  import Generator PyTree as G  import Geom PyTree as D    def F x  y   return x xtyx y    Di  N    G cartTetra   0 0 0    1 1 1    10 10 1   a   C initVars a   field   F    CoordinateX   CoordinateY       isos       min   C getMinValue a      field      max   C getMaxValue a     field      for v in xrange 20    value   min    max min   18    v  try   i    P isoLine a   field   value     24   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    isos append  i   except  pass  t   C newPyTree     Base    3    ISOS    1    t 2  1  2  append a   t 2   2   2    t 2   2   2    isos  C convertPyTree2File t   out cgns      Example file   Examples Post isoSurf py        isoSurf  array     import Post as P  import Converter as C  import Generator as G  import Geom as D    def F x  y  Z   return Xx x yx y Z  a   G cartTetra    20  20  20    0 25 0 25 0 5    100 100 50   a   C initVars a   field   F    x   y    z       iso   P isoSurf a   field   value 5    C convertArrays2File iso   out plt      Example file   Examples Post isoSurfPT py    f   isoSurf  pyTree     import Post PyTree as P  import Converter PyTree as C  import Generator PyTree as G    def F x  y  Z   return x xxt yx xy z  a   G cartTetra    20  20  20    0 5 0 5 0 5    50 50 50   a  
16.  val   P extractPoint  a    0 55  0 38  0 12   2  hook hook    print val    Example file   Examples Post extractPointPT  py    f   extractPoint  pyTree      import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    ni   10  nj   10   nk   10    a   G cart  0 0 0    Ll l mi 1  1l   mj l   l   mk 1     ni nj nk     def F x y z   return x   2   y   3  z   a   C initVars a   EI  F    CoordinateX   CoordinateY   CoordinateZ         Utilisation directe  val   P extractPoint a   0 55  0 38  0 12   2    print val      Utilisation avec un hook  hook   C createHook a  function  extractMesh    val   P extractPoint a   0 55  0 38  0 12   2  hook hook    print val    Example file   Examples Post extractPlane py        extractPlane  array     import Converter as C  import Post as P   import Transform as T  import Generator as G    m  G cylinder  0 0 0   1  5  0   360   10    50 50 50   m   T rotate m    0 0 0    1 0 0   35     a   P extractPlane  m    0 5  1   0   1   2   C convertArrays2File  m a    out plt      Example file   Examples Post extractPlanePT py        extractPlane  pyTree     import Converter PyTree as C  import Post PyTree as P  import Transform PyTree as T  import Generator PyTree as G    m   G cylinder  0 0 0   1  5  0   360   10    50 50 50     19   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    m   T rotate m   0 0 0    1 0 0   35     m   C initVars m  Density  1   m   C initVars m  centers cellN  1   z     P extractPlane m   0 
17.  x      initVars m     rou     1    JinitVars m   rov   E    x       N  CO E 3     initVars m   row   0      m  m  m    p   P streamSurf m  b      rou       rov        row        C convertArrays2File m  p    out plt      Example file   Examples Post streamSurfPT py    23     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB        streamSurf  pyTree     import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G  import Geom PyTree as D  import math as M    ni   30  nj   40  nk   5   ml   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk    m1 0       cartl1     m2   G cart  5 5 0 0    9   ni 1  9   nj 1  1    ni nj nk    meld     cart2   b   D line   0 1 5  0 1    0 1 5  3 9   N 10   b   C convertArray2Tetra  b    def F x   return M cos x      newPyTree   Base   StreamR     t 2  1  2     m1 m2     T     initVars t     vx     1     initVars t   vy   F    CoordinateX      initVars t   vz   0     020 1  yO 5   z0 0 5     P streamSurf t  b   vx   vy   vz     t  2   2   2   append  p   C convertPyTree2File t   out cgns      OM ct cf ct ct  ll   QUO c o    Example file   Examples Post isoLine py    f   isoLine  array     import Post as P  import Converter as C  import Generator as G  import Geom as D    def F x  y   return x X ty y    G cartTetra   0 0 0    1 1 1    10 10 1   C initVars a   field   F    x   y       isos       min   C getMinValue a      field      max   C getMaxValue  a   field    for v in xrange 20    value   min    max min   18   
18. 0 1 0 2    10 10 1    initVars m   Density   1       C newPyTree   Base   2    t 2   1   2   append  m   res   P integNorm t   Density     print res    o BR 3    I   e    Example file   Examples Post integNormProduct py          integNormProduct  array     import Converter as C   import Generator as G   import Post as P    Maillage et champs non structure  en noeuds  G cartTetra  0  0  0     0 1 0 1 0 2    10 10 1     C array  vx vy vz   m 1  shape 1   m 2  shape 1      TRI        DO OHB e  ll      C initVars c   vx vy vz   1      P integNormProduct  m    c         print res    H  10   n      Maillage en noeuds  ni   30   nj   40  m  G cart  0 0 0    10   ni 1  10  1 mj 1  1    n1 n3 1     f Champ a integrer en centres  c   C array  vx vy  vz     ni 1  nj 1  1     c   C initVars c   vx vy vz   1        Integration de chaque champ  res   P integNormProduct  m    cl    1    print res    f Champ a integrer en noeuds    cn   C array  vx vy VZz   ni  nj  1   cn   C initVars cn   vx vy vz   1    resn   P integNormProduct  m    cn         print resn    Example file   Examples Post integNormProductPT py    f   integNormProduct  pyTree     import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    ni   30   nj   40    m  G cart  0 0 0    10   ni 1  10   mj 1  1    n1 n3 1    m   C initVars  m  MomentumX  1     m   C initVars  m  MomentumY  1l     m   C initVars  m  MomentumZ  1     res   P integNormProduct  m    MomentumX    MomentumY   MomentumZ      print
19. 5  1   0   1   2    t   C newPyTree   Base  2    t 21 11 21 append  z     C convertPyTree2File t   out cgns    Example file   Examples Post extractMesh py        extractMesh  array     import Converter as C  import Post as P   import Generator as G    ni   30  nj   40  nk   10  G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk        C initVars m   ro   1        G cart C 0 0 70  Y   Lor Dele O1    20  20  T   Extract solution on extraction mesh  a2   P extractMesh  m   a   C convertArrays2File  m a2    out plt      m  m    Create extraction mesh  a       Example file   Examples Post extractMeshPT py    f   extractMesh  pyTree     import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G    ni   30  nj   40   nk   10    m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk     m   C initVars m     Density     2    m   C initVars m   centers cellN   1       Extraction mesh  a  G cdrt  0  0  0 5    1   0 1  1     20  20  1    a 0    extraction       4 Extract solution on extraction mesh   a     P extractMesh m  a    t   C newPyTree   Solution   3   Extraction   2    t 2  1  2  append m   t 2   2   2    a   C convertPyTree2File t   out cgns      Example file   Examples Post zipper py        zipper  array     import Converter as C  import Post as P  import Generator as G  import Transform as T    mi G cylinder  0 0 0   1  5  0   360   10    50 50 1     ml   C initVars ml   cellN   1       Set cellN   2  interpolated points  to boundary  S   T subzon
20. Post 2 0    User Guide      C  Benoit  G  Jeanfaivre     Peron  P  Raud  S  Landier  B  Rodriguez     Verley  Onera   DSNA    1 Post  solution post processing module    11 Preamble  This module provides post processing tools   When using the Converter array interface  a  or b  denotes an array  and A  or B  denotes a list    of arrays  Then  Post module must be imported   import Post as P    When using the pyTree interface  import the module   import Post PyTree as P    In that case  a is a zone node  A is a list of zone nodes or a complete pyTree     1 2 Changing variable names    P renameVars  Rename a list of variables with new variable names     t   PrenameVars t  old VarNameList  new VarNameList      See  Examples Post renameVars py     1 3 Variables import    P importVariables  variables located at nodes and or centers can be imported from a pyTree tl    to a pyTree t2  If one variable already exists in  2  it is replaced by the same variable from tl  If  method 0  zone are matched from names  if method 1  zones are matched from coordinates with  a tolerance eps  If addExtra 1  unmatched zones are added to a EXTRA base    t   PimportVariables t1  t2  method 0  eps 1 e 6  addExtra 1         See  Examples Post importVariablesPT py     1 4 Variables computation    P computeVariables  new variables can be computed from conservative variables  The list of the  names of the variables to compute must be provided     1   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB 
21. ample file   Examples Post streamLine py        streamLine  array     import Converter as C  import Post as P   import Generator as G  import math as M    ni   30  nj   40  G cart  0 0 0    10   ni1 1  10    mj 1  1    mi nm3 2    G cart  5 5 0 0    9   ni 1  9   nj 1  1    ni nj 2      mi  m2    def F x   return M cos  x      m1 m2   C initVars m   rou           Lis  C initVars m   rov   F    x       C initVars m   row   0    020 1  y0 5   z0 0 5  p   P streamLine m   x0 y0 z0    rou   rov   row       x 3 BBS  N    C convertArrays2File  mt  pl    out plt    Example file   Examples Post streamLinePT py          streamLine  pyTree     import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G  import math as M    def F x   return M cos  x   ni   30  nj   40    ml   gG cart  0 0 0    10   ni 1  10   mj 1  1    mi mnj 2    m2   G cart  5 5 0 0    9   ni 1  9   nj 1  1    ni nj 2    t   C newPyTree   Base   StreamR     t 2  1  2     m1 m2   t   C initVars t   vx   1     t   C initVars t     vy     E    CoordinateX      t   C initVars t   vz   0      x0 0 1  yO 5   z0 0 5   p   P streamLine t   x0 y0 z0    vx   vy   vz     t 2  2  2  append p    C convertPyTree2File t   out cgns      Example file   Examples Post streamRibbon py    22     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB        streamRibbon  array     import Converter as C  import Post as P   import Generator as G  import math as M    ni   30  nj   40  def F x   return M cos  x     ml
22. e  Examples Post integNormProduct py   See  Examples Post integNormProductPT py   P integMoment  compute the integral of a moment over the geometry defined by coord  The   input field must have 3 variables   cx cy cz  are the center coordinates  For array interface    res   PintegMoment  coord    field    ratio       center  0  0  0          For pyTree interface  the vector of variables to be integrated must be specified     See  Examples Post integMoment py   See  Examples Post integMomentPT py   P integMomentNorm  compute the integral of a moment over the geometry defined by coord    taking into account the surface normal  The input field is a scalar  For array interface    res   PintegMomentNorm  coord    field    ratio      center  cx cy cz     For pyTree interface  the variable to be integrated can be specified  If no variable is specified  all   the fields located at nodes and centers are integrated    res   PintegMomentNorm A  center  cx cy cz   var         See  Examples Post integMomentNorm py   See  Examples Post integMomentNormPT py     1 10 Example files  Example file   Examples Post rename Vars py          renameVars  array     import Converter as C  import Post as P   import Generator as G    el    i   30  nj   40    m   E cart  0 0 0   f10   ni 1  10   mj 1  1    mi nj 2    m   C initVars m   ro   1    m   C initVars m   rou   1            Rename a list of variables  m2   P renameVars  m    ro   rou      Density   MomentumX     C convertArrays2File  m2    out pl
23. e as G    ni   30  nj   40  m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj 2      vars     Density   MomentumX    MomentumY    MomentumZ       EnergyStagnationDensity     for v in vars  m   C addVars m  v      Pressure and Mach number extraction   m   P computeVariables m    Mach    Pressure      t   C newPyTree   Base     t 2   1   2   append  m    C convertPyTree2File t   out cgns      Example file   Examples Post computeExtraVariable py          computeExtraVariable  array     import Generator as G   import Converter as C   import Post as P   import Transform as T      G cart   0 0 0    1 1 1    50 50 50      initVars a   Density   1      initVars a   MomentumX   1      initVars a   MomentumY   0      initVars a   MomentumZ   0      initVars a   EnergyStagnationDensity   100000     computeExtraVariable a   VorticityMagnitude      ll  tu  bi ei E G  AA     computeExtraVariable a   QCriterion    au   P computeExtraVariable a   ShearStress          3     node2Center  a     uo AA BP DU P RM         C addVars  a  m  q  tau       Skin friction requires a surface array with shear stress already computed    wall   T subzone  a   1 1 1    49 49 1    skinFriction   P computeExtraVariable wall   SkinFriction      9   ELSA MU 09024 V 2 0 O N E R A    THE FRENCH AEROSPACE LAB    skinFrictionTangential   P computeExtraVariable  wall   SkinFrictionTangential    wall   C addVars  wall  skinFriction  skinFrictionTangential    C convertArrays2File  wall      out plt        Example fi
24. e input separately  for pyTree  they must be defined in  each zone     P integ  compute the integral of a scalar field  whose name is varString  over the geometry  defined by arrays containing the coordinates   field     an optional ratio    Solution and ratio can  be located at nodes or at centers  For array interface   res   P integ  coord    field    ratio         For pyTree interface  the variable to be integrated can be specified  If no variable is specified  all  the fields located at nodes and centers are integrated   res   P integ A  var        See  Examples Post integ py   See  Examples Post integPT  py   P integNorm  compute the integral of each scalar field times the surface normal over the ge     ometry defined by coord  For array interface    res   P integNorm  coord    field    ratio        For pyTree interface  the variable to be integrated can be specified  If no variable is specified  all  the fields located at nodes and centers are integrated    res   P integNorm A  var            See  Examples Post integNorm py   See  Examples Post integNormPT py    P integNormProduct  compute the integral of a vector field times the surface normal over the  geometry defined by coord  The input field must have 3 variables  For array interface  field must  be a vector field      ELSA MU 09024 V2 0 O N E R AN    THE FRENCH AEROSPACE LAB    res   P integNormProduct  coord    field    ratio         For pyTree interface  the vector field to be integrated must be specified     Se
25. e m1   1 m1 3  1    m1 2  m1 3  m1 4     S     C initVars s   cellN   2    ml   T patch ml  s   1 m1 3  1        s   T subzone ml   1 1 1    m1 2  1 m1 4     S   C initVars s   cellN   2   ml   T patch ml  s   1 1 1     ni   30  nj   40  G cart  0 0 0    10   ni 1  10   nj 1   1    ni nj 1   m2   C initVars  m2   cellN   1      3  N  ll    array   P zipper  ml m2        C convertArrays2File  array      out plt        20     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB    Example file   Examples Post zipperPT py          zipper  pyTree      import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G  import Transform PyTree as T      cylindre   ni   30  nj   40  nk   1   G cylinder  0 0 0   1  5  0   360   10    ni nj nk    C addVars  m1   Density    ml   C initVars  ml  cellN  1     mi    mi      Set cellN   2  interpolated points  to boundary    S   T subzone  ml   1 nj 1    ni nj nk    S   C initVars s   cellN   2    ml   T patch ml  s   1 nj 1    s   T subzone  ml   1 1 1    ni 1 nk     S   C initVars s   cellN   2     ml   T patch ml  s   1 1 1      f carre   ni   30  nj   40   m2 G carc  0 0  0     10 7  81 1  10 7  egal  eds  ni nj l    m2   C initVars  m2   Density   1 2   m2   C initVars  m2   cellN   1      t   C newPyTree   Base  2    t 2  1  2      ml  m2   z   P zipper t   z 0     zipper    t 2  1  2  append z   C convertPyTree2File t   out cgns      Example file   Examples Post usurp py        usurp  array     import Post as P  
26. enter2Node p    back on init grid   p   C addVars  m p     C convertArrays2File  p    out plt      Example file   Examples Post computeNormCurlPT py        computeNormCurl  pyTree     import Converter PyTree as C  import Post PyTree as P   import Generator PyTree as G    def F x y z   return 12 yxy   4    ni   30  nj   40  nk   3  m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj nk      m   C initVars m  F1  F   CoordinateX   CoordinateY   CoordinateZ     m   C addVars m  F2    m   C addVars m  F3     varname     F1   F2   F3     m   P computeNormCurl m  varname     t   C newPyTree   Base     t 2  1   2   append  m   C convertPyTree2File t   out cgns      Example file   Examples Post computeDiff py        computeDiff  array     import Converter as C  import Post as P   import Generator as G    def F x    if   x  gt  5     return True  else   return False    ni   30  nj   40  nk   1    ti   G cart   0 0 0    10   ni 1  10   7  m5j 1  41   5  mi mjy nk    m   C initVars m   ro   F    x      p   P computeDiff  m   ro       p   C addVars  m  p     C convertArrays2File  p    out plt      Example file   Examples Post computeDiffPT py        computeDiff  pyTree     import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G    def F x    if   x  gt  5     return True  else  return False    12     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB    ni   30  nj   40  nk   1    megG cart  0 0 0    10   ni 1  10     mj 1  12    minj nky   m   C initVa
27. import Converter as C  import Generator as G  import Transform as T    cyln        al   G cylinder  0 0 0   0  2  360  0  1    100 2 10   al   T subzone al   1 2 1    al 2  2 a1 4     cyln append  al        a2   G cylinder  0 0 0   0  2  90  0  0 5   10 2 10   a2   T translate a2   0 0 0 2     a2   T subzone a2   1 2 1    a2 2  2 a2 4     cyln append  a2        cl   cyln 0    ibl   C array  cellN   cl 2  1  c1 3   c1 4  1    ibl   C initVars ibl  cellN   1    ib1 1   0 586    0        c2   cyln 1    ib2   C array  cellN   c2 2  1  c2 3   c2 4  1    ib2   C initVars ib2   cellN   1     ibc  ibl  ib2   r   P usurp cyln  ibc    cylc   C node2Center  cyln    out        l   len cylc    for i in range  1   out append C addVars  cylc i   ibc ill      C convertArrays2File out   outc plt      21   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    Example file   Examples Post usurpPT py    f   usurp  pyTree     import Post PyTree as P  import Converter PyTree as C  import Generator PyTree as G  import Transform PyTree as T    al   G cylinder  0 0 0   0  2  360  0  1    100 2 10   al T subzone al   1 2 1    100 2 10    al 0    cy11     a2   G cylinder  0 0 0   0  2  90  0  0 5   10 2 10     a2   T translate a2   0 0 0 2     a2   T subzone a2   1 2 1    10 2 10    a2 0     cyl2     al   C initVars al   centers cellN  1     a2   C initVars a2   centers cellN  1      t   C newPyTree   Base  2     t 2   1   2      al  a2    t   P usurp t   C convertPyTree2File t   out cgns      Ex
28. le   Examples Post computeExtraVariablePT py    f   computeExtraVariable  pyTree     import Generator PyTree as G   import Converter PyTree as C   import Transform PyTree as T   import Post PyTree as P    def F x y   return x x   yx y     cart   0 0 0    1 1 1    50 50 50       initVars a   Density   1      initVars a   MomentumX   F    CoordinateX    CoordinateY      initVars a   MomentumY   0      initVars a   MomentumZ   0      initVars a   EnergyStagnationDensity   100000     computeExtraVariable a   centers VorticityMagnitude     computeExtraVariable a   centers QCriterion     computeExtraVariable a   centers ShearStress      D y DO DO D D D  N  tg  Hy FU  CO ET CO 003    o  I  Hd     subzone  a   1 1 1    50 50 1     b   P computeExtraVariable b   centers SkinFriction    b   P computeExtraVariable b   centers SkinFrictionTangential      E C newPyTree   Base      t 2  11 2   append  a   C convertPyTree2File t   out cgns      Example file   Examples Post computeGrad py        computeGrad  array     import Converter as C  import Post as P   import Generator as G    ni   1001  nj   1001  nk   1   m  Gart  0 0 0    10  mie   10    j l    mi pn  nk   m  initVars m    ro   2  x   x   y        p  computeGrad m  ro   4  p is defined on centers   p   C center2Node p    back on initial mesh  D   Cy    N  Qr IO x30       C addVars  m  p    convertArrays2File  p    out plt      Example file   Examples Post computeGradPT py    f   computeGrad  pyTree     import Converter PyTree as C 
29. les Post exteriorFacesStructuredPT py   P exteriorElts  select the exterior elements of a mesh  that is the first border fringe of cells    b   P exteriorElts a     See  Examples Post exteriorElts py   See  Examples Post exteriorEltsPT py   P frontFaces  select faces that are located at the boundary where a tag indicator change from 0    ol    b   PfrontFaces a  tag     See  Examples Post frontFaces py   See  Examples Post frontFacesPT py    P sharpEdges  return sharp edges arrays starting from surfaces or contours  Adjacent cells    ct    having an angle deviating from more than alphaRef to 180 degrees are considered as sharp   res   P sharpEdges A  alphaRef   30     See  Examples Post sharpEdges py   See  Examples Post sharpEdgesPT py    P silhouette  return silhouette arrays starting from surfaces or contours  according to a direction   vector   res   P silhouette A  vector  1  0  0      See  Examples Post silhouette py   See  Examples Post silhouettePT py    P coarsen  coarsen a triangle mesh by providing a coarsening indicator  which is 1 if the ele   ment must be coarsened  0 elsewhere  Triangles are merged by edge contraction  if tagged to be  coarsened by indic and if new triangles deviate less than tol to the original triangle  Required mesh  quality is controled by argqual  argqual equal to 0 5 corresponds to an equilateral triangle  whereas  a value near zero corresponds to a bad triangle shape    Array version  an indic i array must be provided  whose dimension ni
30. nother mesh    When using the array interface  the input arrays are a list of grid arrays A  defining nodes co   ordinates and a corresponding list of arrays defining the chimera nature of cells at cell centers B   Blanked cells must be flagged by a null value  Other values are equally considered as computed or  interpolated cells    C   Pusurp A  B    When using the pyTree interface  chimera cell nature field must be defined as a center field in A   B   Pusurp A    Warning  normal of surfaces grids defined by A must be oriented in the same direction     See  Examples Post usurp py   See  Examples Post usurpPT py     1 7 Streams    P streamLine  compute the stream line with N points starting from point  x0 y0 z0   given a solu   tion A and a vector defined by 3 variables     v1       v2    v3      Parameter  dur can be set to 1  streamline  follows velocity    1  streamline follows  velocity   or 2  streamline expands in both directions    The output yields the set of N extracted points on the streamline  and the input fields at these  points  The streamline computation stops when the current point is not interpolable from the input    grids   b   P streamLine A   x0 y0 z0   Pv L     v2  v3    N 2000  dir 2         See  Examples Post streamLine py   See  Examples Post streamLinePT py   P streamRibbon  compute the stream ribbon starting from point  x0 y0 z0   of width and di   rection given by the vector  nx ny nz   This vector must be roughly orthogonal to the vector   v1    
31. pect to   the required number of points nbTargetPts  a field  and bodies  If refineFinestLevel 1  the finest   level of the octree o is refined  If coarsenCoarsestLevel 1  the coarsest level of the octree o is   coarsened provided the balancing is respected    This function computes epsInf  epsSup  indicator such that when indicVal    vallnf  the octree is    coarsened  indicator  1   when indicVal   valSup  the octree is refined  indicator 1    For an octree defined in an array o  and the field in indic Val   indicator  vallnf  valSup   P computelndicatorField o  indicVal  nbTargetPts  1  bodies     re        fineFinestLevel 1  coarsenCoarsestLevel 1   For the pyTree version  the name varname of the field on which is based the indicator must be spec   ified    o  vallnf  valSup   P computeIndicatorField o  varname  nbTargetPts  1  bodies     refine        FinestLevel 1  coarsenCoarsestLevel 1    See  Examples Post computeIndicatorField py   See  Examples Post computelIndicatorFieldPT py      1 6 Solution extraction    P extractPoint  extract the field in one or several points  given a solution defined by A  The ex   tracted field s  is returned as a list of values for each point  If the point  x y z  is not interpolable  from a grid  then O for all fields is returned    In the pyTree version  extractPoint returns the extracted solution from solutions located at nodes  followed by the solution extracted from solutions at centers    If  celIN    ichim      cellnf        status
32. r can be 0 or 1 and is defined by extrapOrder      ELSA MU 09024 V2 0 O N E R AN    THE FRENCH AEROSPACE LAB    A preconditioning tree for the interpolation cell search can be built prior to extractMesh  if is used    several times for instance  and is stored in a hook  It can be created and deleted by C createHook  and C freeHook  see Converter module userguide    b   P extractMesh A a order 2 extrapOrder 1 constraint 40  tol 1 e 6  hook None         See  Examples Post extractMesh py   See  Examples Post extractMeshPT py    P zipper  build an unstructured unique surface mesh  given a list of structured overlapping sur    face grids A  Cell nature field is used to find blanked  0  and interpolated  2  cells    a   P zipper A  options       The options argument is a list of arguments such as   argName   arg Value   Option names can be     overlapTol    for tolerance required between two overlapping grids   if the projection distance be   tween them is under this value then the grids are considered to be overset  Default value is 1 e 5      For some cases     matchTol    can be set to modify the matching boundaries tolerance  Default value  is set le 6  In most cases  one needn   t modify this parameter     See  Examples Post zipper py   See  Examples Post zipperPT py    P usurp   an alternative to  zipper  is  usurp   Result is a ratio field located at cell centers  In  case of no overset  ratio are set to 1  otherwise ratio represents the percentage of overlap of a cell  by a
33. ree   Base     t 2 1 11 2      b   C convertPyTree2File t   out cgns      Example file   Examples Post frontFaces py          frontFaces  array     import Converter as C  import Generator as G  import Post as P           G cart   0 0 0    1 1 1    11 11 11     def F x  y  z     if  x   2 y   z  gt  20    return 1   else  return 0    C initVars a   tag   FE    x    y    z       C extractVars a    tag       a  t  f P frontFaces a  t    C convertArrays2File  a f    out plt      Example file   Examples Post frontFacesPT py        frontFaces  pyTree     import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    a ce G cart   0 0 0    1 121 124    LIl I1 1l1     def F x  y  z    if  x   2xy   z  gt  20    return 1    else  return 0    a   C initVars a   tag   F    CoordinateX    CoordinateY    f   P frontFaces a   tag     f 0     front    t   C newPyTree   Base      t 2  1  2      a  f    Ce    convertPyTree2File t   out cgns      Example file   Examples Post sharpEdges py    15     ELSA MU 09024 V2 0      CoordinateZ       ONERA    THE FRENCH AEROSPACE LAB        sharpEdges   array      import Converter as C   import Generator as G   import Post as P   import Transform as T   al   G oart  0  0 5 0    1 5 1  1  7  2  251   a2   T rotate al   0  0  0    0  1  0   100    res   P sharpEdges  al a2  alphaRef 45    C convertArrays2File  al a2  res  out plt      Example file   Examples Post sharpEdgesPT py        sharpEdges  pyTree      import Converter PyTree
34. rs m   Density   F    Coordinatex      m   P computeDiff m   Density     t   C newPyTree   Base  2    t 21 11 21 append  m     C convertPyTree2File t   out cgns    Example file   Examples Post selectCells py        selectCells  array     import Converter as C  import Generator as G  import Post as P    a   G cart   0 0 0    1 1 1    11 11 11     def F x  y  z    if  x   2 y   z  gt  20    return True  else  return False    b P selectCells a  F    x    y    z      c   P selectCells a  F    x    y    z    strict 1   d   P selectCells a    x  2  y   z  gt 20       e   P selectCells a     x   52   amp    y  gt 2       C convertArrays2File  b c d e    out plt      Example file   Examples Post selectCellsPT py    f   selectCells  pyTree     import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    def F x  y  z    if  x   2xy   z  gt  20    return True  else  return False    G cart   0 0 0    11 1    11  11  11      P selectCells a  F    CoordinateX    CoordinateY    CoordinateZ     C newPyTree   Base     t 2  1   2   append  a    convertPyTree2File t   out cgns         C   Example file   Examples Post selectCells2 py        selectCells2  array     import Converter as C  import Generator as G  import Post as P    a   G cart  0 0 0    1 1 1    11 11 11     tag   C array  tag   10  10  10   tag   C initVars tag   tag   1    b   P selectCells2 a  tag    C convertArrays2File  b    out plt      Example file   Examples Post selectCells2PT pw    f   selectCell
35. rs only  e g   centers Pressure    and if it is not prefixed  then the variable is computed at   nodes     See  Examples Post computeVariables py   See  Examples Post compute VariablesPT py   P computeExtraVariable  compute more advanced variables from conservative variables   var    Name    can be     Vorticity     VorticityMagnitude      QCriterion      ShearStress   requires  gamma  rep    Ts  mus  Cs    SkinFriction      SkinFrictionTangential       b   P computeExtraVariable a   varName    or  B   P computeExtraVariable A     varName         See  Examples Post computeExtraVariable py   See  Examples Post computeExtraVariablePT py   P computeGrad  compute the gradient vector  gradx grady gradz  of a varname field defined   in a  The returned field is located at cell centers     See  Examples Post computeGrad py   See  Examples Post computeGradPT py   P computeNormGrad  compute the norm of gradient  gradx grady gradz  of a field of name   varname defined in a  The returned field    grad    varname and is located at cell centers     See  Examples Post computeNormGrad py   See  Examples Post computeNormGradPT py   P computeCurl  compute curl of a 3D vector defined by its variable names     vectx       vecty       vectz        in a  The returned field is defined at cell centers for structured grids and elements centers for un            ELSA MU 09024 V2 0 O N E R AN    THE FRENCH AEROSPACE LAB    structured grids    b   P computeCurl a      vectx     vecty     vectz       or 
36. s D     cartTetra   0 0 0    1 1 1    10 10 1    initVars a   centers indic   1      N  ada      C newPyTree     Base    2    t 2  1   2   append  a     a  a   a   P refine a   indic     t   C convertPyTree2File t   out cgns      Example file   Examples Post computelndicatorValue py    17     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB    f   compIndicatorValue  array     import Generator as G   import Converter as C   import Geom as D   import Post as P   import KCore test as test    S     D circle  0 0 0  1      snear   0 1   o   G octree  s    snear   dfar 10   balancing 0   res   G octree2Struct o  vmin 11 merged 0    vol   G getVolumeMap  res   res   C node2Center  res     val   P computelndicatorValue  o res vol   o   C addVars  o val    C convertArrays2File  o    out plt      Example file   Examples Post computeIndicatorValuePT  py          compIndicatorValue pyTree     import Generator PyTree as G  import Converter PyTree as C  import Geom PyTree as D   import Post PyTree as P    S   D circle  0 0 0  1     snear   0 1   o   G octree  s    snear   dfar 10   balancing 1   res   G octree2Struct o  vmin 11 merged 1    res   G getVolumeMap  res    o   P computeIndicatorValue  o res  centers vol    t   C newPyTree   Base     t 2   1   2     0   C convertPyTree2File t  out cgns      Example file   Examples Post computeIndicatorField py    f   compIndicatorField  array     import Generator as G   import Converter as C   import Geom as D   import Post as P   import
37. s2  pyTree      import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P     cart  0 0 0    1 1 1    11 11 11     initVars a   tag   1      selectCells2 a   tag    C newPyTree   Base     t 21 11 21 append  b   convertPyTree2File t   out cgns      N  OO    a   a  b   t  C     13     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB    Example file   Examples Post interiorFaces py          interiorFaces  array     import Converter as C  import Post as P   import Generator as G      Get interior faces in broad sense     faces with 2 neighbours   a   G cartTetra  0 0 0    1 1  1    20 2 1   b   P interiorFaces  a   C convertArrays2File  a b    outl plt       Get interior faces in strict sense     faces having only interior nodes   a  G cartTetra  0 0 0    1 1  1    20 3 1   b   P interiorFaces a  1   C convertArrays2File  a b    out2 plt      Example file   Examples Post interiorFacesPT py    f   interiorFaces  pyTree     import Converter PyTree as C  import Post PyTree as P   import Generator PyTree as G    G cartTetra  0 0 0    1 1  1    20 20 1   P interiorFaces  a    C newPyTree   Base  1    t 2  1  2  append b    convertPyTree2File t   out cgns      b  t  C  Example file   Examples Post exteriorFaces py          exteriorFaces  array     import Converter as C  import Post as P   import Generator as G    a   G cartTetra  0 0 0    1 1 1    20 20 20   b   P exteriorFaces  a     C convertArrays2File  b    out plt    Example file   Examples Post ex
38. t      Example file   Examples Post importVariablesPT py    import Converter PyTree as C  import Generator PyTree as G  import Post PyTree as P    tl   C newPyTree   Base     t2   C newPyTree      Base        zl   G cart  0  0  0    0 1 0 1  6 1    10  10  10   t1 2  1  2  append z1   t2 2   1   2   append  z1    tl   C initVars tl  centers cellN  1      t2   C initVars t2    centers cellN    0    tl   C initVars t1  centers Density  1    tl   C initVars tl  Pressure  10      cet    2   P importVariables tl  t2   C convertPyTree2File t2   out cgns      Example file   Examples Post compute Variables py     ELSA MU 09024 V2 0 O N E R AN    THE FRENCH AEROSPACE LAB          computeVariables  array     import Converter as C   import Post as P   import Generator as G    ni   30  nj   40    m   G cart  0 0 0    10   ni 1  10   nj 1  1    ni nj 2    c   C array  ro rou  rov row roE   ni  nj  2    c   C initVars c   ro   1     c   C initVars c   rou   1     c   C initVars c   rov   0     c   C initVars c   row   0     c   C initVars c   roE   1     m   C addVars  m  c                                       Pressure and Mach number extraction     default values of rgp and gamma are used     A N N A N ee Oe ae  p   P computeVariables m    Mach    Pressure       m   C addVars  m  p    C convertArrays2File  m    out plt      Example file   Examples Post compute VariablesPT py    f   computeVariables  pyTree     import Converter PyTree as C  import Post PyTree as P   import Generator PyTre
39. t selectCellsPT py    P selectCells2  select cells according to a field defined by a variable    tag      1 if selected   0  if not selected   If og is located at centers  only cells of tag 1 are selected  If    tag    is located at  nodes and    strict    0  the cell is selected if at least one of the cell vertices is tag 1  If tag    is located  at nodes and    strict    1  the cell is selected if all the cell vertices is tag 1  In the array version     the tag is an array  In the pyTree version  the tag must be defined in a    FlowSolution_t    type node    located at cell centers or nodes   b   P selectCells2 a  tag  strict 0   or  B   P selectCells2 A  TAG  strict 0         See  Examples Post selectCells2 py   See  Examples Post selectCells2PT py   P interiorFaces  select the interior faces of a mesh  Interior faces are faces with two neigh   bours  If  strict  is set to 1  select the interior faces that have only interior nodes    See  Examples Post interiorFaces py   See  Examples Post interiorFacesPT py   P exteriorFaces  Select the exterior faces of a mesh  and return them in a single unstructured  zone   b   PexteriorFaces a    See  Examples Post exteriorFaces py   See  Examples Post exteriorFacesPT py   P exteriorFacesStructured  Select the exterior faces of a structured mesh as a list of structured  meshes      ELSA MU 09024 V2 0 O N E R AN    THE FRENCH AEROSPACE LAB    b   P exteriorFacesStructured a     See  Examples Post exteriorFacesStructured py   See  Examp
40. teriorFacesPT py    f   exteriorFaces  pyTree    import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G    a G cartTetra  0 0 0    1 1 1    4 4 6    b   P exteriorFaces  a   t C newPyTree     Base    2    t 2  1  2  append b   C convertPyTree2File t   out cgns      Example file   Examples Post exteriorFacesStructured py        exteriorFacesStructured  array     import Converter as C   import Post as P   import Generator as G    a   G cart  0 0 0    1 1 1    4 4 6    A   P exteriorFacesStructured  a   C convertArrays2File A   out plt      Example file   Examples Post exteriorFacesStructuredPT py    14     ELSA MU 09024 V2 0    ONERA    THE FRENCH AEROSPACE LAB          exteriorFacesStructured  pyTree    import Converter PyTree as C   import Post PyTree as P   import Generator PyTree as G    a   G cart  0 0 0    1 1 1    4 4 6     zones   P exteriorFacesStructured a    t   C newPyTree   Base  2    t 2  1  2     zones  C convertPyTree2File t   out cgns      Example file   Examples Post exteriorElts py        exteriorElts  array     import Converter as C  import Post as P   import Generator as G    a   G cartTetra  0 0 0    1 1 1    10 10 10   b   P exteriorElts  a   C convertArrays2File  b    out plt      Example file   Examples Post exteriorEltsPT py          exteriorElts  pyTree     import Converter PyTree as C  import Post PyTree as P  import Generator PyTree as G    a G cartTetra  0 0 0    1 1 1    10 10 10   b   P exteriorElts  a    t   C newPyT
41. tor as G   import Post as P      Maillage et champs non structure  en noeuds   m     G cartTetra  0  0  0     0 1 0 1 0 2    10 10 1    c   C array  ro   100  162   TRI     c   C initVars c   ro   1     res   P integMomentNorm  m    cl    1    5  5   0      print res    f Maillage en noeuds  ni   30   nj   40  m  G cart  0 0 0    10   ni 1  10  1 mj 1  1    n1 n3 1     f Champ a integrer en centres    c   C array  v   ni l  nj 1  1   c   C initVars c   v   1        Integration de chaque champ  res   P integMomentNorm  m    c        5  5   0       print res    f Champ a integrer en noeuds    cn   C array  v   ni  nj  1   cn   C initVars cn   v   1    resn   P integMomentNorm  m    cn        5  5   0       print resn  Example file   Examples Post integMomentNormPT py    f   integMomentNorm  pyTree    import Converter PyTree as C    28   ELSA MU 09024 V2 0 O N E R A    THE FRENCH AEROSPACE LAB    import Generator PyTree as G  import Post PyTree as P    m   G cartTetra  0  0  0     D 1 0 1 0 2    10 10 1    m   C initVars m   Density  l    res   P integMomentNorm m  var  Density  center  5  5  0     print res     ELSA MU 09024 V2 0    S ONERA    THE FRENCH AEROSPACE LAB    
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
hussman P/N 0387183_D User's Manual  ロビーインターホン図面1 (パナソニック電工)  RADIO REMOTE CONTROL M550 User`s Manual  取扱説明書PDF(EXL-SW1S) - Exsight エクサイト株式会社  Adulte - L`été où tout a changé  Sanyo True widescreen LCD projector PLV-WF10  Operating Instructions Washing Machine  NACIONAL CONSTITUINTE ASSEMBLtIA  und Bedienungsanleitung Assembly instructions and  NORITZ 標準水栓取扱書 [PDF:315 KB ]    Copyright © All rights reserved. 
   Failed to retrieve file