|October 23, 2013, 05:32||
UDF: face number
Join Date: Sep 2013
Posts: 1Rep Power: 0
i want to find out how the face numbers are ordered for my mesh with udf. fistly,i must get the face ID/numberwith udf,
Has anyone gotten this work? and the udf?
|October 23, 2013, 11:14||
Join Date: May 2013
Posts: 10Rep Power: 5
( // UDF Manual // 7. Parallel Considerations // 7.5. Macros for Parallel UDFs //)
7.5.6.*Cell and Face Partition ID Macros
In general, cells and faces have a partition ID that is numbered from 0 to n-1, where n is the number of compute nodes. The partition IDs of cells and faces are stored in the variables C_PART and F_PART, respectively. C_PART(c,tc) stores the integer partition ID of a cell and F_PART(f,tf) stores the integer partition ID of a face.
Note that myid can be used in conjunction with the partition ID, since the partition ID of an exterior cell is the ID of the neighboring compute node.
188.8.131.52.*Face Partition IDs
For interior faces and boundary zone faces, the partition ID is the same as the compute node ID. The partition ID of a partition boundary face, however, can be either the same as the compute node, or it can be the ID of the adjacent node, depending on what values F_PART is filled with (Figure*7.14:*Partition Ids for Cells and Faces in a Compute Node). Recall that an exterior cell of a compute node has only partition boundary faces; the other faces of the cell belong to the adjacent compute node. Therefore, depending on the computation you want to do with your UDF, you may want to fill the partition boundary face with the same partition ID as the compute node (using Fill_Face_Part_With_Same) or with different IDs (using Fill_Face_Part_With_Different). Face partition IDs will need to be filled before you can access them with the F_PART macro. There is rarely a need for face partition IDs in parallel UDFs.
**Note that a face ID or cell ID by itself does not uniquely identify the face or cell. A thread pointer is always required along with the ID to identify the thread to which the face (or cell) belongs.
|fluent - udf|
|Thread||Thread Starter||Forum||Replies||Last Post|
|No layers in a small gap||bobburnquist||OpenFOAM Native Meshers: snappyHexMesh and Others||6||August 26, 2015 09:38|
|Courant number blowing up, non-orthogonal mesh?||odellar||OpenFOAM Running, Solving & CFD||5||October 22, 2013 19:50|
|AMI speed performance||danny123||OpenFOAM||19||October 24, 2012 07:44|
|mesh airfoil NACA0012||anand_30||OpenFOAM Meshing & Mesh Conversion||12||December 12, 2011 05:16|
|Converting meshes that includes interfaces||ham||OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ...||29||January 8, 2007 09:58|