db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
68 lines
1.8 KiB
C
68 lines
1.8 KiB
C
HashSet<word> volScalarHash;
|
|
HashSet<word> volVectorHash;
|
|
HashSet<word> surfScalarHash;
|
|
HashSet<word> surfVectorHash;
|
|
HashSet<word> sprayScalarHash;
|
|
HashSet<word> sprayVectorHash;
|
|
|
|
forAll(Times, timeI)
|
|
{
|
|
runTime.setTime(Times[timeI], timeI);
|
|
|
|
// 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
|
|
IOobjectList sprayObjects(mesh, runTime.timeName(), "lagrangian");
|
|
{
|
|
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());
|