Single phase compressible solvers: added -listThermophysicalTransportModels option

to list the available thermophysical transport models.  Also added output for
laminar momentum and thermophysical transport models.
This commit is contained in:
Henry Weller
2022-06-28 09:37:51 +01:00
parent cf3a732789
commit af71115224
2 changed files with 40 additions and 0 deletions

View File

@ -49,3 +49,11 @@ argList::addBoolOption
"List momentumTransportModels"
);
#endif
#ifdef fluidThermophysicalTransportModel_H
argList::addBoolOption
(
"listThermophysicalTransportModels",
"List thermophysicalTransportModels"
);
#endif

View File

@ -81,6 +81,11 @@ if (args.optionFound("listMomentumTransportModels"))
dictionaryConstructorTablePtr_->sortedToc()
<< endl;
Info<< "Laminar models"
<< compressible::laminarModel::
dictionaryConstructorTablePtr_->sortedToc()
<< endl;
Info<< "RAS models"
<< compressible::RASModel::
dictionaryConstructorTablePtr_->sortedToc()
@ -94,6 +99,33 @@ if (args.optionFound("listMomentumTransportModels"))
}
#endif
#ifdef fluidThermophysicalTransportModel_H
if (args.optionFound("listThermophysicalTransportModels"))
{
Info<< "Turbulence models"
<< fluidThermophysicalTransportModel::
dictionaryConstructorTablePtr_->sortedToc()
<< endl;
Info<< "Laminar models"
<< laminarThermophysicalTransportModel
<fluidThermophysicalTransportModel>::
dictionaryConstructorTablePtr_->sortedToc()
<< endl;
Info<< "RAS models"
<< RASThermophysicalTransportModel<fluidThermophysicalTransportModel>::
dictionaryConstructorTablePtr_->sortedToc()
<< endl;
Info<< "LES models"
<< LESThermophysicalTransportModel<fluidThermophysicalTransportModel>::
dictionaryConstructorTablePtr_->sortedToc()
<< endl;
listOptions = true;
}
#endif
if (listOptions)
{
exit(0);