Hi Thomas,

On Fri, Aug 18, 2000 at 08:31:11AM -0400, Thomas A. Gardiner wrote:
> I'm trying to figure out how to describe a grid with varying cell sizes
> often encountered in Adaptive Mesh Refinement calculations.  I don't know
> of any file format which handles this very gracefully and was wondering if
> someone out there might have any suggestions for me.

I had the same problem a few weeks ago (I'm using hp-FEM). What
I did is the following:
- create a list of vertices with the coordinates, a global
  number (identifying the vertex in your internal data
  structure) and an index (currently empty). Ideally, this is
  some sort of array with the global number as the index of the
  array.
- write the coordinates into the dx file and update the index of
  the vertex (indicating the position in the dx file)
- loop over all elements and write the connection data to the dx
  file. Here you need the mapping from the global number of the
  vertex to the index in the dx file, since you need to write
  the index.
- in the 'field', there is no 'data' component

Regards,
-- 
Philipp      | work: [EMAIL PROTECTED]  +41 1 632 60 38
Frauenfelder | home: [EMAIL PROTECTED]    +41 1 862 73 14
[PGP]        | http://www.math.ethz.ch/~pfrauenf/
Proudly running Debian GNU/Linux. See http://www.debian.org/

Reply via email to