CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Output Format of MetaMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2007, 05:28
Default Output Format of MetaMesh
  #1
t42
New Member
 
Denk Marcus
Join Date: Mar 2009
Posts: 13
Rep Power: 17
t42 is on a distinguished road
Hi Forum,

as i wrote in a message few days ago iám searching
for a easy to use pre-processor/meshing tool which
also is not to expansive.

One of the candidates is MetaMesh. But i dont know if it creates understandable formats for OF.

I´ll cite a few sentences of the manual concerning output formats. Maybe somebody can tell
me if it will work:

Formats of the MetaMesh output file

In the structured, conformal mesh of MetaMesh, nodes are referenced withthe 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 elec-
trostatic solution all nodes and elements that constitute an electrode would share the same region number. Physical properties are associated with regions only in subsequent solution programs. Therefore, the operation of
MetaMesh is independent of the nature of the physical solution – the program can be applied to any type of finite-element calculation (electrostatics,magnetostatics, electromagnetics, mechanics, thermal transport,...).
The format of the MetaMesh binary 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 binary sequential file contains the mesh size parameters IMax, JMax and KMax (4-byte integers) followed by (IMax+1)(JMax+1)(KMax+1)data sequences containing the following quantities:
• The spatial coordinates of the node (x, y, z) (4 byte real)
• The region number of the node (RegNo) (1 byte integer)
• The region number of the associated upper element (RegUp) (1 byte integer)
The MetaMesh binary output file has a name of the form FPrefix.MDF
(MetaMesh Data File), where FPrefix is the prefix of the script file (1-20 176 characters). The numerical formats are consistent with FORTRAN 95 for I386 computers.
Optionally, MetaMesh can generate output files in text format for easy transfer of information to your own programs. In this case, the file has
a name of the form FPrefix.MTF (MetaMesh Text File). The following excerpt illustrates the text file format:

MetaMesh Output File - text format (Field Precision)
IMax: 20
JMax: 20
KMax: 40
I J K x y z RegNo RegUp
================================================== =============
0 0 0 -5.0000E+00 -5.0000E+00 -1.0000E+01 1 1
1 0 0 -4.5000E+00 -5.0000E+00 -1.0000E+01 1 1
2 0 0 -4.0000E+00 -5.0000E+00 -1.0000E+01 1 1
3 0 0 -3.5000E+00 -5.0000E+00 -1.0000E+01 1 1
4 0 0 -3.0000E+00 -5.0000E+00 -1.0000E+01 1 1
5 0 0 -2.5000E+00 -5.0000E+00 -1.0000E+01 1 1
6 0 0 -2.0000E+00 -5.0000E+00 -1.0000E+01 1 1
7 0 0 -1.5000E+00 -5.0000E+00 -1.0000E+01 1 1
8 0 0 -1.0000E+00 -5.0000E+00 -1.0000E+01 1 1
9 0 0 -5.0000E-01 -5.0000E+00 -1.0000E+01 1 1
10 0 0 9.0298E-08 -5.0000E+00 -1.0000E+01 1 1
11 0 0 5.0000E-01 -5.0000E+00 -1.0000E+01 1 1
12 0 0 1.0000E+00 -5.0000E+00 -1.0000E+01 1 1
13 0 0 1.5000E+00 -5.0000E+00 -1.0000E+01 1 1

output formats

I hope somebody can tell me if it will fit ?

Thanks a lot
t42 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Iterations Output format woodwick OpenFOAM 4 February 12, 2014 10:22
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
RNG diverged during the analysis the flow over a multi element airfoil, why? s.m OpenFOAM Running, Solving & CFD 0 August 5, 2013 09:39
output or write of tensorField in ascii format in openFoam safre OpenFOAM Installation 0 November 7, 2011 09:08
Gambit output files format B. R. Guirguis FLUENT 1 April 6, 2006 18:30


All times are GMT -4. The time now is 14:09.