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

About the code “alphaPhi1 = alpha1Eqn.flux() ” in the solver compressibleTwoPhaseEule

Go Back   CFD Online Discussion Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development
Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 18, 2013, 10:37
Default About the code “alphaPhi1 = alpha1Eqn.flux() ” in the solver compressibleTwoPhaseEule
New Member
Join Date: Jul 2011
Posts: 3
Rep Power: 8
aegean333 is on a distinguished road
In “alphaEqn.H” file, after solving alpha equation, it defines:
alphaPhi1 = alpha1Eqn.flux();
alphaPhi2 = phi - alphaPhi1;
Do someone know how to calculate alpha1Eqn.flux()? Is it different with “fvc::interpolate(alpha1)*phi1”?

In the UEqns.H,
fvm::ddt(alpha1, U1)
+ fvm::div(alphaPhi1, U1)
- fvm::Sp(fvc::ddt(alpha1) + fvc::div(alphaPhi1), U1)
Do the codes mean “d(alpha1*U1)/dt + div(alpha1*U1* U1)” ? Why does it add the third term?

Thanks for your time.
aegean333 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing LES Delta Values From Solver Code mchurchf OpenFOAM 1 December 8, 2012 16:44
Solver exit return code 1 acvq CFX 5 September 11, 2011 09:06
Disabling and Enabling Solver Summary Outputs within code adona058 OpenFOAM Running, Solving & CFD 3 November 1, 2007 12:00
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 00:18

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