From d1d6c3bd12c732d3f2e1e19e9950bb7a518ba951 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Tue, 19 Feb 2013 10:39:23 +0000 Subject: [PATCH] ENH: foamToEnsight: work with more >1000 times --- .../dataConversion/foamToEnsight/ensightCloudField.C | 4 ++-- .../dataConversion/foamToEnsight/ensightField.C | 8 ++++---- .../dataConversion/foamToEnsight/foamToEnsight.C | 6 +++--- .../postProcessing/dataConversion/foamToEnsight/itoa.C | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightCloudField.C b/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightCloudField.C index 091461d13c3..18f3deabf0d 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightCloudField.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightCloudField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -68,7 +68,7 @@ void ensightCloudField ensightCaseFile.setf(ios_base::left); ensightCaseFile << ("c" + fieldObject.name()).c_str() - << (' ' + prepend + "***." + cloudName + << (' ' + prepend + "****." + cloudName + "." + fieldObject.name()).c_str() << nl; } diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightField.C b/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightField.C index 3342435ad6e..0b07b7f2ebc 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightField.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsight/ensightField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -201,7 +201,7 @@ void writePatchField << pTraits<Type>::typeName << " per element: 1 " << setw(15) << pfName - << (' ' + prepend + "***." + pfName).c_str() + << (' ' + prepend + "****." + pfName).c_str() << nl; } @@ -344,7 +344,7 @@ void ensightField << pTraits<Type>::typeName << " per element: 1 " << setw(15) << vf.name() - << (' ' + prepend + "***." + vf.name()).c_str() + << (' ' + prepend + "****." + vf.name()).c_str() << nl; } @@ -558,7 +558,7 @@ void ensightPointField << pTraits<Type>::typeName << " per node: 1 " << setw(15) << pf.name() - << (' ' + prepend + "***." + pf.name()).c_str() + << (' ' + prepend + "****." + pf.name()).c_str() << nl; } diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C b/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C index 05db6c0d05b..a5bcbd9d85f 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -243,7 +243,7 @@ int main(int argc, char *argv[]) // test pre check variable if there is a moving mesh if (meshMoving) { - geomFileName = prepend + "***"; + geomFileName = prepend + "****"; } ensightCaseFile @@ -292,7 +292,7 @@ int main(int argc, char *argv[]) << ( "measured: 1 " + prepend - + "***." + + "****." + cloudIter.key() ).c_str() << nl; diff --git a/applications/utilities/postProcessing/dataConversion/foamToEnsight/itoa.C b/applications/utilities/postProcessing/dataConversion/foamToEnsight/itoa.C index 2f8ce716565..0975da93d30 100644 --- a/applications/utilities/postProcessing/dataConversion/foamToEnsight/itoa.C +++ b/applications/utilities/postProcessing/dataConversion/foamToEnsight/itoa.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -35,7 +35,7 @@ namespace Foam word itoa(const label n) { const label offset = '0'; - const label length = 3; + const label length = 4; char val[length + 1]; -- GitLab