codedFunctionObjectTemplate: Added #include "volFields.H"

The codedFunctionObjectTemplate is based on regionFunctionObject requiring
fvMesh.H and most manipulate volFields so it makes sense for volFields.H to be
included by default.
This commit is contained in:
Henry Weller
2023-04-02 10:41:22 +01:00
parent 0e8c5edada
commit 9e0373cc12
8 changed files with 20 additions and 2 deletions

View File

@ -24,6 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "codedFunctionObjectTemplate.H"
#include "volFields.H"
#include "unitConversion.H"
#include "addToRunTimeSelectionTable.H"

View File

@ -48,10 +48,15 @@ functions
{
error
{
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
type coded;
codeInclude
#{
#include "volFields.H"
#};
codeEnd
#{

View File

@ -63,10 +63,13 @@ functions
setDeltaT
{
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
code
codeInclude
#{
#include "volFields.H"
#};
codeExecute

View File

@ -7,6 +7,8 @@
\*---------------------------------------------------------------------------*/
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
name generateAlphas;

View File

@ -7,6 +7,8 @@
\*---------------------------------------------------------------------------*/
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
name generateAlpha;

View File

@ -55,6 +55,7 @@ functions
writeCachedObjects
{
type writeObjects;
libs ("libutilityFunctionObjects.so");
writeControl writeTime;

View File

@ -57,6 +57,8 @@ functions
mixingQualityCheck
{
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
codeInclude

View File

@ -55,6 +55,8 @@ outletMassFlowRate
totalMass
{
type coded;
// Load the library containing the 'coded' functionObject
libs ("libutilityFunctionObjects.so");
codeExecute