mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: foamToEnsight : remove some extraneous scoping
This commit is contained in:
@ -36,12 +36,12 @@ using namespace Foam;
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
void ensightCloudField
|
void ensightCloudField
|
||||||
(
|
(
|
||||||
const Foam::IOobject& fieldObject,
|
const IOobject& fieldObject,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& prepend,
|
const word& prepend,
|
||||||
const Foam::label timeIndex,
|
const label timeIndex,
|
||||||
const Foam::word& cloudName,
|
const word& cloudName,
|
||||||
Foam::Ostream& ensightCaseFile,
|
Ostream& ensightCaseFile,
|
||||||
const bool dataExists
|
const bool dataExists
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -42,13 +42,13 @@ SourceFiles
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
void ensightCloudField
|
void ensightCloudField
|
||||||
(
|
(
|
||||||
const Foam::IOobject& fieldObject,
|
const IOobject& fieldObject,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& prepend,
|
const word& prepend,
|
||||||
const Foam::label timeIndex,
|
const label timeIndex,
|
||||||
const Foam::word& timeFile,
|
const word& timeFile,
|
||||||
const Foam::word& cloudName,
|
const word& cloudName,
|
||||||
Foam::Ostream& ensightCaseFile,
|
Ostream& ensightCaseFile,
|
||||||
const bool dataExists
|
const bool dataExists
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -105,11 +105,11 @@ void writeField
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
bool writePatchField
|
bool writePatchField
|
||||||
(
|
(
|
||||||
const Foam::Field<Type>& pf,
|
const Field<Type>& pf,
|
||||||
const Foam::label patchi,
|
const label patchi,
|
||||||
const Foam::label ensightPatchI,
|
const label ensightPatchI,
|
||||||
const Foam::faceSets& boundaryFaceSet,
|
const faceSets& boundaryFaceSet,
|
||||||
const Foam::ensightMesh::nFacePrimitives& nfp,
|
const ensightMesh::nFacePrimitives& nfp,
|
||||||
ensightStream& ensightFile
|
ensightStream& ensightFile
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -153,15 +153,15 @@ bool writePatchField
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
void writePatchField
|
void writePatchField
|
||||||
(
|
(
|
||||||
const Foam::word& fieldName,
|
const word& fieldName,
|
||||||
const Foam::Field<Type>& pf,
|
const Field<Type>& pf,
|
||||||
const Foam::word& patchName,
|
const word& patchName,
|
||||||
const Foam::ensightMesh& eMesh,
|
const ensightMesh& eMesh,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& prepend,
|
const word& prepend,
|
||||||
const Foam::label timeIndex,
|
const label timeIndex,
|
||||||
const bool binary,
|
const bool binary,
|
||||||
Foam::Ostream& ensightCaseFile
|
Ostream& ensightCaseFile
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const Time& runTime = eMesh.mesh().time();
|
const Time& runTime = eMesh.mesh().time();
|
||||||
@ -271,12 +271,12 @@ template<class Type>
|
|||||||
void ensightField
|
void ensightField
|
||||||
(
|
(
|
||||||
const GeometricField<Type, fvPatchField, volMesh>& vf,
|
const GeometricField<Type, fvPatchField, volMesh>& vf,
|
||||||
const Foam::ensightMesh& eMesh,
|
const ensightMesh& eMesh,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& prepend,
|
const word& prepend,
|
||||||
const Foam::label timeIndex,
|
const label timeIndex,
|
||||||
const bool binary,
|
const bool binary,
|
||||||
Foam::Ostream& ensightCaseFile
|
Ostream& ensightCaseFile
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Info<< "Converting field " << vf.name() << endl;
|
Info<< "Converting field " << vf.name() << endl;
|
||||||
@ -500,12 +500,12 @@ template<class Type>
|
|||||||
void ensightPointField
|
void ensightPointField
|
||||||
(
|
(
|
||||||
const GeometricField<Type, pointPatchField, pointMesh>& pf,
|
const GeometricField<Type, pointPatchField, pointMesh>& pf,
|
||||||
const Foam::ensightMesh& eMesh,
|
const ensightMesh& eMesh,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& prepend,
|
const word& prepend,
|
||||||
const Foam::label timeIndex,
|
const label timeIndex,
|
||||||
const bool binary,
|
const bool binary,
|
||||||
Foam::Ostream& ensightCaseFile
|
Ostream& ensightCaseFile
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Info<< "Converting field " << pf.name() << endl;
|
Info<< "Converting field " << pf.name() << endl;
|
||||||
@ -679,14 +679,14 @@ void ensightPointField
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
void ensightField
|
void ensightField
|
||||||
(
|
(
|
||||||
const Foam::IOobject& fieldObject,
|
const IOobject& fieldObject,
|
||||||
const Foam::ensightMesh& eMesh,
|
const ensightMesh& eMesh,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& prepend,
|
const word& prepend,
|
||||||
const Foam::label timeIndex,
|
const label timeIndex,
|
||||||
const bool binary,
|
const bool binary,
|
||||||
const bool nodeValues,
|
const bool nodeValues,
|
||||||
Foam::Ostream& ensightCaseFile
|
Ostream& ensightCaseFile
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Read field
|
// Read field
|
||||||
|
|||||||
@ -37,10 +37,10 @@ using namespace Foam;
|
|||||||
|
|
||||||
void ensightParticlePositions
|
void ensightParticlePositions
|
||||||
(
|
(
|
||||||
const Foam::fvMesh& mesh,
|
const fvMesh& mesh,
|
||||||
const Foam::fileName& postProcPath,
|
const fileName& postProcPath,
|
||||||
const Foam::word& timeFile,
|
const word& timeFile,
|
||||||
const Foam::word& cloudName,
|
const word& cloudName,
|
||||||
const bool dataExists
|
const bool dataExists
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user