objectRegistry: Corrected caching of registered temporary objects

For example the generation term in the k-epsilon turbulence kEpsilon:G is a
temporary field that is specifically named and registered so that it can be
looked-up be the wall-function boundary conditions and requires slightly
different handling compared to normal temporary fields which are not registered.

The tutorials/incompressible/simpleFoam/pitzDaily case now demostrates this
functionality with the addition of

cacheTemporaryObjects
(
    kEpsilon:G
);

functions
{
    #includeFunc writeObjects(objects = (kEpsilon:G))
}

in controlDict which caches kEpsilon:G and writes it at every write time.
This commit is contained in:
Henry Weller
2019-09-01 10:18:45 +01:00
parent c909bdc38d
commit 30cceb42c0
4 changed files with 52 additions and 4 deletions

View File

@ -50,4 +50,14 @@ functions
#includeFunc streamlines
}
cacheTemporaryObjects
(
kEpsilon:G
);
functions
{
#includeFunc writeObjects(objects = (kEpsilon:G))
}
// ************************************************************************* //