CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

What does correctBoundaryConditions do exactly?

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

Like Tree1Likes
  • 1 Post By fshak92

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

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.
rajibroy likes this.
fshak92 is offline   Reply With Quote

Old   September 19, 2014, 12:25
Senior Member
kmooney's Avatar
Kyle Mooney
Join Date: Jul 2009
Location: Amherst, MA USA - San Diego, CA USA
Posts: 321
Rep Power: 11
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


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 18:39.