stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit 64b1f6e233516038d2c09c7547f821e42f28af50
parent d90e0b377e6034315effccdcbf8ced9e8d5a81ea
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 14 Apr 2020 18:05:07 +0200

Improve naming in VTK output

Diffstat:
Msrc/stardis-output.c | 16++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/stardis-output.c b/src/stardis-output.c @@ -335,8 +335,10 @@ dump_image } /* Compute the per pixel temperature */ - fprintf(stream, - "# vtk DataFile Version 2.0\nvtk output\nASCII\nDATASET STRUCTURED_POINTS\n"); + fprintf(stream, "# vtk DataFile Version 2.0\n"); + fprintf(stream, "Infrared Image\n"); + fprintf(stream, "ASCII\n"); + fprintf(stream, "DATASET STRUCTURED_POINTS\n"); fprintf(stream, "DIMENSIONS %zu %zu 1\n", definition[0], definition[1]); fprintf(stream, "ORIGIN 0 0 0\n"); fprintf(stream, "SPACING 1 1 1\n"); @@ -385,7 +387,7 @@ dump_image fprintf(stream, "%f\n", time.SE); } } - fprintf(stream, "SCALARS temperature_failures_count unsigned_long_long 1\n"); + fprintf(stream, "SCALARS failures_count unsigned_long_long 1\n"); fprintf(stream, "LOOKUP_TABLE default\n"); FOR_EACH(iy, 0, definition[1]) { FOR_EACH(ix, 0, definition[0]) { @@ -695,8 +697,10 @@ dump_map } /* Dump vertices up to last_v, even unused ones, to avoid reindexing */ - fprintf(stream, - "# vtk DataFile Version 2.0\nvtk output\nASCII\nDATASET POLYDATA\n"); + fprintf(stream, "# vtk DataFile Version 2.0\n"); + fprintf(stream, "Temperature Map\n"); + fprintf(stream, "ASCII\n"); + fprintf(stream, "DATASET POLYDATA\n"); fprintf(stream, "POINTS %u float\n\n", last_v + 1); for(i = 0; i <= last_v; ++i) { double coord[3]; @@ -729,7 +733,7 @@ dump_map SDIS(estimator_get_temperature(est[i], &T)); fprintf(stream, "%f\n", T.SE); } - fprintf(stream, "SCALARS temperature_failures_count unsigned_long_long 1\n"); + fprintf(stream, "SCALARS failures_count unsigned_long_long 1\n"); fprintf(stream, "LOOKUP_TABLE default\n"); for(i = 0; i < szp; ++i) { size_t nfails;