CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2013, 10:37
Default About the code “alphaPhi1 = alpha1Eqn.flux() ” in the solver compressibleTwoPhaseEule
  #1
New Member
 
Xiaohuan
Join Date: Jul 2011
Posts: 3
Rep Power: 15
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

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing LES Delta Values From Solver Code mchurchf OpenFOAM 4 June 12, 2023 13:55
Solver exit return code 1 acvq CFX 5 September 11, 2011 10: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 2, 2003 00:32
Open source CFD code development, possible? Dr. Yazid Bindar Main CFD Forum 27 July 18, 2000 01:18


All times are GMT -4. The time now is 07:30.