View Issue Details

IDProjectCategoryView StatusLast Update
0000251OpenFOAMBugpublic2011-07-19 09:32
Reporteruser17Assigned Touser2 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSOtherOS Version(please specify)
Summary0000251: chemkinToFoam does not add species/thermodynamics/transport to the thermfile output
DescriptionRunning 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 ReproduceRun chemkinToFoam on a therm.dat file
Additional InformationI 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.
TagsNo tags attached.

Activities

user2

2011-07-19 09:32

  ~0000562

Thanks for the report - fixed by commit d09ed53

Issue History

Date Modified Username Field Change
2011-07-15 12:46 user17 New Issue
2011-07-19 09:32 user2 Note Added: 0000562
2011-07-19 09:32 user2 Status new => resolved
2011-07-19 09:32 user2 Fixed in Version => 2.0.x
2011-07-19 09:32 user2 Resolution open => fixed
2011-07-19 09:32 user2 Assigned To => user2