CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Fan type BC in OF15

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2008, 21:13
Default Hi, I notice fan type BC in
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi,

I notice fan type BC in OF-1.5. Had anyone tried it yet? Does anyone knows how to use it?

pei
Luttappy likes this.
hsieh is offline   Reply With Quote

Old   July 16, 2008, 07:00
Default The fan boundary is an interna
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
The fan boundary is an internal coupled patch (cyclic) with a scalar jump for pressure. Basically a jump boundary.
eugene is offline   Reply With Quote

Old   July 16, 2008, 08:22
Default Hi, Eugene, Thanks for the
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Eugene,

Thanks for the answer. Is there any example on how to use it?

Pei
hsieh is offline   Reply With Quote

Old   July 17, 2008, 08:27
Default Hi, Eugene, I am considerin
  #4
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Eugene,

I am considering using the fan type BC to model a fan inside fluid domain. A fan has an intake and an outlet (back into the fluid domain). If the pressure at far field is 0, then, the intake side of the fan might be negative, then, there is a pressure jump to the outlet (this pressure may be positive).

Can the fan type BC handle something like this? That is, specify low pressure on the fan intake side, and then, a pressure jump for the whole fan?

Pei
hsieh is offline   Reply With Quote

Old   July 17, 2008, 08:56
Default I didn't write this BC, so alt
  #5
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
I didn't write this BC, so although I have based some development off it, don't take my word as writ. Basically this boundary effects a pressure jump. Cross in one direction and the pressure increases, cross in the other and it decreases.

Unfortunately I don't have an example of its usage. I can say that it works on top of a cyclic type boundary though. This means all the other flow fields will have a cyclic (or cyclic derived) boundary at the location of the fan.

So to answer your questions yes and yes.
eugene is offline   Reply With Quote

Old   July 17, 2008, 22:06
Default Thanks again, Eugene! Pei
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Thanks again, Eugene!

Pei
hsieh is offline   Reply With Quote

Old   July 27, 2008, 12:17
Default Good morning, I understand
  #7
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Good morning,

I understand that the new fan BC adds a pressure jump on an internal boundary (surface). For this BC, how is defined the velocity ? Is is possible to use the fan bc and specify a velocity profile at the fan outlet (using funkysetfield) ?

I already have a case where a thin cylinder was grooved and removed from the mesh. I applied some bcs on the two circular surfaces in order to simulate the fan inlet/outlet behavior. My fan is in a room. A pressureInlet bc was specified for the room inlet and the pressureInletOutlet bc was used for the room outlet. I'd like to try this new fan bc but did not find any specific example case using it.

Best regards,

PO
podallaire is offline   Reply With Quote

Old   July 28, 2008, 05:35
Default You will not be able to specif
  #8
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
You will not be able to specify the velocity at the jump boundary without some user coding. At the moment there are only 2 boundaries that can coincide with an internal boundary: cyclic and jumpCyclic. To do what you want, you will have to derive a new BC type that can sit on top of a cyclic patch, but behave like a fixed value.

Unfortunately, this might be quite tricky.
eugene is offline   Reply With Quote

Old   February 24, 2009, 06:00
Default Hello http://www.cfd-online.co
  #9
New Member
 
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Hello

I do not find any examples of how to assign this fan boundary condition. Are there anyone who have done this before?

Best regards, Steinar
saasebo is offline   Reply With Quote

Old   March 18, 2009, 02:57
Default
  #10
Senior Member
 
Vincent RIVOLA
Join Date: Mar 2009
Location: France
Posts: 283
Rep Power: 18
vinz is on a distinguished road
Hi everyone,

Thanks to Eugene I understood that the internal faces are treated with a cyclic boundary condition in OpenFOAM.
I also would like to use the fan boundary condition to impose a pressure jump through an internal surface. My problem is that I don't know how to set up the boundary condition files.
For the boundary of interest named disk, i have the following:
in p file:
disk
{
type cylic;
value uniform -1000;
}
in U file:
disk
{
type cyclic;
}
in boundary file:
disk
{
type cyclic;
nFaces 640;
startFace 53760;
}
If I impose the conditions above, there is no pressure jump happening during the computation with simpleFoam.
Could one of you tell me how to set up those boundary conditions to get a pressure jump?
Thanks in advance.

Vincent
Luttappy likes this.
vinz is offline   Reply With Quote

Old   April 15, 2009, 11:55
Default
  #11
New Member
 
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Dear Foamers

The fan boundary condition is working on a cyclic patch (named ad here) defined in constant/polyMesh/boundary as

ad
{
type cyclic;
}

and then in the pressure file 0/p:

ad
{
type fan;
patchType cyclic;
f List<scalar> 2(10.0 -1.0);
value uniform 0;
}

The f above is a list of polynomial coefficients in the pressure jump definition

delta p = f_1 + f_2 * v + f_3 * v^2 + ...

Above only f_1 and f_2 is assigned, respectively 10.0 and -1.0.

In 0/U and so on, the ad patch is defined as cyclic.

My problem is now:
Is it possible to assign nonuniform coefficients f along the patch, e.g. if I want to assign a nonuniform pressure jump independent of velocity (using only f_1)?

Best Regards
Steinar
saasebo is offline   Reply With Quote

Old   April 17, 2009, 14:08
Default Example case
  #12
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
Thanks Steinar. Here's an example for flow down a duct driven by a fan in the middle.
Mike
Attached Files
File Type: gz fan.tar.gz (3.0 KB, 1090 views)
Luttappy and cfd lover like this.
roth is offline   Reply With Quote

Old   July 17, 2009, 16:52
Default
  #13
New Member
 
Join Date: Jul 2009
Posts: 1
Rep Power: 0
powen is on a distinguished road
What is the "featureCos" in the boundary file? It is set to 0.9

What's the definition?
powen is offline   Reply With Quote

Old   April 30, 2010, 03:03
Question
  #14
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Quote:
Originally Posted by saasebo View Post
... and then in the pressure file 0/p:

ad
{
type fan;
patchType cyclic;
f List<scalar> 2(10.0 -1.0);
value uniform 0;
}

The f above is a list of polynomial coefficients in the pressure jump definition

delta p = f_1 + f_2 * v + f_3 * v^2 + ...

Above only f_1 and f_2 is assigned, respectively 10.0 and -1.0.

In 0/U and so on, the ad patch is defined as cyclic.
Hello Steinar,
could you explain me how I set the sign of pressure difference? How can I understand if I have to set the delta p is positive or negative before running the case itself? Thank you!
maddalena is offline   Reply With Quote

Old   April 30, 2010, 07:06
Default
  #15
New Member
 
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Hello,

For a fan, you probably want a positive pressure jump when moving through the fan in the velocity direction (from suction side to pressure side). But if it is the order of patches in the cyclic, or the coordinate system that tells if f_1 should be positive also, I don't remember. You will see it quite quick if the pressure jump has wrong direction.

BR, Steinar
saasebo is offline   Reply With Quote

Old   June 16, 2010, 05:05
Red face A Reqest
  #16
New Member
 
mohsen
Join Date: Jun 2010
Posts: 1
Rep Power: 0
kh_mohsen_m2 is on a distinguished road
Hello,
Are you have any information about Intake-fan Boundry condition? I have a project about Intake fan, that have a problem, can you help me ? in the other hand i need 2 example about intake-fan.
Thank u for reply.
kh_mohsen_m2 is offline   Reply With Quote

Old   September 14, 2010, 03:59
Default
  #17
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
...thinking to what Eugene posted above...
Quote:
Originally Posted by eugene View Post
Basically this boundary effects a pressure jump. Cross in one direction and the pressure increases, cross in the other and it decreases.
1) Does this mean that the flow can go in both directions at the same time? Since the fan bc is based on a cyclic boundary, I guess this may be possible.
2) Does this mean that the fan can be used as a sort of local losses to simulate the pressure drop on a system that does not need to be modeled?

mad

Last edited by maddalena; September 14, 2010 at 04:30.
maddalena is offline   Reply With Quote

Old   September 14, 2010, 08:27
Default
  #18
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 17
olivierG is on a distinguished road
hello maddalena,

for 1), i would say yes, but i am a new user here ...
for 2), yes, you can use fan as a porous jump to model flow through a grid ... but maybe not in 1.6 or 1.7 see
http://www.cfd-online.com/Forums/openfoam/79757-fan-patch-acting-porous-jump.html
I am actually looking at how to get an internal boundary from gambit mesh to get it in polymesh/boundary, in order to use cyclic BC, and i will try this "porous jump"

Olivier
olivierG is offline   Reply With Quote

Old   September 14, 2010, 08:32
Default
  #19
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hello Olivier,
I noticed that post but none has replied yet. however, I always set the deltaP value positive or negative according to my mesh, and never had any problem in OF 1.6...
Let me know how your test will go.
Cheers,

mad
maddalena is offline   Reply With Quote

Old   September 15, 2010, 06:14
Default
  #20
Senior Member
 
maddalena's Avatar
 
maddalena
Join Date: Mar 2009
Posts: 436
Rep Power: 23
maddalena will become famous soon enough
Hi everyone,
following the discussion of yesterday with Olivier and on the basis of some problems I have met, I played a bit with the tutorial fan case posted above. I studied the laminar case, to keep things simple. the solution is as in picture orig.png.
First, I tried to invert the flow direction, i.e. instead of going from left to right, I wanted it to go from right to left. Thus, I exchanged the boundary conditions and changed sign (from positive to negative) to fan f coefficient. Results are shown in picture bc.png: the fan misbehaves.
Another method of reversing the flow direction is to exchange boundary conditions and invert the order of the cyclic definition, using a positive f coefficient. Therefore, on a second set, I changed the master and slave face order on blockMeshDict: from:
Code:
    cyclic fan 
    (
         ( 1 2 6 5 ) //master
         ( 8 12 15 11 ) //slave
    )
to
Code:
    cyclic fan 
    (
         ( 8 12 15 11 ) //master
         ( 1 2 6 5 )//slave
    )
Results are shown in bcOrd.png: the flow direction is reversed and results are as expected.

Conclusion: on OF 1.6 and 1.7, the f coefficient must be positive, the flow direction is set by the master and slave face of the cyclic condition.

Open point: can the fan BC be used to simulate local losses? What happens if the flow approaching the fan has a direction opposite to the supposed positive direction for the fan?

mad
Attached Images
File Type: jpg orig.jpg (21.7 KB, 687 views)
File Type: jpg BC.jpg (30.2 KB, 588 views)
File Type: jpg BCOrd.jpg (26.6 KB, 541 views)

Last edited by maddalena; September 15, 2010 at 07:23.
maddalena 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
CoupledFvScalarMatrix in OF15 fisher OpenFOAM Running, Solving & CFD 9 May 27, 2020 09:40
Forces in OF15 richard OpenFOAM Running, Solving & CFD 180 July 9, 2018 10:54
Bug in patchIntegrateC OF15 anger OpenFOAM Bugs 8 May 29, 2009 04:36
Is it a bug in Userbs Guide for OF15 kai OpenFOAM Bugs 1 October 2, 2008 08:07
Bug or a feature of OF15 rafal OpenFOAM Bugs 5 July 25, 2008 05:25


All times are GMT -4. The time now is 07:22.