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

What does correctBoundaryConditions do exactly?

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 4 Post By fshak92
  • 4 Post By kmooney

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2014, 08:26
Default What does correctBoundaryConditions do exactly?
  #1
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Hi,

Does anybody know what correctBoundaryConditionas does exactly?
It calls three functions, setUpToDate(), storeOldTimes() and evaluate().
I think the first two don't do anything to the vector(scalar)Field, but i want to know what exactly boundaryField_.evaluate() does.
Because the boundary surfaces are always same as the initial boundary condition, regardless of using correctBoundaryConditions or not. If this is true, why we need this function at all?

Thanks in advance.
meshman, rajibroy, vivek05 and 1 others like this.
fshak92 is offline   Reply With Quote

Old   September 19, 2014, 12:25
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17
kmooney is on a distinguished road
Just because you never changed the BC 'type' doesn't mean the BC 'value' doesn't change.

For example, for zeroGradient pressure BC in an unsteady flow over a sphere: its a zeroGrad BC every time step but you re-evaluate (hint:evaluate()) what the surface pressure values are every time step which is more than likely changing.
kmooney is offline   Reply With Quote

Old   May 30, 2020, 11:52
Question
  #3
Member
 
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 6
superkelle is on a distinguished road
Quote:
Originally Posted by kmooney View Post
Just because you never changed the BC 'type' doesn't mean the BC 'value' doesn't change.

For example, for zeroGradient pressure BC in an unsteady flow over a sphere: its a zeroGrad BC every time step but you re-evaluate (hint:evaluate()) what the surface pressure values are every time step which is more than likely changing.

Maybe a stupid question, sry in advance, when I write my own new application is it mandatory to add this after each fv equation that I solve? Or are there exceptions like for example in special numeric schemes or loops?
superkelle 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



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