mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: propeller - added example use of propellerInfo function object
This commit is contained in:
committed by
Andrew Heather
parent
734a3143dc
commit
fd257cb011
@ -54,6 +54,7 @@ functions
|
|||||||
#include "surfaces"
|
#include "surfaces"
|
||||||
#include "forces"
|
#include "forces"
|
||||||
#include "AMIWeights"
|
#include "AMIWeights"
|
||||||
|
#include "propellerInfo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,48 @@
|
|||||||
|
propellerInfo1
|
||||||
|
{
|
||||||
|
type propellerInfo;
|
||||||
|
libs (forces);
|
||||||
|
writeControl writeTime;
|
||||||
|
|
||||||
|
patches ("propeller.*");
|
||||||
|
|
||||||
|
// Setting reference back to wake average Uz velocity computed by [this]
|
||||||
|
// function object
|
||||||
|
URef functionObjectValue;
|
||||||
|
functionObject propellerInfo1;
|
||||||
|
functionObjectResult UzMean;
|
||||||
|
|
||||||
|
rho rhoInf; // incompressible
|
||||||
|
rhoInf 1.2;
|
||||||
|
|
||||||
|
|
||||||
|
// Propeller data:
|
||||||
|
|
||||||
|
writePropellerPerformance yes;
|
||||||
|
|
||||||
|
// Radius
|
||||||
|
radius 0.1;
|
||||||
|
|
||||||
|
rotationMode specified;
|
||||||
|
|
||||||
|
// rotationMode = specified:
|
||||||
|
origin (0 -0.1 0);
|
||||||
|
n 25.15;
|
||||||
|
axis (0 1 0);
|
||||||
|
|
||||||
|
// Optionally write wake text files
|
||||||
|
// Note: controlled by writeControl
|
||||||
|
writeWakeFields yes;
|
||||||
|
|
||||||
|
// Sample plane (disk) properties
|
||||||
|
// Note: controlled by writeControl
|
||||||
|
sampleDisk
|
||||||
|
{
|
||||||
|
r1 0.05;
|
||||||
|
r2 0.2;
|
||||||
|
nTheta 36;
|
||||||
|
nRadial 10;
|
||||||
|
interpolationScheme cellPoint;
|
||||||
|
surfaceWriter vtk;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user