View Issue Details

IDProjectCategoryView StatusLast Update
0000394OpenFOAMBugpublic2012-01-24 10:43
Reporteruser331Assigned Touser2 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformi686OSOpenSuseOS Version11.4
Summary0000394: Displacement of species incorrect
DescriptionThe tutorial for sprayFoam based on the aachenBomb case for dieselFoam has a spray of C7H16 into a vessel with standard air. As the spray evolves, only N2 appears to be affected by the increase of C7H16. The mass fraction of O2 remains at a constant value of 0.234 throughout the domain.
Steps To Reproduce1. Go to the aachemBomb tutorial at: $FOAM_TUTORIALS/lagrangian/sprayFoam/aachenBomb
2. Run blockMesh
3. Turn off chemistry in constant/chemistryProperties
4. Run sprayFoam
5. View the resulting fields for O2
Additional InformationThe sum of the mass fractions (C7H16+N2+O2) is 1, so there isn't a mass conservation issue. O2 simply isn't affected by the injection. The correct behaviour was observed in OF2.0.x, and there doesn't appear to be much change in the solver, so the issue may be with the lagrangian libraries.
TagsNo tags attached.

Activities

user331

2012-01-20 20:38

  ~0000947

Last edited: 2012-01-21 00:17

This occurs when using both liquidEvaporation and liquidEvaporationBoil phase change models, whereas in 2.0.x only liquidEvaporation was used and worked properly. It also appears that only N2 (the inert species) is affected; I added another species to the initial mixture (N2=0.766,O2=CO2=0.117) and again, only N2 was displaced as the C7H16 was injected and evaporated.

user331

2012-01-24 00:58

  ~0000951

I just found out that this bug seems to exist in the tutorial (and likely the libraries/solver) for 2.0.x. I was comparing the results of the old dieselSpray lagrangian libraries and dieselFoam solver which handles the species correctly. It is likely that since dieselFoam hadn't been removed in 2.0.x no one bothered to try sprayFoam and the bug was never discovered. This is pretty major and should be looked at soon.

user2

2012-01-24 09:25

  ~0000953

Thanks for the report - we'll look into it

user2

2012-01-24 10:43

  ~0000954

Thanks for the report - bug fixed by commit e9fa4ee

Issue History

Date Modified Username Field Change
2012-01-20 18:20 user331 New Issue
2012-01-20 20:38 user331 Note Added: 0000947
2012-01-21 00:17 user331 Note Edited: 0000947
2012-01-24 00:58 user331 Note Added: 0000951
2012-01-24 09:25 user2 Note Added: 0000953
2012-01-24 10:43 user2 Note Added: 0000954
2012-01-24 10:43 user2 Status new => resolved
2012-01-24 10:43 user2 Fixed in Version => 2.1.x
2012-01-24 10:43 user2 Resolution open => fixed
2012-01-24 10:43 user2 Assigned To => user2