From a3166f2aca85e32a0868c979e66b30ca79d9f640 Mon Sep 17 00:00:00 2001 From: tlichtenegger Date: Mon, 10 Feb 2020 08:44:31 +0100 Subject: [PATCH] Made tutorial case for dynamic CZ ready for OF 6. --- .../CFDDEM/CFD/system/controlDict | 23 ++++++ .../CFDDEM/CFD/system/fvOptions | 29 ++++--- .../dataDrivenCFD/CFD/system/controlDict | 79 +------------------ .../dataDrivenCFD/CFD/system/fvOptions | 75 ++++++------------ .../dataDrivenCFD/CFD/system/fvSolution | 19 ----- 5 files changed, 62 insertions(+), 163 deletions(-) diff --git a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/controlDict b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/controlDict index 5f2faf71..a3a987c2 100644 --- a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/controlDict +++ b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/controlDict @@ -100,6 +100,8 @@ functions #include "probesDict"; } +// OF 4 +/* cellObj1 { type volRegion; @@ -118,6 +120,27 @@ functions UsMean ); } +*/ + +// OF 6 + cellObj1 + { + type volFieldValue; + libs ("libfieldFunctionObjects.so"); + enabled true; + writeControl timeStep; + writeInterval 400; + log true; + writeFields false; + regionType cellZone; + name topReg; + operation volAverage; + + fields + ( + UsMean + ); + } conditionalStop { diff --git a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/fvOptions b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/fvOptions index 4d936594..cd41d4c3 100644 --- a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/fvOptions +++ b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/CFDDEM/CFD/system/fvOptions @@ -15,21 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +// OF 4 /* source1 -{ - type temperatureLimitsConstraint; - selectionMode all; - active true; - - temperatureLimitsConstraintCoeffs - { - Tmin 288; - Tmax 298; - } -} -*/ -source1 { type limitTemperature; active yes; @@ -41,3 +29,18 @@ source1 Tmax 313; } } +*/ + +// OF 6 +source1 +{ + type limitTemperature; + active yes; + limitTemperatureCoeffs + { + active yes; + selectionMode all; + min 273; + max 313; + } +} diff --git a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/controlDict b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/controlDict index 120745b9..659b4465 100644 --- a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/controlDict +++ b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/controlDict @@ -49,63 +49,6 @@ adjustTimeStep no; functions { -/* -massFlux -{ - // Load the library containing the 'coded' functionObject - libs ("libutilityFunctionObjects.so"); - - type coded; - - // Name of on-the-fly generated functionObject - name weights; - - codeOptions - #{ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude - #}; - - - codeExecute - #{ - - const volScalarField& voidfraction = mesh().lookupObject("voidfraction"); - const volScalarField& partRho = mesh().lookupObject("partRho"); - const volVectorField& Us = mesh().lookupObject("Us"); - - static autoPtr massFluxField; - - if(!massFluxField.valid()) - { - Info << "Creating massFluxField" << nl; - - massFluxField.set - ( - new volVectorField - ( - IOobject - ( - "massFluxField", - mesh().time().timeName(), - Us.mesh(), - IOobject::NO_READ, - IOobject::AUTO_WRITE - ), - (1.0-voidfraction)*partRho*Us - ) - ); - } - - volVectorField &massFluxFieldRef = massFluxField(); - - massFluxFieldRef.checkIn(); - - massFluxFieldRef = (1.0-voidfraction)*partRho*Us; - #}; -} -*/ - fieldAverage1 { type fieldAverage; @@ -163,7 +106,7 @@ massFlux inflowL { - type surfaceRegion; + type surfaceFieldValue; libs ("libfieldFunctionObjects.so"); writeControl timeStep; writeInterval 40; @@ -193,26 +136,6 @@ massFlux $inflowL; name top; } - - /* inflowLDens - { - type surfaceRegion; - libs ("libfieldFunctionObjects.so"); - writeControl timeStep; - writeInterval 10; - log true; - // Output field values as well - writeFields false; - regionType patch; - name inletLeft; - operation areaIntegrate; - - fields - ( - rho - ); - } -*/ } // ************************************************************************* // diff --git a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvOptions b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvOptions index 1d7f793b..6893e3fc 100644 --- a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvOptions +++ b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvOptions @@ -14,63 +14,32 @@ FoamFile object fvOptions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -source1 -{ - type limitTemperature; - active yes; - limitTemperatureCoeffs - { - active yes; - selectionMode all; - Tmin 300; - Tmax 2800; - } -} - -source1 -{ - type limitTemperature; - active yes; - limitTemperatureCoeffs - { - active yes; - selectionMode all; - Tmin 300; - Tmax 2800; - } -} - +// OF 4 /* -RW_left +source1 { - type fixedTemperatureConstraint; + type limitTemperature; active yes; - - fixedTemperatureConstraintCoeffs + limitTemperatureCoeffs { - // selectionMode cellZone; - // cellZone raceway; - selectionMode cellSet; - cellSet rw_left; - mode uniform; - temperature 2600; - } -} - -RW_right -{ - type fixedTemperatureConstraint; - active yes; - - fixedTemperatureConstraintCoeffs - { - // selectionMode cellZone; - // cellZone raceway; - selectionMode cellSet; - cellSet rw_right; - mode uniform; - temperature 2600; + active yes; + selectionMode all; + Tmin 300; + Tmax 2800; } } */ + +// OF 6 +source1 +{ + type limitTemperature; + active yes; + limitTemperatureCoeffs + { + active yes; + selectionMode all; + min 300; + max 2800; + } +} diff --git a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvSolution b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvSolution index e0c966fd..01003bc9 100644 --- a/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvSolution +++ b/tutorials/rcfdemSolverRhoSteadyPimple/hotBlastFurnaceSlot/dataDrivenCFD/CFD/system/fvSolution @@ -77,25 +77,6 @@ PIMPLE pMax pMax [ 1 -1 -2 0 0 ] 500000; UMax UMax [ 0 1 -1 0 0 ] 250; - - residualControl - { - U - { - tolerance 5e-3; - relTol 0; - } - p - { - tolerance 5e-3; - relTol 0; - } - e - { - tolerance 5e-3; - relTol 0; - } - } } PISO