View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000251 | OpenFOAM | Bug | public | 2011-07-15 12:46 | 2011-07-19 09:32 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | Linux | OS | Other | OS Version | (please specify) |
Summary | 0000251: chemkinToFoam does not add species/thermodynamics/transport to the thermfile output | ||||
Description | Running chemkinToFoam on a therm.dat file gives (for example): OH { { nMoles 1; molWeight 17.0074; } { Tlow 200; Thigh 5000; Tcommon 1000; highCpCoeffs ( 2.88273 0.00101397 -2.27688e-07 2.17468e-11 -5.12631e-16 3886.89 5.59571 ); lowCpCoeffs ( 3.63727 0.000185091 -1.67617e-06 2.3872e-09 -8.43144e-13 3606.78 1.35886 ); } { As 1.67212e-06; Ts 170.672; } } instead of: OH { specie { nMoles 1; molWeight 17.0074; } thermodynamics { Tlow 200; Thigh 5000; Tcommon 1000; highCpCoeffs ( 2.88273 0.00101397 -2.27688e-07 2.17468e-11 -5.12631e-16 3886.89 5.59571 ); lowCpCoeffs ( 3.63727 0.000185091 -1.67617e-06 2.3872e-09 -8.43144e-13 3606.78 1.35886 ); } transport { As 1.67212e-06; Ts 170.672; } } | ||||
Steps To Reproduce | Run chemkinToFoam on a therm.dat file | ||||
Additional Information | I think this may actually be a problem with the dictionary Ostream. You can get the required behaviour by changing the following function in dictionaryIO.C: Foam::Ostream& Foam::operator<<(Ostream& os, const dictionary& dict) { dict.write(os, true); return os; } to Foam::Ostream& Foam::operator<<(Ostream& os, const dictionary& dict) { os << indent << dict.dictName(); dict.write(os, true); return os; } but I'm not sure if that won't break other things. | ||||
Tags | No tags attached. | ||||