Skip to content

Problems about the eddyDissipation model #571

@TimoLin

Description

@TimoLin

Description

  • Compiling problem
    If one want to use the eddyDisspation modek, the following thermo class should be modified:

From:

// fluidThermo* pThermo = new hePsiThermo<psiThermo, CanteraMixture>(mesh, word::null);
fluidThermo* pThermo = new heRhoThermo<rhoThermo, CanteraMixture>(mesh, word::null);
fluidThermo& thermo = *pThermo;

To:

 fluidThermo* pThermo = new heRhoThermo<rhoThermo, dfSingleStepReactingMixture>(mesh, word::null); 
  • Simulation problem
    When the eddyDissipation model is set in combustionProperties, the simulation throws the following error:
[7] --> FOAM FATAL ERROR:
[7]
    lookup of turbulenceProperties from objectRegistry region0 successful
    but it is not a LES, it is a kEpsilon
[7]
[7]     From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::LESModel<Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > > >]
[7]     in file /public/home/chenzhi/dftorch/OpenFOAM-7/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 178.
[7]
FOAM parallel run aborting

Releated code:

eddyDissipationModel<ReactionThermo>::rtDiff() const
{
const CanteraMixture& mixture_ = dynamic_cast<const CanteraMixture&>(this->thermo());
const volScalarField& YO2 = mixture_.Y("O2");
const compressible::LESModel& lesModel =
YO2.db().lookupObject<compressible::LESModel>
(
turbulenceModel::propertiesName
);
return Cd_*this->thermo().alpha()/this->rho()/sqr(lesModel.delta());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions