CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Regarding Ethylene/Air Combustion Simulation in openFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2023, 21:18
Default Regarding Ethylene/Air Combustion Simulation in openFoam
  #1
Member
 
Niyas
Join Date: Apr 2013
Posts: 45
Rep Power: 13
niyas is on a distinguished road
Greetings,

I'm currently engaged in a numerical simulation focused on ethylene/air combustion within openFoam version 6. I have a couple of inquiries that I hope someone can assist with:

Inside the '0/C2H4 folder, I've come across a certain line.

Code:
dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0.1111111;
Could someone clarify whether this pertains to mass fraction or mole fraction, or if there's a way to express it as a percentage?

To achieve a 50:50 ratio of C2H4 and H2, is it sufficient to create a new file labeled '0/H2' and specify the H2 content in terms of either mass fraction or mole fraction? Are there any specific considerations or precautions I should be aware of?

Your insights and guidance would be greatly appreciated.
__________________
Regards,
Niyas
niyas is offline   Reply With Quote

Old   September 14, 2023, 01:49
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Generally they are mass fractions because transport properties are transported by the mass flux. To be certain, we should look at the particular transport equation being invoked by this solver. And to know what solver it is, you should tell us exactly where you found this dir.

Creating a file called 0/H2 merely creates a file called H2 that may or may not ever be loaded by the solver. Again, tell us the solver.

It is apparent that you are unfamiliar with OpenFOAM, you should be cautious of everything, especially yourself! You do not want to be misguided by your own misunderstanding.
LuckyTran is online now   Reply With Quote

Old   September 14, 2023, 02:16
Default
  #3
Member
 
Niyas
Join Date: Apr 2013
Posts: 45
Rep Power: 13
niyas is on a distinguished road
Thanks for your reply.

The solver we use is an in-house-based solver but basically adapted from reactingFoam.

So, I want to use pure ethylene/air combustion in stoichiometric conditions with N2 as inert, is the below values correct?

We'll use the balanced chemical equation for the combustion of C2H4:

C2H4 + 3 O2 → 2 CO2 + 2 H2O

Here are the calculations:

Calculate the Molar Masses:
Molar Mass of C2H4 (ethylene):
Molar Mass = 2 * Atomic Weight of Carbon (C) + 4 * Atomic Weight of Hydrogen (H)
Molar Mass of C2H4 = (2 * 12.01 g/mol) + (4 * 1.01 g/mol) = 28.05 g/mol

Molar Mass of O2 (oxygen):
Molar Mass = 2 * Atomic Weight of Oxygen (O)
Molar Mass of O2 = (2 * 16.00 g/mol) = 32.00 g/mol

Calculate Mass Fractions:
Mass Fraction of C2H4:
Mass Fraction of C2H4 = (Molar Mass of C2H4) / (Molar Mass of C2H4 + 3 * Molar Mass of O2)
Mass Fraction of C2H4 = 28.05 g/mol / (28.05 g/mol + 3 * 32.00 g/mol)
Mass Fraction of C2H4 ≈ 0.348

Mass Fraction of O2:
Mass Fraction of O2 = (3 * Molar Mass of O2) / (Molar Mass of C2H4 + 3 * Molar Mass of O2)
Mass Fraction of O2 = 3 * 32.00 g/mol / (28.05 g/mol + 3 * 32.00 g/mol)
Mass Fraction of O2 ≈ 0.652

The value is C2H4 = 0.348 and O2 = 0.652
__________________
Regards,
Niyas
niyas is offline   Reply With Quote

Old   September 14, 2023, 03:10
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,751
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
So you have an in-house code that you obtained from someone else but they're unable to explain how their code works? Either your name is GPT-4 or you are a thief!


So reacting foam. Is your YEqn.H the same as the one provided with reacting foam? Namely
Code:
fvScalarMatrix YiEqn
(
    fvm::ddt(rho, Yi)
  + mvConvection->fvmDiv(phi, Yi)
  - fvm::laplacian(turbulence->muEff(), Yi)
 ==
    reaction->R(Yi)
  + fvOptions(rho, Yi)
);

ddt(rho,Yi) and Div(phi,Yi)
Yi is your transport variable


Your calculations are of course not correct
LuckyTran is online now   Reply With Quote

Old   September 14, 2023, 03:23
Default
  #5
Member
 
Niyas
Join Date: Apr 2013
Posts: 45
Rep Power: 13
niyas is on a distinguished road
There is a slight modification.

Code:
        {
            volScalarField& Yi = Y[i];

            fvScalarMatrix YiEqn
            (
                fvm::ddt(rho, Yi)
              + mvConvection->fvmDiv(rhoPhi, Yi)
             ==
                reaction->R(Yi)
            );
__________________
Regards,
Niyas
niyas is offline   Reply With Quote

Reply

Tags
combustion, mass fraction, mole, openfoam 6, simulation


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
OpenFoam Combustion SIG dlahaye OpenFOAM Announcements from Other Sources 0 August 14, 2023 12:39
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
Need help for the 2D airfoil simulation using OpenFoam losiola OpenFOAM Running, Solving & CFD 0 October 10, 2018 11:22
Doubts Regarding Performing Combustion Simulation in OpenFoam DineshMyilsamy OpenFOAM Pre-Processing 0 June 26, 2018 08:39
OpenFoam Airfoil simulation - replacing Fluent with OpenFOAM shereez234 OpenFOAM Running, Solving & CFD 1 November 3, 2015 04:54


All times are GMT -4. The time now is 20:37.