CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Multiphase Injector Combustion File Setup Problems

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sim2599

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2016, 15:29
Question Multiphase Injector Combustion File Setup Problems
  #1
New Member
 
Join Date: Feb 2016
Posts: 3
Rep Power: 10
SCHOLZC is on a distinguished road
I am trying to setup a case which models a triplet injector. I have defined each of the species (reacting and products) in separate thermophysicalProperties files, and input the appropriate corresponding parameters for each (I am not sure if this is the best way to do it since I am relatively new to OpenFOAM). I am trying to model a Methane Reaction (CH4(liquid) & O2(liquid) reactants, CO2 & H2O biproducts), but as soon as the compilation (when attempting to run) reaches the O2 properties (which uses a reacting Mixutre instead of a pureMixture for the biproducts), it goes to reference the "reactions" file. I have looked at the BubbleColumnEvaporatingReacting tutorial and files, which have provided some guidance, but it seems that my model (which is running reactingMultiphaseEulerFoam) is requiring a different setup, or something is ill defined. It is only recognizing O2 as a viable species to refer to, and when including other species in the list it gives:

--> FOAM FATAL ERROR:
CO2 not found in table. Valid entries: 1(O2)

From function HashTable ...

If I remove all other species, it says that the "sum of mass fractions is zero for species 1(O2)". I have defined all of the species in phaseProperties & thermo.compressibleGas. Are there files I am missing or not attending to here? How can I resolve this issue?

Thank you! :-)
SCHOLZC is offline   Reply With Quote

Old   March 17, 2016, 15:07
Default Follow-up
  #2
New Member
 
Join Date: Feb 2016
Posts: 3
Rep Power: 10
SCHOLZC is on a distinguished road
I was able to resolve the species not being recognized. I am now have issue with the following error:

Sum of mass fractions is zero for species

Does anyone know where this is resolved?

Thanks!
SCHOLZC is offline   Reply With Quote

Old   March 19, 2016, 15:34
Default
  #3
Member
 
Vinícius da Costa Ávila
Join Date: Jul 2015
Location: Porto Alegre, Brazil
Posts: 62
Rep Power: 10
avila.vc is on a distinguished road
Hi, I have never dealt with this specific solver. But have you tried to modify just the phases names and proprieties from tutorials/multiphase/reactingMultiphaseEulerFoam/laminar/mixerVessel2D ? This case seems to be pretty well settled for 4 phases.
__________________
Vinícius dC.A.
avila.vc is offline   Reply With Quote

Old   December 29, 2018, 13:50
Default
  #4
New Member
 
Join Date: Oct 2018
Posts: 1
Rep Power: 0
sim2599 is on a distinguished road
Hi Scholzc,


How did you resolve the issue of the species not being recognized?
tomi24 likes this.
sim2599 is offline   Reply With Quote

Old   June 17, 2020, 01:19
Default
  #5
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
Hi All,

I am also facing the same error of "Sum of mass fractions is zero for species 2(N2 H2O)". I am using sprayFoam solver in OpenFoam-v1912.

My thermophysicalProperties file looks like this.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1912                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
    type            hePsiThermo;
    mixture         multiComponentMixture;
    transport       const;
    thermo          hConst;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}

species         (N2 H2O);

N2
{
    specie
    {
        molWeight   28;
		Y			0.5;
    }
    thermodynamics
    {
        Cp          1000;
        Hf          0;
    }
    transport
    {
        mu          1.5e-5;
        Pr          0.7;
    }
}

H2O
{
    specie
    {
        molWeight   28;
		Y			0.5;
    }
    thermodynamics
    {
        Cp          4187;
        Hf          0;
    }
    transport
    {
        mu          1e-6;
        Pr          0.7;
    }
}
inertSpecie     N2;

liquids
{
    H2O
    {
        defaultCoeffs   yes;
    }
}

solids
{}

// ************************************************************************* //
Any help will be deeply appreciated. I need to solve this problem soon.
kk415 is offline   Reply With Quote

Old   June 17, 2020, 23:13
Default
  #6
Senior Member
 
krishna kant
Join Date: Feb 2016
Location: Hyderabad, India
Posts: 133
Rep Power: 10
kk415 is on a distinguished road
It is resolved by adding the species file in the 0 folder.
kk415 is offline   Reply With Quote

Reply

Tags
combustion, injector, reacting flow


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.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
[Other] How to use finite area method in official OpenFOAM 2.2.0? Detian Liu OpenFOAM Meshing & Mesh Conversion 4 November 3, 2015 03:04
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 04:08.