BC p_rgh \$internalField meaning

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 June 20, 2014, 09:19 BC p_rgh \$internalField meaning #1 New Member   Join Date: Dec 2013 Posts: 12 Rep Power: 5 Hi everyone, i am a beginner user of opeFOAM. I have a case to work on, wich is run in the fireFOAM solver , and a question for the meaning of "\$internalField ". Consider the next selection of p_rgh Dictionary: internalField uniform 101325; boundaryField { ........ verticalInterior { type buoyantPressure; value \$internalField; } atmosphereHorizont { type totalPressure; U U; phi phi; rho rho; psi none; gamma 1.4; p0 \$internalField; //value \$internalField; } defaultFaces { type empty; } } // ************************************************** *********************** // So let's get to the question : Does \$internalField in the both patches means that for any timeStep the p-rho*g*h wil be equal to 101325 or that when time is advancing the boundary values for p-rho*g*h is varying and equal to calculated internalfield values? Thank you very much in advance! Best regards, Alexandru Last edited by coroi; June 30, 2014 at 05:57.

 June 20, 2014, 09:52 #2 Senior Member   Alexey Matveichev Join Date: Aug 2011 Location: Nancy, France Posts: 1,691 Rep Power: 28 Hi, in case of buoyandPressure it's just value for the first time step, then, as the BC is a child of fixedGradient, gradient p_rgh will be set to Code: `gradient() = -rho.snGrad()*(g.value() & patch().Cf());` in case of totalPressure, it's a child of fixedValue BC, and the value will be set to: Code: `operator==(p0p - 0.5*rho*(1.0 - pos(phip))*magSqr(Up))` where p0p is 101325. coroi likes this.

 June 20, 2014, 10:36 #3 New Member   Join Date: Dec 2013 Posts: 12 Rep Power: 5 Thank you very much Alexey Matveichev . Can I ask you something else ? Where should I search those kind of expressions/explanations like gradient() = .... and operator==... for other BC types ? Are they wrote in some files of /opt/openfoam211/... ?

 June 20, 2014, 10:46 #4 Senior Member   Alexey Matveichev Join Date: Aug 2011 Location: Nancy, France Posts: 1,691 Rep Power: 28 Implementations of boundary conditions are located in: Code: `\$FOAM_SRC/finiteVolume/fields/fvPatchFields` (I guess \$FOAM_SRC in your case is /opt/openfoam211/src) buoyantPressure and totalPressure are in derived folder.

 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 sivakumar OpenFOAM Pre-Processing 15 April 24, 2016 03:35 simpomann OpenFOAM Running, Solving & CFD 3 February 17, 2014 18:06 sohailr OpenFOAM Running, Solving & CFD 0 January 31, 2014 16:34 kornickel OpenFOAM Running, Solving & CFD 8 September 17, 2013 05:37 mihaipruna OpenFOAM Running, Solving & CFD 5 April 24, 2012 17:18

All times are GMT -4. The time now is 09:29.

 Contact Us - CFD Online - Privacy Statement - Top