mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
cloud, surfaceRegistry: rename subInstance -> prefix
This commit is contained in:
@ -312,7 +312,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
fileNameList cloudDirs
|
fileNameList cloudDirs
|
||||||
(
|
(
|
||||||
readDir(runTime.timePath()/cloud::subInstance, fileName::DIRECTORY)
|
readDir(runTime.timePath()/cloud::prefix, fileName::DIRECTORY)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Particles
|
// Particles
|
||||||
@ -344,7 +344,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance/cloudDirs[i]
|
cloud::prefix/cloudDirs[i]
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
||||||
@ -418,7 +418,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance/cloudDirs[cloudI]
|
cloud::prefix/cloudDirs[cloudI]
|
||||||
);
|
);
|
||||||
|
|
||||||
lagrangianFieldDecomposer::readFields
|
lagrangianFieldDecomposer::readFields
|
||||||
|
|||||||
@ -88,7 +88,7 @@ tmp<IOField<Type> > lagrangianFieldDecomposer::decomposeField
|
|||||||
(
|
(
|
||||||
field.name(),
|
field.name(),
|
||||||
procMesh_.time().timeName(),
|
procMesh_.time().timeName(),
|
||||||
cloud::subInstance/cloudName,
|
cloud::prefix/cloudName,
|
||||||
procMesh_,
|
procMesh_,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -47,7 +47,7 @@ Foam::tmp<Foam::IOField<Type> > Foam::reconstructLagrangianField
|
|||||||
(
|
(
|
||||||
fieldName,
|
fieldName,
|
||||||
mesh.time().timeName(),
|
mesh.time().timeName(),
|
||||||
cloud::subInstance/cloudName,
|
cloud::prefix/cloudName,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
@ -64,7 +64,7 @@ Foam::tmp<Foam::IOField<Type> > Foam::reconstructLagrangianField
|
|||||||
(
|
(
|
||||||
fieldName,
|
fieldName,
|
||||||
meshes[i].time().timeName(),
|
meshes[i].time().timeName(),
|
||||||
cloud::subInstance/cloudName,
|
cloud::prefix/cloudName,
|
||||||
meshes[i],
|
meshes[i],
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -277,7 +277,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
readDir
|
readDir
|
||||||
(
|
(
|
||||||
databases[procI].timePath()/regionPrefix/cloud::subInstance,
|
databases[procI].timePath()/regionPrefix/cloud::prefix,
|
||||||
fileName::DIRECTORY
|
fileName::DIRECTORY
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -295,7 +295,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
procMeshes.meshes()[procI],
|
procMeshes.meshes()[procI],
|
||||||
databases[procI].timeName(),
|
databases[procI].timeName(),
|
||||||
cloud::subInstance/cloudDirs[i]
|
cloud::prefix/cloudDirs[i]
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
||||||
|
|||||||
@ -211,7 +211,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
fileNameList cloudDirs = readDir
|
fileNameList cloudDirs = readDir
|
||||||
(
|
(
|
||||||
runTime.timePath()/regionPrefix/cloud::subInstance,
|
runTime.timePath()/regionPrefix/cloud::prefix,
|
||||||
fileName::DIRECTORY
|
fileName::DIRECTORY
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance/cloudDirs[cloudI]
|
cloud::prefix/cloudDirs[cloudI]
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject* positionsPtr = cloudObjs.lookup("positions");
|
IOobject* positionsPtr = cloudObjs.lookup("positions");
|
||||||
@ -266,7 +266,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance/cloudIter.key()
|
cloud::prefix/cloudIter.key()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAllConstIter(IOobjectList, cloudObjs, fieldIter)
|
forAllConstIter(IOobjectList, cloudObjs, fieldIter)
|
||||||
@ -426,7 +426,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
fileNameList currentCloudDirs = readDir
|
fileNameList currentCloudDirs = readDir
|
||||||
(
|
(
|
||||||
runTime.timePath()/regionPrefix/cloud::subInstance,
|
runTime.timePath()/regionPrefix/cloud::prefix,
|
||||||
fileName::DIRECTORY
|
fileName::DIRECTORY
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -449,7 +449,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
fieldName,
|
fieldName,
|
||||||
mesh.time().timeName(),
|
mesh.time().timeName(),
|
||||||
cloud::subInstance/cloudName,
|
cloud::prefix/cloudName,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ
|
IOobject::MUST_READ
|
||||||
);
|
);
|
||||||
|
|||||||
@ -42,7 +42,7 @@ forAllConstIter(HashTable<HashTable<word> >, cloudFields, cloudIter)
|
|||||||
|
|
||||||
caseFile
|
caseFile
|
||||||
<< setw(16) << "measured: 2"
|
<< setw(16) << "measured: 2"
|
||||||
<< fileName(dataMask/cloud::subInstance/cloudName/"positions").c_str()
|
<< fileName(dataMask/cloud::prefix/cloudName/"positions").c_str()
|
||||||
<< nl;
|
<< nl;
|
||||||
}
|
}
|
||||||
caseFile
|
caseFile
|
||||||
@ -122,7 +122,7 @@ forAllConstIter(HashTable<HashTable<word> >, cloudFields, cloudIter)
|
|||||||
ensightType,
|
ensightType,
|
||||||
fieldName,
|
fieldName,
|
||||||
dataMask,
|
dataMask,
|
||||||
cloud::subInstance/cloudName,
|
cloud::prefix/cloudName,
|
||||||
cloudNo,
|
cloudNo,
|
||||||
2
|
2
|
||||||
);
|
);
|
||||||
|
|||||||
@ -100,7 +100,7 @@ void ensightParticlePositions
|
|||||||
{
|
{
|
||||||
Cloud<passiveParticle> parcels(mesh, cloudName, false);
|
Cloud<passiveParticle> parcels(mesh, cloudName, false);
|
||||||
|
|
||||||
fileName cloudDir = subDir/cloud::subInstance/cloudName;
|
fileName cloudDir = subDir/cloud::prefix/cloudName;
|
||||||
fileName postFileName = cloudDir/"positions";
|
fileName postFileName = cloudDir/"positions";
|
||||||
|
|
||||||
// the ITER/lagrangian subdirectory must exist
|
// the ITER/lagrangian subdirectory must exist
|
||||||
@ -164,7 +164,7 @@ void ensightLagrangianField
|
|||||||
{
|
{
|
||||||
Info<< " " << fieldObject.name() << flush;
|
Info<< " " << fieldObject.name() << flush;
|
||||||
|
|
||||||
fileName cloudDir = subDir/cloud::subInstance/cloudName;
|
fileName cloudDir = subDir/cloud::prefix/cloudName;
|
||||||
fileName postFileName = cloudDir/fieldObject.name();
|
fileName postFileName = cloudDir/fieldObject.name();
|
||||||
|
|
||||||
string title =
|
string title =
|
||||||
|
|||||||
@ -36,7 +36,7 @@ if (timeDirs.size() > 1)
|
|||||||
runTime.path()
|
runTime.path()
|
||||||
/ timeDirs[timeDirs.size() - 1].name()
|
/ timeDirs[timeDirs.size() - 1].name()
|
||||||
/ regionPrefix
|
/ regionPrefix
|
||||||
/ cloud::subInstance,
|
/ cloud::prefix,
|
||||||
fileName::DIRECTORY
|
fileName::DIRECTORY
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ if (timeDirs.size() > 1)
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
timeDirs[timeDirs.size() - 1].name(),
|
timeDirs[timeDirs.size() - 1].name(),
|
||||||
cloud::subInstance/cloudName
|
cloud::prefix/cloudName
|
||||||
);
|
);
|
||||||
|
|
||||||
bool hasPositions = false;
|
bool hasPositions = false;
|
||||||
|
|||||||
@ -329,7 +329,7 @@ int main(int argc, char *argv[])
|
|||||||
!isDir
|
!isDir
|
||||||
(
|
(
|
||||||
runTime.timePath()/regionPrefix/
|
runTime.timePath()/regionPrefix/
|
||||||
cloud::subInstance/cloudName
|
cloud::prefix/cloudName
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@ -340,7 +340,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance/cloudName
|
cloud::prefix/cloudName
|
||||||
);
|
);
|
||||||
|
|
||||||
// check that the positions field is present for this time
|
// check that the positions field is present for this time
|
||||||
@ -372,7 +372,7 @@ int main(int argc, char *argv[])
|
|||||||
if (!fieldObject)
|
if (!fieldObject)
|
||||||
{
|
{
|
||||||
Info<< "missing "
|
Info<< "missing "
|
||||||
<< runTime.timeName()/cloud::subInstance/cloudName
|
<< runTime.timeName()/cloud::prefix/cloudName
|
||||||
/ fieldName
|
/ fieldName
|
||||||
<< endl;
|
<< endl;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@ -21,7 +21,7 @@ List<IOField<vector>* > sprayVectorFieldPtrs
|
|||||||
(
|
(
|
||||||
sprayScalarNames[fieldI],
|
sprayScalarNames[fieldI],
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
@ -53,7 +53,7 @@ List<IOField<vector>* > sprayVectorFieldPtrs
|
|||||||
(
|
(
|
||||||
sprayVectorNames[fieldI],
|
sprayVectorNames[fieldI],
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -42,7 +42,7 @@ forAll(Times, timeI)
|
|||||||
|
|
||||||
|
|
||||||
// Same for spray
|
// Same for spray
|
||||||
IOobjectList sprayObjects(mesh, runTime.timeName(), cloud::subInstance);
|
IOobjectList sprayObjects(mesh, runTime.timeName(), cloud::prefix);
|
||||||
{
|
{
|
||||||
wordList fieldNames(sprayObjects.names(scalarIOField::typeName));
|
wordList fieldNames(sprayObjects.names(scalarIOField::typeName));
|
||||||
forAll(fieldNames, fieldI)
|
forAll(fieldNames, fieldI)
|
||||||
|
|||||||
@ -49,7 +49,7 @@ int main(int argc, char *argv[])
|
|||||||
"volScalarField",
|
"volScalarField",
|
||||||
"volVectorField",
|
"volVectorField",
|
||||||
"surfaceScalarField",
|
"surfaceScalarField",
|
||||||
cloud::subInstance
|
cloud::prefix
|
||||||
};
|
};
|
||||||
|
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
for(label i=0; i < nTypes; i++)
|
for (label i=0; i < nTypes; i++)
|
||||||
{
|
{
|
||||||
wordList fieldNames = objects.names(fieldTypes[i]);
|
wordList fieldNames = objects.names(fieldTypes[i]);
|
||||||
|
|
||||||
if ( fieldTypes[i] == "volScalarField" )
|
if (fieldTypes[i] == "volScalarField")
|
||||||
{
|
{
|
||||||
gmvFile << "variable" << nl;
|
gmvFile << "variable" << nl;
|
||||||
}
|
}
|
||||||
for(label j=0; j < fieldNames.size(); j++)
|
for (label j=0; j < fieldNames.size(); j++)
|
||||||
{
|
{
|
||||||
|
|
||||||
word fieldName = fieldNames[j];
|
word fieldName = fieldNames[j];
|
||||||
@ -20,7 +20,7 @@ for(label i=0; i < nTypes; i++)
|
|||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( fieldTypes[i] == "volScalarField" )
|
if (fieldTypes[i] == "volScalarField")
|
||||||
{
|
{
|
||||||
volScalarField gmvScalarField(fieldObject, mesh);
|
volScalarField gmvScalarField(fieldObject, mesh);
|
||||||
gmvFile << fieldName << " 0" << nl;
|
gmvFile << fieldName << " 0" << nl;
|
||||||
@ -31,21 +31,21 @@ for(label i=0; i < nTypes; i++)
|
|||||||
gmvFile << nl;
|
gmvFile << nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( fieldTypes[i] == "volVectorField" )
|
if (fieldTypes[i] == "volVectorField")
|
||||||
{
|
{
|
||||||
if (fieldName == vComp)
|
if (fieldName == vComp)
|
||||||
{
|
{
|
||||||
volVectorField gmvVectorField(fieldObject, mesh);
|
volVectorField gmvVectorField(fieldObject, mesh);
|
||||||
gmvFile << "velocity 0" << nl;
|
gmvFile << "velocity 0" << nl;
|
||||||
for(label indx=0;indx<mesh.nCells();indx++)
|
for (label indx=0;indx<mesh.nCells();indx++)
|
||||||
{
|
{
|
||||||
gmvFile << gmvVectorField[indx].x() << " ";
|
gmvFile << gmvVectorField[indx].x() << " ";
|
||||||
}
|
}
|
||||||
for(label indx=0;indx<mesh.nCells();indx++)
|
for (label indx=0;indx<mesh.nCells();indx++)
|
||||||
{
|
{
|
||||||
gmvFile << gmvVectorField[indx].y() << " ";
|
gmvFile << gmvVectorField[indx].y() << " ";
|
||||||
}
|
}
|
||||||
for(label indx=0;indx<mesh.nCells();indx++)
|
for (label indx=0;indx<mesh.nCells();indx++)
|
||||||
{
|
{
|
||||||
gmvFile << gmvVectorField[indx].z() << " ";
|
gmvFile << gmvVectorField[indx].z() << " ";
|
||||||
}
|
}
|
||||||
@ -53,20 +53,20 @@ for(label i=0; i < nTypes; i++)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( fieldTypes[i] == "surfaceScalarField" )
|
if (fieldTypes[i] == "surfaceScalarField")
|
||||||
{
|
{
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( fieldTypes[i] == cloud::subInstance )
|
if (fieldTypes[i] == cloud::prefix)
|
||||||
{
|
{
|
||||||
IOobject lagrangianHeader
|
IOobject lagrangianHeader
|
||||||
(
|
(
|
||||||
"positions",
|
"positions",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::NO_READ
|
IOobject::NO_READ
|
||||||
);
|
);
|
||||||
@ -75,7 +75,7 @@ for(label i=0; i < nTypes; i++)
|
|||||||
{
|
{
|
||||||
Cloud<passiveParticle> particles(mesh);
|
Cloud<passiveParticle> particles(mesh);
|
||||||
|
|
||||||
IOobjectList objects(mesh, runTime.timeName(), cloud::subInstance);
|
IOobjectList objects(mesh, runTime.timeName(), cloud::prefix);
|
||||||
|
|
||||||
wordList lagrangianScalarNames = objects.names("scalarField");
|
wordList lagrangianScalarNames = objects.names("scalarField");
|
||||||
wordList lagrangianVectorNames = objects.names("vectorField");
|
wordList lagrangianVectorNames = objects.names("vectorField");
|
||||||
@ -87,7 +87,7 @@ for(label i=0; i < nTypes; i++)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( fieldTypes[i] == "volScalarField" )
|
if (fieldTypes[i] == "volScalarField")
|
||||||
{
|
{
|
||||||
gmvFile << "endvars" << nl;
|
gmvFile << "endvars" << nl;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,7 +42,7 @@ forAll(lagrangianScalarNames, i)
|
|||||||
(
|
(
|
||||||
name,
|
name,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
@ -73,7 +73,7 @@ forAll(lagrangianVectorNames, i)
|
|||||||
(
|
(
|
||||||
name,
|
name,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -40,7 +40,7 @@ forAll(lagrangianScalarNames, i)
|
|||||||
(
|
(
|
||||||
name,
|
name,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -914,7 +914,7 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
readDir
|
readDir
|
||||||
(
|
(
|
||||||
runTime.timePath()/regionPrefix/cloud::subInstance,
|
runTime.timePath()/regionPrefix/cloud::prefix,
|
||||||
fileName::DIRECTORY
|
fileName::DIRECTORY
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -925,18 +925,18 @@ int main(int argc, char *argv[])
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance/cloudDirs[i]
|
cloud::prefix/cloudDirs[i]
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
||||||
|
|
||||||
if (positionsPtr)
|
if (positionsPtr)
|
||||||
{
|
{
|
||||||
mkDir(fvPath/cloud::subInstance/cloudDirs[i]);
|
mkDir(fvPath/cloud::prefix/cloudDirs[i]);
|
||||||
|
|
||||||
fileName lagrFileName
|
fileName lagrFileName
|
||||||
(
|
(
|
||||||
fvPath/cloud::subInstance/cloudDirs[i]/cloudDirs[i]
|
fvPath/cloud::prefix/cloudDirs[i]/cloudDirs[i]
|
||||||
+ "_" + name(timeI) + ".vtk"
|
+ "_" + name(timeI) + ".vtk"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ void Foam::lagrangianWriter::writeIOField(const wordList& objects)
|
|||||||
(
|
(
|
||||||
object,
|
object,
|
||||||
vMesh_.mesh().time().timeName(),
|
vMesh_.mesh().time().timeName(),
|
||||||
cloud::subInstance/cloudName_,
|
cloud::prefix/cloudName_,
|
||||||
vMesh_.mesh(),
|
vMesh_.mesh(),
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
|
|||||||
@ -266,7 +266,7 @@ void Foam::vtkPV3Foam::convertLagrangianFields
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
dbPtr_().timeName(),
|
dbPtr_().timeName(),
|
||||||
cloud::subInstance/cloudName
|
cloud::prefix/cloudName
|
||||||
);
|
);
|
||||||
pruneObjectList(objects, selectedFields);
|
pruneObjectList(objects, selectedFields);
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ vtkPolyData* Foam::vtkPV3Foam::lagrangianVTKMesh
|
|||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "<beg> Foam::vtkPV3Foam::lagrangianVTKMesh - timePath "
|
Info<< "<beg> Foam::vtkPV3Foam::lagrangianVTKMesh - timePath "
|
||||||
<< mesh.time().timePath()/cloud::subInstance/cloudName << endl;
|
<< mesh.time().timePath()/cloud::prefix/cloudName << endl;
|
||||||
printMemory();
|
printMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ vtkPolyData* Foam::vtkPV3Foam::lagrangianVTKMesh
|
|||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
mesh.time().timeName(),
|
mesh.time().timeName(),
|
||||||
cloud::subInstance/cloudName
|
cloud::prefix/cloudName
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
IOobject* positionsPtr = sprayObjs.lookup("positions");
|
||||||
|
|||||||
@ -149,16 +149,16 @@ void Foam::vtkPV3Foam::updateInfoLagrangian()
|
|||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "<beg> Foam::vtkPV3Foam::updateInfoLagrangian" << nl
|
Info<< "<beg> Foam::vtkPV3Foam::updateInfoLagrangian" << nl
|
||||||
<< " " << dbPtr_->timePath()/cloud::subInstance << endl;
|
<< " " << dbPtr_->timePath()/cloud::prefix << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// use the db directly since this might be called without a mesh,
|
// use the db directly since this might be called without a mesh,
|
||||||
// but the region must get added back in
|
// but the region must get added back in
|
||||||
fileName lagrangianPrefix(cloud::subInstance);
|
fileName lagrangianPrefix(cloud::prefix);
|
||||||
if (meshRegion_ != polyMesh::defaultRegion)
|
if (meshRegion_ != polyMesh::defaultRegion)
|
||||||
{
|
{
|
||||||
lagrangianPrefix = meshRegion_/cloud::subInstance;
|
lagrangianPrefix = meshRegion_/cloud::prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search for list of lagrangian objects for this time
|
// Search for list of lagrangian objects for this time
|
||||||
@ -464,10 +464,10 @@ void Foam::vtkPV3Foam::updateInfoLagrangianFields()
|
|||||||
|
|
||||||
// use the db directly since this might be called without a mesh,
|
// use the db directly since this might be called without a mesh,
|
||||||
// but the region must get added back in
|
// but the region must get added back in
|
||||||
fileName lagrangianPrefix(cloud::subInstance);
|
fileName lagrangianPrefix(cloud::prefix);
|
||||||
if (meshRegion_ != polyMesh::defaultRegion)
|
if (meshRegion_ != polyMesh::defaultRegion)
|
||||||
{
|
{
|
||||||
lagrangianPrefix = meshRegion_/cloud::subInstance;
|
lagrangianPrefix = meshRegion_/cloud::prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
IOobjectList objects
|
IOobjectList objects
|
||||||
|
|||||||
@ -140,7 +140,7 @@ int USERD_get_gold_part_build_info
|
|||||||
strncpy
|
strncpy
|
||||||
(
|
(
|
||||||
part_descriptions[nPatches+1],
|
part_descriptions[nPatches+1],
|
||||||
cloud::subInstance.c_str(),
|
cloud::prefix.c_str(),
|
||||||
Z_BUFL
|
Z_BUFL
|
||||||
);
|
);
|
||||||
number_of_elements[nPatches+1][Z_POINT] = sprayPtr->size();
|
number_of_elements[nPatches+1][Z_POINT] = sprayPtr->size();
|
||||||
|
|||||||
@ -164,7 +164,7 @@ int USERD_set_filenames
|
|||||||
(
|
(
|
||||||
"positions",
|
"positions",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
runTime,
|
runTime,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
@ -179,7 +179,7 @@ int USERD_set_filenames
|
|||||||
|
|
||||||
sprayPtr = new Cloud<passiveParticle>(*meshPtr);
|
sprayPtr = new Cloud<passiveParticle>(*meshPtr);
|
||||||
|
|
||||||
IOobjectList objects(*meshPtr, runTime.timeName(), cloud::subInstance);
|
IOobjectList objects(*meshPtr, runTime.timeName(), cloud::prefix);
|
||||||
|
|
||||||
lagrangianScalarNames =
|
lagrangianScalarNames =
|
||||||
(const wordList&)objects.names(sprayScalarFieldName);
|
(const wordList&)objects.names(sprayScalarFieldName);
|
||||||
|
|||||||
@ -12,7 +12,7 @@ if (nVar >= 0)
|
|||||||
(
|
(
|
||||||
name,
|
name,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -14,7 +14,7 @@ if (nVar >= 0)
|
|||||||
(
|
(
|
||||||
name,
|
name,
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
cloud::subInstance,
|
cloud::prefix,
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -73,7 +73,7 @@ void MapLagrangianFields
|
|||||||
(
|
(
|
||||||
fieldIter()->name(),
|
fieldIter()->name(),
|
||||||
meshTarget.time().timeName(),
|
meshTarget.time().timeName(),
|
||||||
cloud::subInstance/cloudName,
|
cloud::prefix/cloudName,
|
||||||
meshTarget,
|
meshTarget,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
|
|||||||
@ -94,7 +94,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
|
|||||||
(
|
(
|
||||||
readDir
|
readDir
|
||||||
(
|
(
|
||||||
meshSource.time().timePath()/cloud::subInstance,
|
meshSource.time().timePath()/cloud::prefix,
|
||||||
fileName::DIRECTORY
|
fileName::DIRECTORY
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -106,7 +106,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
|
|||||||
(
|
(
|
||||||
meshSource,
|
meshSource,
|
||||||
meshSource.time().timeName(),
|
meshSource.time().timeName(),
|
||||||
cloud::subInstance/cloudDirs[cloudI]
|
cloud::prefix/cloudDirs[cloudI]
|
||||||
);
|
);
|
||||||
|
|
||||||
IOobject* positionsPtr = objects.lookup("positions");
|
IOobject* positionsPtr = objects.lookup("positions");
|
||||||
|
|||||||
@ -31,7 +31,7 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::cloud, 0);
|
defineTypeNameAndDebug(Foam::cloud, 0);
|
||||||
|
|
||||||
const Foam::word Foam::cloud::subInstance("lagrangian");
|
const Foam::word Foam::cloud::prefix("lagrangian");
|
||||||
Foam::word Foam::cloud::defaultName("defaultCloud");
|
Foam::word Foam::cloud::defaultName("defaultCloud");
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
@ -44,7 +44,7 @@ Foam::cloud::cloud(const objectRegistry& obr, const word& cloudName)
|
|||||||
(
|
(
|
||||||
( cloudName.size() ? cloudName : defaultName ),
|
( cloudName.size() ? cloudName : defaultName ),
|
||||||
obr.time().timeName(),
|
obr.time().timeName(),
|
||||||
subInstance,
|
prefix,
|
||||||
obr,
|
obr,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
|
|||||||
@ -69,8 +69,8 @@ public:
|
|||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("cloud");
|
TypeName("cloud");
|
||||||
|
|
||||||
//- The subInstance (local) to prefix: %lagrangian
|
//- The prefix to local: %lagrangian
|
||||||
static const word subInstance;
|
static const word prefix;
|
||||||
|
|
||||||
//- The default cloud name: %defaultCloud
|
//- The default cloud name: %defaultCloud
|
||||||
static word defaultName;
|
static word defaultName;
|
||||||
|
|||||||
@ -108,7 +108,7 @@ void Foam::MeshedSurfaceProxy<Face>::write
|
|||||||
// the local location
|
// the local location
|
||||||
const fileName objectDir
|
const fileName objectDir
|
||||||
(
|
(
|
||||||
t.timePath()/surfaceRegistry::subInstance/name/surfMesh::meshSubDir
|
t.timePath()/surfaceRegistry::prefix/name/surfMesh::meshSubDir
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!isDir(objectDir))
|
if (!isDir(objectDir))
|
||||||
|
|||||||
@ -62,9 +62,7 @@ Foam::fileFormats::surfaceFormatsCore::localMeshFileName(const word& surfName)
|
|||||||
|
|
||||||
return fileName
|
return fileName
|
||||||
(
|
(
|
||||||
surfaceRegistry::subInstance
|
surfaceRegistry::prefix/name/surfMesh::meshSubDir
|
||||||
/ name
|
|
||||||
/ surfMesh::meshSubDir
|
|
||||||
/ name + "." + nativeExt
|
/ name + "." + nativeExt
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,7 +31,7 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::surfaceRegistry, 0);
|
defineTypeNameAndDebug(Foam::surfaceRegistry, 0);
|
||||||
|
|
||||||
const Foam::word Foam::surfaceRegistry::subInstance("surfaces");
|
const Foam::word Foam::surfaceRegistry::prefix("surfaces");
|
||||||
Foam::word Foam::surfaceRegistry::defaultName("default");
|
Foam::word Foam::surfaceRegistry::defaultName("default");
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
@ -48,7 +48,7 @@ Foam::surfaceRegistry::surfaceRegistry
|
|||||||
(
|
(
|
||||||
( surfName.size() ? surfName : defaultName ),
|
( surfName.size() ? surfName : defaultName ),
|
||||||
obr.time().timeName(),
|
obr.time().timeName(),
|
||||||
subInstance,
|
prefix,
|
||||||
obr,
|
obr,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
|
|||||||
@ -66,8 +66,8 @@ public:
|
|||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("surfaceRegistry");
|
TypeName("surfaceRegistry");
|
||||||
|
|
||||||
//- The subInstance (local) to prefix: %surfaces
|
//- The prefix to local: %surfaces
|
||||||
static const word subInstance;
|
static const word prefix;
|
||||||
|
|
||||||
//- The default surface name: %default
|
//- The default surface name: %default
|
||||||
static word defaultName;
|
static word defaultName;
|
||||||
|
|||||||
Reference in New Issue
Block a user