From 8227aee6a2cea0ef5b6f1d16fc3dafde253d3e88 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 7 Dec 2009 15:33:35 +0100 Subject: [PATCH] STARCDsurfaceFormat - read cellTable names from .inp file --- .../starcd/STARCDsurfaceFormat.C | 29 +++++++++++- .../starcd/STARCDsurfaceFormatCore.C | 45 +++++++++++++++++++ .../starcd/STARCDsurfaceFormatCore.H | 2 + 3 files changed, 75 insertions(+), 1 deletion(-) diff --git a/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C b/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C index 2f8f48ccd5..a2ba355502 100644 --- a/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C +++ b/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.C @@ -85,6 +85,18 @@ bool Foam::fileFormats::STARCDsurfaceFormat::read fileName baseName = filename.lessExt(); + // read cellTable names (if possible) + Map cellTableLookup; + + { + IFstream is(baseName + ".inp"); + if (is.good()) + { + cellTableLookup = readInpCellTable(is); + } + } + + // STAR-CD index of points List