2010-05-12 13:27:55 +00:00
|
|
|
HashSet<word> volScalarHash;
|
|
|
|
HashSet<word> volVectorHash;
|
|
|
|
HashSet<word> surfScalarHash;
|
|
|
|
HashSet<word> surfVectorHash;
|
|
|
|
HashSet<word> sprayScalarHash;
|
|
|
|
HashSet<word> sprayVectorHash;
|
|
|
|
|
2010-08-25 21:42:57 +00:00
|
|
|
forAll(timeDirs, timeI)
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
2010-08-25 21:42:57 +00:00
|
|
|
runTime.setTime(timeDirs[timeI], timeI);
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
// Add all fields to hashtable
|
|
|
|
IOobjectList objects(mesh, runTime.timeName());
|
|
|
|
{
|
|
|
|
wordList fieldNames(objects.names(volScalarField::typeName));
|
|
|
|
forAll(fieldNames, fieldI)
|
|
|
|
{
|
|
|
|
volScalarHash.insert(fieldNames[fieldI]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
wordList fieldNames(objects.names(volVectorField::typeName));
|
|
|
|
forAll(fieldNames, fieldI)
|
|
|
|
{
|
|
|
|
volVectorHash.insert(fieldNames[fieldI]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
wordList fieldNames(objects.names(surfaceScalarField::typeName));
|
|
|
|
forAll(fieldNames, fieldI)
|
|
|
|
{
|
|
|
|
surfScalarHash.insert(fieldNames[fieldI]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
wordList fieldNames(objects.names(surfaceVectorField::typeName));
|
|
|
|
forAll(fieldNames, fieldI)
|
|
|
|
{
|
|
|
|
surfVectorHash.insert(fieldNames[fieldI]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Same for spray
|
2010-08-25 21:42:57 +00:00
|
|
|
IOobjectList sprayObjects(mesh, runTime.timeName(), cloud::prefix);
|
2010-05-12 13:27:55 +00:00
|
|
|
{
|
|
|
|
wordList fieldNames(sprayObjects.names(scalarIOField::typeName));
|
|
|
|
forAll(fieldNames, fieldI)
|
|
|
|
{
|
|
|
|
sprayScalarHash.insert(fieldNames[fieldI]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
wordList fieldNames(sprayObjects.names(vectorIOField::typeName));
|
|
|
|
forAll(fieldNames, fieldI)
|
|
|
|
{
|
|
|
|
sprayVectorHash.insert(fieldNames[fieldI]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wordList volScalarNames(volScalarHash.toc());
|
|
|
|
wordList volVectorNames(volVectorHash.toc());
|
|
|
|
wordList surfScalarNames(surfScalarHash.toc());
|
|
|
|
wordList surfVectorNames(surfVectorHash.toc());
|
|
|
|
wordList sprayScalarNames(sprayScalarHash.toc());
|
|
|
|
wordList sprayVectorNames(sprayVectorHash.toc());
|