mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: default to collateTimes on for ensight output
- the uncollated version becomes quite difficult to process. Caveat: cannot use "collateTimes true" for non-static geometries
This commit is contained in:
@ -70,7 +70,7 @@ Description
|
|||||||
{
|
{
|
||||||
ensight
|
ensight
|
||||||
{
|
{
|
||||||
collateTimes 1;
|
collateTimes true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,7 @@ surfaceNoiseCoeffs
|
|||||||
{
|
{
|
||||||
ensight
|
ensight
|
||||||
{
|
{
|
||||||
collateTimes 1;
|
collateTimes true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -71,7 +71,7 @@ formatOptions
|
|||||||
{
|
{
|
||||||
// ascii/binary format
|
// ascii/binary format
|
||||||
format ascii;
|
format ascii;
|
||||||
//collateTimes true; // write single file containing multiple timesteps
|
collateTimes true; // write single file containing multiple timesteps
|
||||||
// (only for static surfaces)
|
// (only for static surfaces)
|
||||||
}
|
}
|
||||||
vtk
|
vtk
|
||||||
|
|||||||
@ -69,7 +69,7 @@ Description
|
|||||||
{
|
{
|
||||||
ensight
|
ensight
|
||||||
{
|
{
|
||||||
collateTimes 1;
|
collateTimes true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -42,14 +42,15 @@ Foam::ensightSurfaceWriter::ensightSurfaceWriter()
|
|||||||
:
|
:
|
||||||
surfaceWriter(),
|
surfaceWriter(),
|
||||||
writeFormat_(IOstream::ASCII),
|
writeFormat_(IOstream::ASCII),
|
||||||
collateTimes_(false)
|
collateTimes_(true)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
Foam::ensightSurfaceWriter::ensightSurfaceWriter(const dictionary& options)
|
Foam::ensightSurfaceWriter::ensightSurfaceWriter(const dictionary& options)
|
||||||
:
|
:
|
||||||
surfaceWriter(),
|
surfaceWriter(),
|
||||||
writeFormat_(IOstream::ASCII)
|
writeFormat_(IOstream::ASCII),
|
||||||
|
collateTimes_(true)
|
||||||
{
|
{
|
||||||
// choose ascii or binary format
|
// choose ascii or binary format
|
||||||
if (options.found("format"))
|
if (options.found("format"))
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -52,9 +52,10 @@ class ensightSurfaceWriter
|
|||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
//- Write option (default is IOstream::ASCII
|
//- Write option (default: IOstream::ASCII)
|
||||||
IOstream::streamFormat writeFormat_;
|
IOstream::streamFormat writeFormat_;
|
||||||
|
|
||||||
|
//- Collate times (default: ASCII)
|
||||||
bool collateTimes_;
|
bool collateTimes_;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -45,5 +45,39 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable true;
|
runTimeModifiable true;
|
||||||
|
|
||||||
|
functions
|
||||||
|
{
|
||||||
|
cuttingPlane
|
||||||
|
{
|
||||||
|
type surfaces;
|
||||||
|
functionObjectLibs ("libsampling.so");
|
||||||
|
outputControl timeStep; //outputTime;
|
||||||
|
outputInterval 4;
|
||||||
|
|
||||||
|
surfaceFormat ensight;
|
||||||
|
formatOptions
|
||||||
|
{
|
||||||
|
// ensight { format binary; collateTimes true;}
|
||||||
|
}
|
||||||
|
fields (p U);
|
||||||
|
|
||||||
|
interpolationScheme cellPoint;
|
||||||
|
|
||||||
|
surfaces
|
||||||
|
(
|
||||||
|
zNormal_0.0
|
||||||
|
{
|
||||||
|
type cuttingPlane;
|
||||||
|
planeType pointAndNormal;
|
||||||
|
pointAndNormalDict
|
||||||
|
{
|
||||||
|
basePoint (0 0 0.005);
|
||||||
|
normalVector (0 0 1);
|
||||||
|
}
|
||||||
|
interpolate true;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user