# simpleFoam

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

 October 11, 2012, 03:34 simpleFoam Dictionary problem #1 Member   Simone Join Date: Sep 2012 Posts: 95 Rep Power: 6 Sponsored Links Good morning to everyone! I'm studying adjointShapeOptimizationFoam solver, but now I have some questions which are about the first part of the code, the one which involves, basically, the simpleFoam code. So my questions are: 1) The equation which is solved by the momentum predictor involves the flux phi, which is the product within the interpolation of the velocity on the cell faces and the Sf function. This quantity, as an approximation, is taken as an explicit term, i.e. it derives from the previous iteration or from the BC right? 2) How the algorithm can match the fact that phi is calculated over the cell faces, while U is calculated at the cell center? I can't understand how openFoam can match this, since, I think (and this must be my error), we have the multiplication between one value of velocity and more values of the flux. Is phi perhaps evaluated at the cell center in some ways? 3) Why it is used the p.boundaryField().updateCoeffs() function? In which way boundary conditions, which are prescribed, need to be "updated"? It affects only patches in which only some kinds of BCs (NOT fixedValue or zeroGradient) are applied? 4) The same question is about the function U.correctBoundaryConditions() applied at the end, in the momentum corrector "section". Also in this case the BCs of ONLY some patches are "corrected"? And in which way)? (I guess that a (0,0,0) fixedValue BC over a wall patch will remain always the same, right? ) That's all folks Thanks for your answer in advance Simone Last edited by batta31; October 11, 2012 at 06:08.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27 scott OpenFOAM Running, Solving & CFD 3 April 13, 2012 16:34 spsb OpenFOAM 3 February 24, 2012 10:07 Pierpaolo OpenFOAM 1 May 8, 2010 03:08 skabilan OpenFOAM Running, Solving & CFD 2 August 29, 2008 09:42