From af71115224fd2f84c66a5ec205d1940fe7a93f89 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 28 Jun 2022 09:37:51 +0100 Subject: [PATCH] Single phase compressible solvers: added -listThermophysicalTransportModels option to list the available thermophysical transport models. Also added output for laminar momentum and thermophysical transport models. --- src/OpenFOAM/include/listOptions.H | 8 ++++++++ src/OpenFOAM/include/listOutput.H | 32 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/src/OpenFOAM/include/listOptions.H b/src/OpenFOAM/include/listOptions.H index ac181b4ef8..5547fd66e2 100644 --- a/src/OpenFOAM/include/listOptions.H +++ b/src/OpenFOAM/include/listOptions.H @@ -49,3 +49,11 @@ argList::addBoolOption "List momentumTransportModels" ); #endif + +#ifdef fluidThermophysicalTransportModel_H +argList::addBoolOption +( + "listThermophysicalTransportModels", + "List thermophysicalTransportModels" +); +#endif diff --git a/src/OpenFOAM/include/listOutput.H b/src/OpenFOAM/include/listOutput.H index b7865c99a7..da2b2f5b3f 100644 --- a/src/OpenFOAM/include/listOutput.H +++ b/src/OpenFOAM/include/listOutput.H @@ -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 + :: + dictionaryConstructorTablePtr_->sortedToc() + << endl; + + Info<< "RAS models" + << RASThermophysicalTransportModel:: + dictionaryConstructorTablePtr_->sortedToc() + << endl; + + Info<< "LES models" + << LESThermophysicalTransportModel:: + dictionaryConstructorTablePtr_->sortedToc() + << endl; + listOptions = true; +} +#endif + if (listOptions) { exit(0);