HouchinM |
December 7, 2017 10:26 |
FanPressure BC direction reversal
Hi FOAMers,
I am trying to set a fanPressure boundary condition within a ducted fan, using the createBaffles function to create two patches within a ducted fan casing.
I have created the baffles and assigned them as fanPressure boundaries in the p initial conditions as such:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
|*---------------------------------------------------------------------------*|
|* OpenFOAM for Windows 16.06 (v1) *|
|* Built by CFD Support, www.cfdsupport.com (based on Symscape). *|
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
atmosphereBoundary
{
type fixedValue;
value uniform 0;
}
ductWork
{
type zeroGradient;
}
fanCasing
{
type zeroGradient;
}
plenumWall
{
type zeroGradient;
}
systemBoundary
{
type fixedValue;
value uniform 0;
}
fanOutlet
{
type fanPressure;
fileName "fanCurve";
outOfBounds clamp;
direction out; // in | out
p0 uniform 0;
value uniform 50;
gamma 0;
}
fanInlet
{
type fanPressure;
fileName "fanCurve";
outOfBounds clamp;
direction in; // in | out
p0 uniform 0;
value uniform -50;
gamma 0;
}
}
I cannot seem to reverse the direction of the fan by switching the direction within the p initial conditions file. Is the direction of the boundary condition reversible?
Regards,
Matt
|