HouchinM |
December 8, 2017 05:02 |
Flipping the direction of FanPressure BC
I am trying to apply a fanPressure BC to an internal fan casing, using createBaffles.
I have created the baffles and applied the fanPressure boundary condition to the p field.
Everything is working correctly, except that the inlet flow is reversed, such that it behaves as an outlet (see attached image). I have tried changing the direction and the sign of the value in the fanPressure BC, but with no luck.
Has anyone been able to get the fanPressure direction to change?
p:
Code:
boundaryField
{
atmosphereBoundary
{
type fixedValue;
value uniform 0;
}
ductWork
{
type zeroGradient;
}
fanCasing
{
type zeroGradient;
}
plenumWall
{
type zeroGradient;
}
systemBoundary
{
type fixedValue;
value uniform 0;
}
baffle_master
{
type fanPressure;
fileName "fanCurve";
outOfBounds clamp;
direction out; // in | out
p0 uniform 0;
value uniform 50;
gamma 0;
}
baffle_slave
{
type fanPressure;
fileName "fanCurve";
outOfBounds clamp;
direction in; // in | out
p0 uniform 0;
value uniform -50;
gamma 0;
}
}
createBafflesDict:
Quote:
internalFacesOnly true;
baffles
{
// NOTE: cyclicAMI patches MUST BE defined PRIOR to their associted
// blockage patches
baffle
{
//- Use predefined faceZone to select faces and orientation.
type faceZone;
zoneName fanSource;
patchPairs
{
type patch;
}
}
}
|
TopoSetDict:
Quote:
actions
(
{
name fanSource;
type faceZoneSet;
action new;
source searchableSurfaceToFaceZone;
sourceInfo
{
surface triSurfaceMesh;
name baffle.stl;
}
}
{
name fanSourceSlave;
type cellSet;
action new;
source faceZoneToCell;
sourceInfo
{
name fanSource;
option slave;
}
}
);
|
https://imgur.com/a/52IZR
|