tutorials: Moved the functions entry from controlDict into a functions file
This commit is contained in:
@ -57,24 +57,4 @@ maxDi 200;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
functions
|
||||
{
|
||||
#includeFunc patchAverage
|
||||
(
|
||||
name=cylinderToil,
|
||||
region=fluid,
|
||||
patch=fluid_to_solid,
|
||||
field=T.oil
|
||||
)
|
||||
|
||||
#includeFunc patchAverage
|
||||
(
|
||||
name=cylinderTwater,
|
||||
region=fluid,
|
||||
patch=fluid_to_solid,
|
||||
field=T.water
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,32 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object functions;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#includeFunc patchAverage
|
||||
(
|
||||
name=cylinderToil,
|
||||
region=fluid,
|
||||
patch=fluid_to_solid,
|
||||
field=T.oil
|
||||
)
|
||||
|
||||
#includeFunc patchAverage
|
||||
(
|
||||
name=cylinderTwater,
|
||||
region=fluid,
|
||||
patch=fluid_to_solid,
|
||||
field=T.water
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user