OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

ensightOutputFunctions.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Description
00026     Miscellaneous collection of functions and template related to Ensight data
00027 
00028 SourceFiles
00029     ensightOutputFunctions.C
00030 
00031 \*---------------------------------------------------------------------------*/
00032 
00033 #ifndef ensightOutputFunctions_H
00034 #define ensightOutputFunctions_H
00035 
00036 #include "ensightFile.H"
00037 #include "Cloud.H"
00038 #include "polyMesh.H"
00039 #include "IOobject.H"
00040 
00041 namespace Foam
00042 {
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 void ensightCaseEntry
00047 (
00048     OFstream& caseFile,
00049     const string& ensightType,
00050     const word& fieldName,
00051     const fileName& dataMask,
00052     const fileName& local=fileName::null,
00053     const label cloudNo=-1,
00054     const label timeSet=1
00055 );
00056 
00057 
00058 void ensightParticlePositions
00059 (
00060     const polyMesh& mesh,
00061     const fileName& dataDir,
00062     const fileName& subDir,
00063     const word& cloudName,
00064     IOstream::streamFormat format
00065 );
00066 
00067 
00068 //- write lagrangian parcels
00069 template<class Type>
00070 void ensightLagrangianField
00071 (
00072     const IOobject& fieldObject,
00073     const fileName& dataDir,
00074     const fileName& subDir,
00075     const word& cloudName,
00076     IOstream::streamFormat format
00077 );
00078 
00079 //- write generalized field components
00080 template<class Type>
00081 void ensightVolField
00082 (
00083     const ensightParts& partsList,
00084     const IOobject& fieldObject,
00085     const fvMesh& mesh,
00086     const fileName& dataDir,
00087     const fileName& subDir,
00088     IOstream::streamFormat format
00089 );
00090 
00091 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00092 
00093 } // namespace Foam
00094 
00095 #ifdef NoRepository
00096 #   include "ensightOutputFunctions.C"
00097 #endif
00098 
00099 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00100 
00101 #endif
00102 
00103 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd