Skip to content
Snippets Groups Projects
Commit e8d1fe02 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

STYLE: remove 'functions' dictionary scope from catalyst files

- relocate to controlDict, since more than a single function object
  is often used.
parent ae48c4a4
Branches
Tags
No related merge requests found
Showing with 134 additions and 128 deletions
// ParaView Catalyst function object for OpenFOAM (-*- C++ -*-) // ParaView Catalyst function object for OpenFOAM (-*- C++ -*-)
functions
{
catalyst catalyst
{ {
type catalyst; type catalyst;
libs ("libcatalystFoam.so"); libs ("libcatalystFoam.so");
executeControl timeStep; executeControl timeStep;
writeControl none; writeControl none;
// OR #includeEtc "caseDicts/insitu/catalyst/catalyst.cfg" // ^^^^^
// #includeEtc "caseDicts/insitu/catalyst/catalyst.cfg"
// mkdir "<case>/someDir"; // mkdir "<case>/someDir";
...@@ -55,7 +56,6 @@ functions ...@@ -55,7 +56,6 @@ functions
} }
} }
} }
}
// ************************************************************************* // // ************************************************************************* //
// ParaView Catalyst function object for OpenFOAM (-*- C++ -*-) // ParaView Catalyst function object for OpenFOAM (-*- C++ -*-)
functions
{
catalyst catalyst
{ {
#includeEtc "caseDicts/insitu/catalyst/catalyst.cfg" #includeEtc "caseDicts/insitu/catalyst/catalyst.cfg"
scripts scripts
( (
"<system>/scripts/writeArea.py" "<system>/scripts/writeArea.py"
...@@ -12,6 +11,7 @@ functions ...@@ -12,6 +11,7 @@ functions
inputs inputs
{ {
// channel = area
area area
{ {
type area; type area;
...@@ -20,6 +20,5 @@ functions ...@@ -20,6 +20,5 @@ functions
} }
} }
} }
}
// ************************************************************************* // // ************************************************************************* //
...@@ -43,6 +43,9 @@ timePrecision 6; ...@@ -43,6 +43,9 @@ timePrecision 6;
runTimeModifiable yes; runTimeModifiable yes;
functions
{
#include "catalyst" #include "catalyst"
}
// ************************************************************************* // // ************************************************************************* //
// ParaView Catalyst function object for OpenFOAM (-*- C++ -*-) // ParaView Catalyst function object for OpenFOAM (-*- C++ -*-)
functions
{
catalyst catalyst
{ {
#includeEtc "caseDicts/insitu/catalyst/catalyst.cfg" #includeEtc "caseDicts/insitu/catalyst/catalyst.cfg"
...@@ -16,6 +14,7 @@ functions ...@@ -16,6 +14,7 @@ functions
inputs inputs
{ {
// channel = region, region/mesh, region/patches
region region
{ {
// All regions // All regions
...@@ -26,6 +25,5 @@ functions ...@@ -26,6 +25,5 @@ functions
} }
} }
} }
}
// ************************************************************************* // // ************************************************************************* //
...@@ -52,6 +52,9 @@ maxDi 10.0; ...@@ -52,6 +52,9 @@ maxDi 10.0;
adjustTimeStep yes; adjustTimeStep yes;
functions
{
#include "catalyst" #include "catalyst"
}
// ************************************************************************* // // ************************************************************************* //
// ParaView Catalyst function object for OpenFOAM (-*- C++ -*-) // ParaView Catalyst function object for OpenFOAM (-*- C++ -*-)
functions
{
catalyst catalyst
{ {
#includeEtc "caseDicts/insitu/catalyst/catalyst.cfg" #includeEtc "caseDicts/insitu/catalyst/catalyst.cfg"
...@@ -21,6 +19,7 @@ functions ...@@ -21,6 +19,7 @@ functions
inputs inputs
{ {
// channel = region, region/mesh, region/patches
region region
{ {
// Selected fields (words or regex) // Selected fields (words or regex)
...@@ -28,6 +27,5 @@ functions ...@@ -28,6 +27,5 @@ functions
} }
} }
} }
}
// ************************************************************************* // // ************************************************************************* //
...@@ -45,7 +45,9 @@ timePrecision 6; ...@@ -45,7 +45,9 @@ timePrecision 6;
runTimeModifiable true; runTimeModifiable true;
functions
{
#include "catalyst" #include "catalyst"
}
// ************************************************************************* // // ************************************************************************* //
// ParaView Catalyst function object for OpenFOAM (-*- C++ -*-) // ParaView Catalyst function object for OpenFOAM (-*- C++ -*-)
functions
{
catalyst catalyst
{ {
#includeEtc "caseDicts/insitu/catalyst/catalyst.cfg" #includeEtc "caseDicts/insitu/catalyst/catalyst.cfg"
...@@ -14,6 +12,7 @@ functions ...@@ -14,6 +12,7 @@ functions
inputs inputs
{ {
// channel = region, region/mesh, region/patches
region region
{ {
type default; type default;
...@@ -22,6 +21,7 @@ functions ...@@ -22,6 +21,7 @@ functions
fields ( T U p rho ); fields ( T U p rho );
} }
// channel = cloud
cloud cloud
{ {
type cloud; type cloud;
...@@ -34,6 +34,5 @@ functions ...@@ -34,6 +34,5 @@ functions
} }
} }
} }
}
// ************************************************************************* // // ************************************************************************* //
...@@ -51,6 +51,10 @@ maxCo 1.0; ...@@ -51,6 +51,10 @@ maxCo 1.0;
maxDeltaT 1; maxDeltaT 1;
functions
{
#include "catalyst" #include "catalyst"
}
// ************************************************************************* // // ************************************************************************* //
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment