Skip to content
  • Mark OLESEN's avatar
    INT: objectRegistry: optionally caching temporary objects (#2723) · 1685e8e4
    Mark OLESEN authored
    - functionality introduced by openfoam.org to support selective
      caching of temporary fields. The purpose is two-fold: to enable
      diagnostics and to allow more places to use unregistered fields by
      default.
    
      For example to cache the grad(k) field in
    
        cacheTemporaryObjects
        (
            grad(k)
        );
    
      If the name of a field which in never constructed is added to the
      cacheTemporaryObjects list a waning message is generated which
      includes a useful list of ALL the temporary fields constructed
      during the time step
    
      Multiple regions are also supported by specifying individual region
      names in a cacheTemporaryObjects dictionary.
    
        cacheTemporaryObjects
        {
            porous
            (
                porosityBlockage:UNbr
            );
        }
    
        functions
        {
            writePorousObjects
            {
                type        writeObjects;
                libs        (utilityFunctionObjects);
    
                region      porous;
                writeControl writeTime;
                writeOption anyWrite;
    
                objects     (porosityBlockage:UNbr);
            }
        }
    1685e8e4