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

What does "AdjustPhi" do?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2011, 08:24
Default What does "AdjustPhi" do?
  #1
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Hello everybody
In some solver we have "AdjustPhi(Phi,U,p)" that Adjust flux to obey continuty. I want to know what does it mean ?
Thanks.
EmadTandis is offline   Reply With Quote

Old   April 26, 2011, 13:33
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Going by memory here, I believe adjustPhi looks at all the boundary patches of the mesh, adding the mass flux. Some boundaries are adjustable, such as a pressure boundary condition. If the mass balance doesn't equal zero, it will modify the flux at the adjustable boundary conditions, and fail if it can't achieve a mass balance of zero. I also recall something to do with some sort of setPressure boolean (I forget its exact name). If setPressure is true, it will do all this, if it is false, it doesn't bother attempting this.
marupio is offline   Reply With Quote

Old   April 29, 2011, 07:00
Default
  #3
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16
EmadTandis is on a distinguished road
Do you mean this function just act on "mass flux of boundary conditions that does not fix"? and does not act on quantities of internal field?
EmadTandis is offline   Reply With Quote

Old   April 29, 2011, 10:24
Default
  #4
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Yes, it doesn't touch the internal field. Just boundary patches that can be adjusted, such as zero gradient.
marupio is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 06:11.