CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

fanPressure BC for a suction fan, how it works?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By student666
  • 1 Post By student666

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2017, 19:21
Default fanPressure BC for a suction fan, how it works?
  #1
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Hi all,

I’m trying to better understand how to set properly bcs for pressure and velocity on a 2D laminar case (rectangular channel 3x0.3x0.1 ), using OF v4.1, with fanPressure bc on the outlet patch.
Test case is as for enclosed picture.

fanPressure.C source code is
Code:
// Average volumetric flow rate
    scalar volFlowRate = 0;
    if (phi.dimensions() == dimVelocity*dimArea)
    {
        volFlowRate = dir*gSum(phip);
    }
    else if (phi.dimensions() == dimVelocity*dimArea*dimDensity)
    {
        const scalarField& rhop =
            patch().lookupPatchField<volScalarField, scalar>(rhoName());
        volFlowRate = dir*gSum(phip/rhop);
  }
I set the following flowrate/pressureDrop fanCurve.
Code:
5((0.0005 6)(0.001 5)(0.0017 4.5)(0.0022 4)(0.0028 1))
As fanPressureBC sets a pressure condition on outlet, I set for U the following BC:
Code:
    inlet
    {
        type           outletInlet;
        phi            phi;
        outletValue    uniform (0 0 0);
        value          uniform (0 0 0);
    }
    outlet
    {
	type            pressureInletOutletVelocity;
	value		uniform (0 0 0);
    }
and this is p file:
Code:
    inlet
    {
        type            fixedValue;
	value		uniform 0;
    }

    outlet
    {
        type            fanPressure;
        fileName        "fanCurve";
        outOfBounds     clamp;
        direction       out;
	U		U;
	phi		phi;
//	psi		none;
//	rho		rho;
        p0              uniform 0;
        value           uniform 0;
    }

when I run simpleFoam for 1000iterations I have the following last log:
Code:
Time = 1000

smoothSolver:  Solving for Ux, Initial residual = 1.512615e-05, Final residual = 5.2722318e-08, No Iterations 1
smoothSolver:  Solving for Uy, Initial residual = 8.228806e-05, Final residual = 2.0212224e-07, No Iterations 1
GAMG:  Solving for p, Initial residual = 0.00017614954, Final residual = 1.6843817e-05, No Iterations 1
time step continuity errors : sum local = 7.2177518e-06, global = 1.5811468e-07, cumulative = -15.385409
ExecutionTime = 295.05 s  ClockTime = 308 s
and the residual is attached (run1)

this is the postProcess -func 'patchAverage(name=outlet,U)' output for latestTime:
Code:
Time = 1000
Reading fields:
    volVectorFields: U
Executing functionObjects
surfaceRegion patchAverage(name=outlet,U) write:
    average(outlet) of U = (50.051912 -6.985344e-05 0)

surfaceRegion patchAverage(name=outlet,U) write:
    average(outlet) of U = (50.051912 -6.985344e-05 0)
Impossible: Out Of Bound Solution!

If I reverse outlet with inlet, so in order to have the fan to blow inside the channel with following BC:
U
Code:
    inlet
    {
        type           inletOutlet;
        phi            phi;
        inletValue     uniform (0 0 0);
        value          uniform (0 0 0);
    }
    outlet
    {
	type            pressureInletOutletVelocity;
	value		uniform (0 0 0);
    }
and for p:
Code:
    inlet
    {
        type            fixedValue;
	value		uniform 0;
    }

    outlet
    {
        type            fanPressure;
        fileName        "fanCurve";
        outOfBounds     clamp;
        direction       in;
	U		U;
	phi		phi;
//	psi		none;
//	rho		rho;
        p0              uniform 0;
        value           uniform 0;
    }
I get following outoput for postProcess -func 'patchAverage(name=inlet,U)':

Code:
Time = 1000

Reading fields:
    volVectorFields: U

Executing functionObjects
surfaceRegion patchAverage(name=inlet,U) write:
    average(inlet) of U = (-1.3472552 -1.511e-11 0)

surfaceRegion patchAverage(name=inlet,U) write:
    average(inlet) of U = (-1.3472552 -1.511e-11 0)
Reasonable...even if you calculate 1.347*0.3*0.1=4,02×10⁻² m3/s (still out of bound, but less...)

So the question is, how to make this BC works for a suction fan? what am I missing?

Thanks.

Michele
Attached Images
File Type: jpeg Residual_run1.jpeg (49.1 KB, 83 views)
File Type: jpg testCase.jpg (34.5 KB, 115 views)
File Type: jpeg residualRun2.jpeg (53.8 KB, 76 views)
Attached Files
File Type: zip 01_channelFanSuction.zip (24.8 KB, 40 views)
raj kumar saini likes this.
student666 is offline   Reply With Quote

Old   January 18, 2017, 12:47
Default
  #2
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
Hi all,

I performed some test.

In summary, I increased the mesh resolution, but my opinion is that average velocity is still out of bound.
As according to the fan curve I set, the resuting velocity cannot exceed 0.0028 [cm/s] /0.3 [m]/0.1 [m] = 0.093 m/s.

I also tried to change fvScheme, using Van Leer limited for U divScheme e.g. but I still have too high velocity.

Am I doing right?
Attached Files
File Type: pdf report.pdf (140.1 KB, 132 views)
raj kumar saini likes this.

Last edited by student666; January 18, 2017 at 14:02.
student666 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modeling a Fan by the Multiple reference frame (MRF) method in CFX. saisanthoshm88 CFX 11 February 17, 2021 12:30
CFX a vibration fan at a shell space kevin8843 CFX 15 November 7, 2013 22:42
Modeling of a HVAC Fan Evona FLUENT 0 May 1, 2013 04:15
Boundary conditions for a Fan geometry saisanthoshm88 CFX 9 February 7, 2011 05:33
Fan boundary condition. Alex FLUENT 0 December 1, 2006 12:48


All times are GMT -4. The time now is 18:33.