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

How the boundary conditions are enforced in Openfoam

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

Like Tree2Likes
  • 2 Post By santiagomarquezd

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2013, 11:28
Question How the boundary conditions are enforced in Openfoam
  #1
Senior Member
 
Join Date: Nov 2012
Posts: 168
Rep Power: 4
hz283 is on a distinguished road
Hi All,

I have a question about how the boundary condition is used in the code. For example, when the momentum equation is solved, I did not find any statements to call the boundary conditions. The codes are follows:

00001 fvVectorMatrix UEqn
00002 (
00003 fvm::ddt(rho, U)
00004 + fvm::div(phi, U)
00005 + turbulence->divDevRhoReff(U)
00006 ==
00007 parcels.SU(U)
00008 + fvOptions(rho, U)
00009 );
00010
00011 UEqn.relax();
00012
00013 fvOptions.constrain(UEqn);
00014
00015 if (pimple.momentumPredictor())
00016 {
00017 solve
00018 (
00019 UEqn
00020 ==
00021 fvc::reconstruct
00022 (
00023 (
00024 - ghf*fvc::snGrad(rho)
00025 - fvc::snGrad(p_rgh)
00026 )*mesh.magSf()
00027 )
00028 );
00029
00030 fvOptions.correct(U);
00031 K = 0.5*magSqr(U);
00032 }

It seems that from the source code for pressure and energy equations, the boundary treatment does not appear in the application source files. Does anybody know where the quantities at the boundary conditions are treated?

Thanks
bestH
hz283 is offline   Reply With Quote

Old   April 1, 2013, 10:58
Default
  #2
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
Hi, the boundary conditions are enforced within the solve method, prior to call the sparse solvers, check the fvMatrixSolve.C file.

Regards.
wyldckat and hz283 like this.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
non reflective boundary conditions for incompresible flow Pascal_doran OpenFOAM Programming & Development 15 August 7, 2014 05:55
inlet boundary conditions newOFuser OpenFOAM 1 January 10, 2013 09:08
Boundary conditions for 2D Navie-Stockes simulation L1011 OpenFOAM 5 December 13, 2012 09:17
exporting boundary conditions with pointwise -> openFoam ebah6 OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 September 16, 2012 16:57
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29


All times are GMT -4. The time now is 10:34.