View Issue Details

IDProjectCategoryView StatusLast Update
0003054OpenFOAMFeaturepublic2018-08-27 20:51
ReporterDanielJAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Versiondev 
Summary0003054: Density not saved by reactingFoam
DescriptionSolvers from the reactingFoam family do not output the density field.
TagsNo tags attached.

Activities

wyldckat

2018-08-25 17:55

updater   ~0009996

Any specific reason why it should be written to disk?

I ask this because 'rho' isn't a field necessary for resuming a simulation with those solvers, therefore it's not strictly necessary to write it to disk.
However, you can still write any on-memory fields to disk with the function object writeObjects: https://cpp.openfoam.org/v6/classFoam_1_1functionObjects_1_1writeObjects.html#details

DanielJ

2018-08-27 10:02

reporter   ~0009997

Saving density would make it consistent with lagrangian solvers like reactingParcelFoam.
Also it would make possible calculating integral values like total mass of a specie.

wyldckat

2018-08-27 17:55

updater   ~0009999

@Henry: 'rho' is not read, it's only written in 'reactingParcelFoam'. Therefore it does make sense to either make 'reactingParcelFoam' not write the 'rho' field by default or to make all other 'reacting*Foam' solvers to write the 'rho' field?

henry

2018-08-27 20:51

manager   ~0010000

There is no need for the reactingFoam solvers to write the density field as it is not needed for restart.
Users who would like to have this or other fields written can use the writeObjects functionObject.

Resolved by commit 98ec0df86656bda74f3a3d6a714ed13882a5ae3c

Issue History

Date Modified Username Field Change
2018-08-25 09:46 DanielJ New Issue
2018-08-25 17:55 wyldckat Note Added: 0009996
2018-08-27 10:02 DanielJ Note Added: 0009997
2018-08-27 17:53 wyldckat Assigned To => henry
2018-08-27 17:53 wyldckat Status new => assigned
2018-08-27 17:55 wyldckat Note Added: 0009999
2018-08-27 20:51 henry Status assigned => resolved
2018-08-27 20:51 henry Resolution open => fixed
2018-08-27 20:51 henry Fixed in Version => dev
2018-08-27 20:51 henry Note Added: 0010000