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

Pressure jump wrt Flow/velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2017, 05:43
Default Pressure jump wrt Flow/velocity
  #1
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
Hi Friends,

I want to give pressure jump in OF with respect to flow rate. This is basically fan curve (Pr. vs Q) which I want to enter. Based on the system resistance the flow rate through the fan will be set.

When I try to do that through cyclic BC, it takes table only wrt to time not in terms of velocity or flow. This is quite possible in other commercial tools.

Is there any workaround on this? Please help.

Thnaks
Carno
Carno is offline   Reply With Quote

Old   November 30, 2017, 04:17
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

You need to use the "fan" boundary in your pressure file:

Code:
    Fan_master
    {
        type            fan;
        patchType       cyclic;
        jumpTable       table   
        (// PressureJump vs mean velocity format: ( "mean velocity" "pressure jump")
            (  1   250)    
            ( 2   200 )   
            ( 4  150 )  
            ( 6.5   100 )  
            ( 7.5   50 )   
            ( 8  0.01 )                                                                   
        );
        outOfBounds clamp;
        value           $internalField;
    }
    Fan_slave
    {
        type            fan;
        patchType       cyclic;
        value           $internalField;
    }
Fan direction is in the normal direction of the master patch.
Cheers,
Tom
tomf is offline   Reply With Quote

Old   December 1, 2017, 07:36
Default
  #3
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
Thanks Tom,

I will check that.
But in that, how Openfoam will know that the table is of velocity vs deltaP?

Thanks Again...

Best regards,
Carno
Carno is offline   Reply With Quote

Old   December 1, 2017, 07:45
Default
  #4
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

Check the source code of the fan boundary condition.

Regards,
Tom
tomf is offline   Reply With Quote

Old   December 1, 2017, 08:11
Default
  #5
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
Quote:
Originally Posted by tomf View Post
Hi,

Check the source code of the fan boundary condition.

Regards,
Tom
Thanks for the reply Tom. I will look into the code as suggested.
I apologize for asking again. Why did you comment the line
Code:
// PressureJump vs mean velocity format: ( "mean velocity" "pressure jump")
Thanks again
Carno is offline   Reply With Quote

Old   December 1, 2017, 08:15
Default
  #6
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi Carno

I did it just to give you this hint. I originally did it for myself.
It was not meant to give you confusion, to the contrary actually.

Regards,
Tom
tomf is offline   Reply With Quote

Old   January 4, 2018, 07:25
Default
  #7
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
My Problem is solved thanks.
Now I have different question about the direction of it.

I have used following script in p file.
Code:
fan_master    
{        
	type            fan;		
	patchType 	cyclic;		
	f List<scalar>    3(3 3 -2);	
	value uniform 0;    
}	
fan_slave 
{        
	type            fan;		
	patchType 	cyclic;		
	f List<scalar>    3(3 3 -2);	
	value uniform 0;    
}
How to set the direction of the flow? In other words how to reverse the direction if required?
If the flow happens from master to slave, how to identify which side is the master and slave?

Thanks again..
Carno is offline   Reply With Quote

Old   January 4, 2018, 10:33
Default
  #8
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 634
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

It depends on the orientation of the master patch. If you flip it (the normal direction), the direction of the fan will change. I am just not sure how to do it in OpenFOAM directly. I prepare my cases using ANSA, where I can easily flip the orientation of such a patch. Probably the slave will have to be flipped as well. I think that the master is always the first entry in constant/polyMesh/boundary.

Regards,
Tom
tomf 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
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
static vs. total pressure auf dem feld FLUENT 17 February 26, 2016 13:04
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC Endel OpenFOAM Running, Solving & CFD 3 September 11, 2014 16:29
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
How to control pressure jump in a fan? Ana FLUENT 1 April 8, 2006 08:25


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