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

What does "AdjustPhi" do?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 23, 2011, 07:24
Default What does "AdjustPhi" do?
  #1
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
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, 12:33
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
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, 06:00
Default
  #3
New Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 27
Rep Power: 6
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, 09:24
Default
  #4
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
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
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 23:41.