Skip to content
Snippets Groups Projects
Commit 52256975 authored by Kutalmış Berçin's avatar Kutalmış Berçin
Browse files

GIT: add missing function object examples for MachNo, log, pow

parent bcb6e834
No related merge requests found
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
MachNo1
{
// Mandatory entries
type MachNo;
libs (fieldFunctionObjects);
// Optional (inherited) entries
field U;
region region0;
enabled true;
log true;
timeStart 0;
timeEnd 1000;
executeControl timeStep;
executeInterval 1;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
log1
{
// Mandatory entries
type log;
libs (fieldFunctionObjects);
field k;
// Optional entries
clip 1e-3;
checkDimensions false;
scale 1.0;
offset 0.0;
// Optional (inherited) entries
result logk;
region region0;
enabled true;
log true;
timeStart 0.1;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
pow1
{
// Mandatory entries
type pow;
libs (fieldFunctionObjects);
field k;
n 0.25;
// Optional entries
checkDimensions false;
scale 0.5;
offset 2.5;
// Optional (inherited) entries
result powk;
region region0;
enabled true;
log true;
timeStart 0.1;
timeEnd 1000;
executeControl timeStep;
executeInterval 5;
writeControl writeTime;
writeInterval -1;
}
// ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment