GridWriter.h 3.19 KB
 Peter Gottschling committed Feb 15, 2008 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 ``````// ============================================================================ // == == // == AMDiS - Adaptive multidimensional simulations == // == == // ============================================================================ // == == // == crystal growth group == // == == // == Stiftung caesar == // == Ludwig-Erhard-Allee 2 == // == 53175 Bonn == // == germany == // == == // ============================================================================ // == == // == http://www.caesar.de/cg/AMDiS == // == == // ============================================================================ /** \file GridWriter.h */ #ifndef AMDIS_GRID_WRITER_H #define AMDIS_GRID_WRITER_H #include "Global.h" namespace AMDiS { template class WorldVector; template class DOFVector; // ============================================================================ // ===== class GridWriter ===================================================== // ============================================================================ /** \ingroup Output * \brief * Produces a grid-based output of a dof-vector */ template class GridWriter { public: /** \brief * Produces a grid-based output of a dof-vector * \param p array of world coordinates. * - p[0] defines origin of grid-system. * - p[1] defines first basis vector by p[1] - p[0]. * - p[2] defines second basis vector by p[2] - p[0] (dim >= 2). * - p[3] defines third basis vector by p[3] - p[0] (dim == 3). * \param numPoints number of grid points for the different dirctions * - numPoints[0] number of grid points in the first direction * - numPoints[1] number of grid points in the second direction * - numPoints[2] number of grid points in the third direction * \param dist distance between two points in the different directions * - dist[0] distance in the first direction * - dist[1] distance in the second direction * - dist[2] distance in the third direction * \param vec DOFVector which is interpolated to the grid. * \param filename file to which the grid will be written */ static void writeGrid(const WorldVector *p, int *numPoints, double *dist, DOFVector *vec, char* filename); private: }; } #include "GridWriter.hh" #endif``````