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

FATAL ERROR : sum of mass fractions is zero for species

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mactone

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2022, 05:03
Question FATAL ERROR : sum of mass fractions is zero for species
  #1
Member
 
mactone hsieh
Join Date: Apr 2012
Location: Taiwan
Posts: 31
Blog Entries: 1
Rep Power: 14
mactone is on a distinguished road
Hi

I am not new to this forum. Though I haven't posted a lot, but I do learned a lot from the experts in this forum.

I encountered a problem.

I mapFields the latest result from a coarse mesh to a finer mesh.

The finer mesh passwd checkMesh. Though it failed when I chenMesh with -allTopology.

I can still have the result from coarse mesh mapped into the finer mesh.
In the paraview, I check the CH4, O2, CO, N2, CO2, CO, H2O are all mapped well.

However, when I tried to run reactingFoam with the finer mesh with mapped result as the initial. It failed.

Please give me some tips on solving this issue. Thank you.

It showed the following error when running reactingFoam

-->FOAM FATAL ERROR
Sum of mass fraction is zero for species 7 (O2 H2 H2O CH4 CO CO2 N2)

From void Foam::multiComponentMixture<ThermoType>::correctMa ssFractions() [with ThermoType = Foam::sutherlandTransport<Foam::species::thermo<Fo am::janafTherml<Foam:erfectGas<Foam::specie>>, Foam::sensibleEnthalpy>>]
in file lnInclude/multiComponentMixture.c at line 65.

FOAM exiting.

mactone is offline   Reply With Quote

Old   July 7, 2022, 20:46
Default
  #2
Member
 
mactone hsieh
Join Date: Apr 2012
Location: Taiwan
Posts: 31
Blog Entries: 1
Rep Power: 14
mactone is on a distinguished road
I resolved this issue by going the other way around.

Here's the working procedures

1. foamCloneCase coarseGridCase finerGridCase
2. change the blockMeshDict and snappyHexMeshDict and remesh to have a finer mesh.
3. Copy the initial condition (directory 0) from the coarserGridCase to the finerGridCase.
4. Run reactingFoam in the finerGridCase for 2 steps to get 2 (or any other steps) directory.
5. mapFields -consistent -sourceTime 'latestTime' ../coarseGridCase/
6. Now you should have the results from coarse grid mapped to the finer mesh and it's runnable.
7. decomposePar and run it in paralle if needed.

That's how I get this running.
rusinque likes this.
mactone is offline   Reply With Quote

Reply

Tags
error, mapfields, reactingfoam


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
Mass flow rate for fractions andpush CFX 2 April 7, 2022 06:54
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 23:29
Mass Fractions are uniform??? WJXu FLUENT 0 April 19, 2014 01:52
fluent definitions for mass fractions perdita FLUENT 0 December 6, 2010 06:00
Multrigrid for mass fractions Fernando Herrera Main CFD Forum 0 August 7, 2008 06:41


All times are GMT -4. The time now is 11:42.