This page contains the pyMesh Package documentation.
Cell within a mesh
Cell within a mesh
Cell objects are bounded by Face objects.
Cell is initialized by Mesh
Parameters : |
|
---|
Return the coordinates of the Cell center.
Return the faces bounding the Cell.
Return the id of this Cell.
Return the volume of the Cell.
Face within a Mesh
Face within a Mesh
Face objects are bounded by Vertex objects. Face objects separate Cell objects.
Face is initialized by Mesh
Parameters : |
|
---|
Add cell to the list of Cell objects which lie on either side of this Face.
Return the area of the Face.
Return the distance between adjacent Cell centers.
Return the id of the specified Cell on one side of this Face.
Return the Cell objects which lie on either side of this Face.
Return the coordinates of the Face center.
Return the unit normal vector
1D (edge) Face in a 2D Mesh
Bases: fipy.meshes.pyMesh.face.Face
1D (edge) Face in a 2D Mesh
Face2D is bounded by two Vertices.
Face is initialized by Mesh
Parameters : |
|
---|
2D rectangular Mesh
Bases: fipy.meshes.pyMesh.mesh.Mesh
2D rectangular Mesh
Numbering system
nx=5
ny=3
Cells:
************************************* * * * * * * * 10 * 11 * 12 * 13 * 14 * ************************************* * * * * * * * 5 * 6 * 7 * 8 * 9 * ************************************* * * * * * * * 0 * 1 * 2 * 3 * 4 * *************************************Faces (before reordering):
***15******16*****17******18****19*** * * * * * * 32 33 34 35 36 37 ***10******11*****12******13*****14** * * * * * * 26 27 28 29 30 31 ***5*******6******7*******8******9*** * * * * * * 20 21 22 23 24 25 ***0*******1******2*******3******4***Faces (after reordering):
***27******28*****29******30****31*** * * * * * * 34 18 19 20 21 37 ***5*******6******7*******8******9*** * * * * * * 33 14 15 16 17 36 ***0*******1******2*******3******4*** * * * * * * 32 10 11 12 13 35 ***22******23*****24******25*****26**Vertices:
18*****19*****20******21*****22****23 * * * * * * * * * * * * 12*****13*****14******15*****16****17 * * * * * * * * * * * * 6******7******8*******9******10****11 * * * * * * * * * * * * 0******1******2*******3******4******5
Grid2D is initialized by caller
Parameters : |
|
---|
Return list of faces on bottom boundary of Grid2D with the y-axis running from bottom to top.
Return list of faces on left boundary of Grid2D with the x-axis running from left to right.
Return list of faces on right boundary of Grid2D with the x-axis running from left to right.
Return list of faces on top boundary of Grid2D with the y-axis running from bottom to top.
Return physical dimensions of Grid2D.
Return cell dimensions Grid2D.