ENH: add caching selector to PatchFunction1

- extend handling of uniform PatchFunction1 to include new Function1
  types and pass through the objectRegistry information
This commit is contained in:
Mark Olesen
2021-11-10 13:01:27 +01:00
committed by Mark Olesen
parent f29eb55cee
commit 925a2e724b
8 changed files with 177 additions and 18 deletions

View File

@ -26,6 +26,7 @@ License
\*---------------------------------------------------------------------------*/
#include "SampleFunction1.H"
#include "UniformValueField.H"
#include "fieldTypes.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -40,7 +41,12 @@ namespace Foam
makeFunction1s(sphericalTensor);
makeFunction1s(symmTensor);
makeFunction1s(tensor);
addUniformValueFieldFunction1s(sample, scalar);
addUniformValueFieldFunction1s(sample, vector);
addUniformValueFieldFunction1s(sample, sphericalTensor);
addUniformValueFieldFunction1s(sample, symmTensor);
addUniformValueFieldFunction1s(sample, tensor);
}
// ************************************************************************* //