# twoPhaseEulerFoam variables

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

 March 31, 2011, 09:51 twoPhaseEulerFoam variables #1 Member   Costas K Join Date: Nov 2009 Location: UK Posts: 51 Rep Power: 10 Hi all I was going through the code of twoPhaseEulerFoam and I have some questions about the variables in a part of alphaEqn.H and I'd be thankful if anyone could help me identify their use. What is phic used for? It is initialised as Code: `surfaceScalarField phic = phi;` What about alphaf? It is defined as Code: `surfaceScalarField alphaf = fvc::interpolate(alpha);` And finally I cannot understand what phipp represents and how it is used. Code: `surfaceScalarField phipp = ppMagf*fvc::snGrad(alpha)*mesh.magSf();` Cheers all

 April 1, 2011, 02:45 #2 Senior Member   Alberto Passalacqua Join Date: Mar 2009 Location: Ames, Iowa, United States Posts: 1,911 Rep Power: 28 Hi, phipp is a term used only if the ppMagf model is used. In such case, the momentum equation for phase a has an additional pressure gradient grad(pa). If you proceed as in the derivation of phase a "pressure equation", but keep that equation written in terms of alpha, understand the origin of phipp. Hint: grad(pa) = G(alpha) * grad(alpha), where G(alpha) = ppMagf = d(pa)/d(alpha). Best, __________________ Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using.

 November 26, 2011, 00:48 #3 New Member   Kshitij kunte Join Date: Jun 2011 Posts: 18 Rep Power: 8 Hi Alberto, I have one question about the ppmagf's usage, according to my understanding the ppmagf model is implemented when the kinetic theory is off, ie when the value of g0 > 0. Then why does its definition involve the kinetic theory particle pressure "pa". Or I'm wrong in getting this. I'm a newbee to C++ and have not understood the code yet would you please clarify. Thanks in advance.

 November 26, 2011, 22:00 #4 Senior Member   Alberto Passalacqua Join Date: Mar 2009 Location: Ames, Iowa, United States Posts: 1,911 Rep Power: 28 The currently implemented ppMagf does not involve the kinetic theory model. I used "pa" in comment #2 to suggest how to extend the current treatment of the particle pressure in the alpha equation only implemented when the ppMagf model is used also to the case when the kinetic theory is used. Best, __________________ Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using.

 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 N.P CFX 5 December 1, 2011 08:47 rassilon OpenFOAM Installation 2 February 16, 2010 21:54 Bernhardt FLUENT 1 June 15, 2007 01:30 Eugene Phoenics 9 November 2, 2001 23:00 Zoltan Turzo CFX 2 April 20, 2000 15:05

All times are GMT -4. The time now is 16:32.