|
MetaMesh is unique among conformal mesh generators - the organization of hexahedron elements follows a strict logical relationship. Nodes are referenced with the indices [I,J,K] where I (the index along the x axis extends from 0 to IMax, J (y axis) from 0 to JMax, and K (z axis) from 0 to KMax. The number of elements is approximately equal to the number of nodes. A single element (in the direction of positive x, y and z) is associated with each node for storage.
MetaMesh assigns integer Region Numbers to nodes and elements to associate them with structures in the solution space. For example, in an electrostatic solution all nodes and elements that constitute an electrode would share the same Region Number. Physical properties are associated with Region Numbers only in subsequent solution programs. Therefore, the operation of MetaMesh is independent of the nature of the physical solution, and the program can be applied to any type of finite-element calculation (electrostatics, magnetostatics, electromagnetics, mechanics, thermal transport,...).
The format of the MetaMesh output file is simple and compact, making it easy to transfer information to other programs. The following code extract comprises the entire output algorithm:
WRITE (OutMDF) IMax,JMax,KMax
DO K=0,KMax
DO J=0,JMax
DO I=0,IMax
WRITE (OutMDF) &
M(I,J,K).x,M(I,J,K),y,M(I,J,K).z, &
RegNo(I,J,K),RegUp(I,J,K)
END DO
END DO
END DO
The recorded quantities in each data line are:
- The spatial coordinates of the node (x,y,z)
- The Region Number of the node (RegNo)
- The Region Number of the associated upper element (RegUp)
|