Skip to content
Permalink
Browse files

functionObject::turbulenceFields: Added support for basic compressibl…

…e turbulence models without heat transfer support
  • Loading branch information...
Henry Weller
Henry Weller committed Oct 25, 2018
1 parent 0f422c2 commit 2249f8ad5cee6ec1abeb398e22e48bcdd1edfd8d
Showing with 53 additions and 0 deletions.
  1. +53 −0 src/functionObjects/field/turbulenceFields/turbulenceFields.C
@@ -217,6 +217,59 @@ bool Foam::functionObjects::turbulenceFields::execute()
}
}
}
else if (obr_.foundObject<compressibleTurbulenceModel>(modelName()))
{
const compressibleTurbulenceModel& model =
obr_.lookupObject<compressibleTurbulenceModel>(modelName());

forAllConstIter(wordHashSet, fieldSet_, iter)
{
const word& f = iter.key();
switch (compressibleFieldNames_[f])
{
case compressibleField::k:
{
processField<scalar>(f, model.k());
break;
}
case compressibleField::epsilon:
{
processField<scalar>(f, model.epsilon());
break;
}
case compressibleField::omega:
{
processField<scalar>(f, omega(model));
break;
}
case compressibleField::mut:
{
processField<scalar>(f, model.mut());
break;
}
case compressibleField::muEff:
{
processField<scalar>(f, model.muEff());
break;
}
case compressibleField::R:
{
processField<symmTensor>(f, model.R());
break;
}
case compressibleField::devRhoReff:
{
processField<symmTensor>(f, model.devRhoReff());
break;
}
default:
{
FatalErrorInFunction
<< "Invalid field selection" << exit(FatalError);
}
}
}
}
else if (obr_.foundObject<incompressible::turbulenceModel>(modelName()))
{
const incompressible::turbulenceModel& model =

0 comments on commit 2249f8a

Please sign in to comment.
You can’t perform that action at this time.