Download Post 2.0 - User Guide - - elsA

Transcript
structured grids:
b = P.computeCurl(a, [’vectx’,’vecty’,’vectz’]) .or. 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 = P.computeNormCurl(a, [’vectx’,’vecty’,’vectz’]) .or.
B = P.computeNormCurl(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 = P.computeDiff(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 = P.selectCells(a, F, [’var1’, ’var2’], strict=0) .or. B = P.selectCells(A, F, [’var1’, ’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/Post/selectCellsPT.py)
P.selectCells2: select cells according to a field defined by a variable ’tag’ (=1 if selected, =0
if not selected). If ’tag’ 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 neighbours. If ’strict’ is set to 1, select the interior faces that have only interior nodes:
b = P.interiorFaces(a, strict=0)
(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 = P.exteriorFaces(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:
3
/ELSA/MU-09024/V2.0