diff --git a/.gitignore b/.gitignore index a95cd603ba..b124c8d887 100644 --- a/.gitignore +++ b/.gitignore @@ -41,10 +41,6 @@ SunOS*Gcc*/ # reinstate wmake/rules that might look like build folders !wmake/rules/*/ -# but do continue to ignore the derived wmake files -wmake/rules/*/dirToString -wmake/rules/*/wmkdep - # doxygen generated documentation doc/[Dd]oxygen/html doc/[Dd]oxygen/latex diff --git a/bin/buildParaView b/bin/buildParaView index cceee96487..c23644e804 100755 --- a/bin/buildParaView +++ b/bin/buildParaView @@ -58,8 +58,6 @@ withQTSUPPORT=true # Set the path to the Qt-4.3.? qmake if the system Qt is other than this version QMAKE_PATH="" -#QMAKE_PATH=/usr/local/Trolltech/Qt-4.3.5/bin/qmake -#QMAKE_PATH=$WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/linux64GccDPOpt/bin/qmake # # No further editing below this line @@ -87,14 +85,14 @@ For finer control, the build stages can be also selected individually -make -makedoc -install - [-envpath] alter absolute paths in CMake files to use env variables + -envpath alter absolute paths in CMake files to use env variables Build and install paraview-$ParaView_VERSION - run from folder above the ParaView source folder or place the ParaView source under \$WM_THIRD_PARTY_DIR ($WM_THIRD_PARTY_DIR) USAGE - exit 1 + exit 1 } #------------------------------------------------------------------------------ @@ -114,7 +112,7 @@ runCONFIG=true runMAKE=true runMAKEDOC=true runINSTALL=true -runENVPATH=false +runENVPATH=true # parse options @@ -152,7 +150,7 @@ do runINSTALL=true shift ;; - -envpath) # optional: change cmake files to use env variables + -envpath) # stage 5: change cmake files to use env variables runCONFIG=false runMAKE=false runMAKEDOC=false @@ -183,6 +181,11 @@ do withQTSUPPORT=true shift ;; + -qmake) + [ "$#" -ge 2 ] || usage "'$1' option requires an argument" + export QMAKE_PATH=$2 + shift 2 + ;; -verbose) withVERBOSE=true shift diff --git a/bin/foamPack b/bin/foamPack index 5f42ebbb2b..3f35f5b57d 100755 --- a/bin/foamPack +++ b/bin/foamPack @@ -86,9 +86,10 @@ find -H $packDir \ -a ! -name "log[0-9]*" \ -a ! -name "so_locations" \ | sed \ - -e "\@$packDir/.git/@d" \ -e "\@$packDir/lib/@d" \ - -e '\@applications/bin/@d' \ + -e '\@/\.git/@d' \ + -e '\@applications/bin/@d' \ + -e '\@wmake/utilbin/@d' \ -e '\@/t/@d' \ -e '\@Make[.A-Za-z]*/[^/]*/@d' \ -e '\@doc/[Dd]oxygen/html@d' \ @@ -100,7 +101,7 @@ find -H $packDir \ tar czpf $packFile --files-from $tmpFile -if [ $? = 0 ] +if [ $? -eq 0 ] then echo "Finished packing and compressing $packDir into file $packFile" else diff --git a/bin/foamPackBin b/bin/foamPackBin index 00ef0c5af3..5a60b405a9 100755 --- a/bin/foamPackBin +++ b/bin/foamPackBin @@ -33,14 +33,17 @@ if [ $# -eq 0 ] then - echo "Error: architecture type expected, exiting" - echo - echo "Usage : ${0##*/} [outputDir]" - echo - exit 1 + echo "Error: architecture type expected, exiting" + echo + echo "Usage : ${0##*/} [outputDir]" + echo + exit 1 fi arch=$1 +# base arch (w/o precision, optimization, etc) +baseArch=$(echo "$arch" | sed -e 's@[DS]P.*$@@') + timeStamp=$(date +%Y-%m-%d) packDir=$WM_PROJECT-$WM_PROJECT_VERSION packFile=${packDir}.${arch}_${timeStamp}.gtgz @@ -48,49 +51,50 @@ packFile=${packDir}.${arch}_${timeStamp}.gtgz # add optional output directory if [ -d "$2" ] then - packFile="$2/$packFile" + packFile="$2/$packFile" fi if [ -f $packFile ] then - echo "Error: $packFile already exists" - exit 1 + echo "Error: $packFile already exists" + exit 1 fi # check for essential directories for dir in $packDir $packDir/lib/$arch $packDir/applications/bin/$arch do - if [ ! -d $dir ] - then - echo "Error: directory $dir does not exist" - exit 1 - fi + if [ ! -d $dir ] + then + echo "Error: directory $dir does not exist" + exit 1 + fi done # get list of directories dirList=$( - for dir in \ - $packDir/lib/$arch \ - $packDir/applications/bin/$arch \ - $packDir/wmake/rules \ - ; - do - [ -d $dir ] && echo $dir - done + for dir in \ + $packDir/lib/$arch \ + $packDir/applications/bin/$arch \ + $packDir/wmake/rules \ + $packDir/wmake/utilbin/$baseArch \ + ; + do + [ -d $dir ] && echo $dir + done ) echo -echo "Packing $arch port of $packDir into $packFile" +echo "Packing $arch ($baseArch) port of $packDir into $packFile" echo tar czpf $packFile $dirList -if [ $? = 0 ] +if [ $? -eq 0 ] then - echo "Finished packing and compressing file $packFile" + echo "Finished packing and compressing file $packFile" else - echo "Error: failure packing $packFile" - rm -f $packFile 2>/dev/null + echo "Error: failure packing $packFile" + rm -f $packFile 2>/dev/null fi #------------------------------------------------------------------------------ diff --git a/bin/foamPackBinAll b/bin/foamPackBinAll index 01555787cb..57673e9803 100755 --- a/bin/foamPackBinAll +++ b/bin/foamPackBinAll @@ -34,14 +34,14 @@ packDir=$WM_PROJECT-$WM_PROJECT_VERSION if [ ! -d $packDir ] then - echo "Error: directory $packDir does not exist" - exit 1 + echo "Error: directory $packDir does not exist" + exit 1 fi # obtain arch types from lib/ for bin in $packDir/lib/* do - foamPackBin ${bin##*/} $@ + foamPackBin ${bin##*/} $@ done #------------------------------------------------------------------------------ diff --git a/bin/foamPackDoxygen b/bin/foamPackDoxygen index efdcdacc09..4503470846 100755 --- a/bin/foamPackDoxygen +++ b/bin/foamPackDoxygen @@ -41,7 +41,7 @@ Usage: ${0##*/} [-prefix DIR] [-o outputDir] Packs and compresses the OpenFOAM doxygen html for release USAGE - exit 1 + exit 1 } unset prefix outputDir @@ -87,16 +87,16 @@ fi # if [ -d "$outputDir" ] then - packFile="$outputDir/$packDir$packTag" + packFile="$outputDir/$packDir$packTag" else - packFile="$packDir$packTag" + packFile="$packDir$packTag" fi if [ -f $packFile ] then - echo "Error: $packFile already exists" - exit 1 + echo "Error: $packFile already exists" + exit 1 fi # Pack and compress the packFile using GNU tar @@ -107,16 +107,16 @@ echo if [ -n "$prefix" ] then - tar czpf $packFile --transform="s@^@$prefix/@" doc/Doxygen/html + tar czpf $packFile --transform="s@^@$prefix/@" doc/Doxygen/html else - tar czpf $packFile $packDir/doc/Doxygen/html + tar czpf $packFile $packDir/doc/Doxygen/html fi -if [ $? = 0 ] +if [ $? -eq 0 ] then - echo "Finished packing doxygen html into file $packFile" + echo "Finished packing doxygen html into file $packFile" else - echo "Error: failure packing doxygen html file $packFile" + echo "Error: failure packing doxygen html file $packFile" fi #------------------------------------------------------------------------------ diff --git a/bin/foamPackGeneral b/bin/foamPackGeneral index 3da4197226..e55d834bce 100755 --- a/bin/foamPackGeneral +++ b/bin/foamPackGeneral @@ -37,20 +37,20 @@ packFile=${packDir}.General_${timeStamp}.gtgz if [ ! -d $packDir ] then - echo "Error: directory $packDir does not exist" - exit 1 + echo "Error: directory $packDir does not exist" + exit 1 fi # add optional output directory if [ -d "$1" ] then - packFile="$1/$packFile" + packFile="$1/$packFile" fi if [ -f $packFile ] then - echo "Error: $packFile already exists" - exit 1 + echo "Error: $packFile already exists" + exit 1 fi # Create time stamp file @@ -62,7 +62,7 @@ echo $timeStamp 2>/dev/null > $packDir/.timeStamp # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo -echo "Packing $packDir into $packFile" +echo "Packing $packDir source files into $packFile" echo foamPackSource $packDir $packFile diff --git a/bin/foamPackSource b/bin/foamPackSource index c4d0fc7eb4..b5e34c8a04 100755 --- a/bin/foamPackSource +++ b/bin/foamPackSource @@ -35,12 +35,12 @@ tmpFile=${TMPDIR:-/tmp}/foamPackFiles.$$ if [ $# -ne 2 ] then - echo "Usage : ${0##*/} directory tarFile" - echo "" - echo "Packs all .C and .H files and Make/options and Make/files into" - echo "" - echo "" - exit 1 + echo "Usage : ${0##*/} directory tarFile" + echo "" + echo "Packs all .C and .H files and Make/options and Make/files into" + echo "" + echo "" + exit 1 fi # canonical form (no double and no trailing dashes) @@ -49,14 +49,14 @@ packFile=$2 if [ ! -d $packDir ] then - echo "Error: directory $packDir does not exist" - exit 1 + echo "Error: directory $packDir does not exist" + exit 1 fi if [ -f $packFile ] then - echo "Error: $packFile already exists" - exit 1 + echo "Error: $packFile already exists" + exit 1 fi # Clean up on termination and on Ctrl-C @@ -78,24 +78,29 @@ find -H $packDir \ -a ! -name "log[0-9]*" \ -a ! -name "libccmio*" \ | sed \ - -e "\@$packDir/.git/@d" \ - -e "\@/.tags/@d" \ -e "\@$packDir/lib/@d" \ - -e "\@libccmio.*/@d" \ + -e '\@/\.git/@d' \ + -e '\@/\.tags/@d' \ -e '\@applications/bin/@d' \ + -e '\@wmake/utilbin/@d' \ -e '\@/t/@d' \ -e '\@/Make[.A-Za-z]*/[^/]*/@d'\ -e '\@/platforms/@d' \ + -e '\@libccmio.*/@d' \ > $tmpFile + +# provide some feedback +wc $tmpFile | awk '{print "Packing",$1,"files - this could take some time ..."}' + tar czpf $packFile --files-from $tmpFile -if [ $? = 0 ] +if [ $? -eq 0 ] then - echo "Finished packing and compressing $packDir into file $packFile" + echo "Finished packing and compressing $packDir into file $packFile" else - echo "Error: failure packing $packDir into file $packFile" - rm -f $packFile 2>/dev/null + echo "Error: failure packing $packDir into file $packFile" + rm -f $packFile 2>/dev/null fi #------------------------------------------------------------------------------ diff --git a/bin/foamPackThirdPartyBin b/bin/foamPackThirdPartyBin index 1e128db1da..b9363f6874 100755 --- a/bin/foamPackThirdPartyBin +++ b/bin/foamPackThirdPartyBin @@ -31,36 +31,43 @@ # #------------------------------------------------------------------------------ -if [ $# = 0 ] +if [ $# -eq 0 ] then - echo "Error: archOptions type expected, exiting" - echo - echo "Usage : ${0##*/} [outputDir]" - echo - exit 1 + echo "Error: archOptions type expected, exiting" + echo + echo "Usage : ${0##*/} [outputDir]" + echo + exit 1 fi archOptions=$1 arch=${archOptions%%G*} # TODO: works for Gcc only -arch3264=$(echo "$arch" | sed 's@64@-64@') +arch3264=$(echo "$arch" | sed -e 's@64@-64@') echo "archOptions=$archOptions" echo "arch=$arch" echo "arch3264=$arch3264" timeStamp=$(date +%Y-%m-%d) -packDir=ThirdParty +packDir=${WM_THIRD_PARTY_DIR:-ThirdParty} +packDir=${packDir##*/} packFile=${packDir}.${archOptions}_${timeStamp}.gtgz +if [ ! -d $packDir ] +then + echo "Error: directory $packDir does not exist" + exit 1 +fi + # add optional output directory if [ -d "$2" ] then - packFile="$2/$packFile" + packFile="$2/$packFile" fi if [ -f $packFile ] then - echo "Error: $packFile already exists" - exit 1 + echo "Error: $packFile already exists" + exit 1 fi # get list of directories @@ -71,12 +78,12 @@ echo tar czpf $packFile $dirList -if [ $? = 0 ] +if [ $? -eq 0 ] then - echo "Finished packing and compressing file $packFile" + echo "Finished packing and compressing file $packFile" else - echo "Error: failure packing $packFile" - rm -f $packFile 2>/dev/null + echo "Error: failure packing $packFile" + rm -f $packFile 2>/dev/null fi #------------------------------------------------------------------------------ diff --git a/bin/foamPackThirdPartyGeneral b/bin/foamPackThirdPartyGeneral index 845b2bfa47..a690f7f448 100755 --- a/bin/foamPackThirdPartyGeneral +++ b/bin/foamPackThirdPartyGeneral @@ -32,25 +32,26 @@ #------------------------------------------------------------------------------ timeStamp=$(date +%Y-%m-%d) -packDir=ThirdParty +packDir=${WM_THIRD_PARTY_DIR:-ThirdParty} +packDir=${packDir##*/} packFile=${packDir}.General_${timeStamp}.gtgz if [ ! -d $packDir ] then - echo "Error: directory $packDir does not exist" - exit 1 + echo "Error: directory $packDir does not exist" + exit 1 fi # add optional output directory if [ -d "$1" ] then - packFile="$1/$packFile" + packFile="$1/$packFile" fi if [ -f $packFile ] then - echo "Error: $packFile already exists" - exit 1 + echo "Error: $packFile already exists" + exit 1 fi # Create time stamp file @@ -62,7 +63,7 @@ echo $timeStamp 2>/dev/null > $packDir/.timeStamp # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo -echo "Packing $packDir into $packFile" +echo "Packing $packDir source files into $packFile" echo foamPackSource $packDir $packFile diff --git a/bin/tools/buildParaViewFunctions b/bin/tools/buildParaViewFunctions index f0873998af..ff37e259b5 100644 --- a/bin/tools/buildParaViewFunctions +++ b/bin/tools/buildParaViewFunctions @@ -171,10 +171,13 @@ addQtSupport() addCMakeVariable "PARAVIEW_BUILD_QT_GUI=ON" + qmakeExe=qmake + if [ -n "$QMAKE_PATH" ] then if [ -x "$QMAKE_PATH" ] then + qmakeExe=$QMAKE_PATH addCMakeVariable QT_QMAKE_EXECUTABLE:FILEPATH=$QMAKE_PATH else echo @@ -184,6 +187,28 @@ addQtSupport() echo fi fi + + # Check qmake can be found + if [ `which $qmakeExe` ] + then + # Check the Qt version selected + QtVersion=`$qmakeExe -v | grep Using | sed "s/.* version \(.\..\).*/\1/"` + QtMajor=`echo $QtVersion | sed "s/\(.\)\../\1/"` + QtMinor=`echo $QtVersion | sed "s/.\.\(.\)/\1/"` + + if [ $QtMajor -lt 4 -o $QtMinor -lt 3 ] + then + echo "*** Error: Qt version provided < 4.3" + echo "*** Please use the -qmake option to specify the location of a version of Qt >= 4.3 " + echo "*** e.g." + echo "*** -qmake /usr/local/Trolltech/Qt-4.3.5/bin/qmake" + echo "*** -qmake $WM_THIRD_PARTY_DIR/qt-x11-opensource-src-4.3.5/platforms/$WM_OPTIONS/bin/qmake" + exit 1 + fi + else + echo "*** Error: cannot find qmake either at \$QMAKE_PATH or in current \$PATH" + exit 1 + fi } diff --git a/src/thermophysicalModels/basic/rhoThermo/.directory b/src/thermophysicalModels/basic/rhoThermo/.directory deleted file mode 100644 index 72608b79a0..0000000000 --- a/src/thermophysicalModels/basic/rhoThermo/.directory +++ /dev/null @@ -1,5 +0,0 @@ -[Dolphin] -AdditionalInfo=3 -SortOrder=0 -Timestamp=2009,6,10,15,58,20 -ViewMode=1 diff --git a/src/turbulenceModels/compressible/LES/LESModel/LESModel.H b/src/turbulenceModels/compressible/LES/LESModel/LESModel.H index ca87dd64ed..3012b4124a 100644 --- a/src/turbulenceModels/compressible/LES/LESModel/LESModel.H +++ b/src/turbulenceModels/compressible/LES/LESModel/LESModel.H @@ -33,13 +33,13 @@ Class Foam::compressible::LESModel Description - Class for all compressible flow LES SGS models. + Base class for all compressible flow LES SGS models. - This class defines the basic interface for a compressible flow SGS model, - and encapsulates data of value to all possible models. In particular - this includes references to all the dependent fields (rho, U, phi), - the physical viscosity mu, and the LESProperties dictionary, - which contains the model selection and model coefficients. + This class defines the basic interface for a compressible flow SGS + model, and encapsulates data of value to all possible models. + In particular this includes references to all the dependent fields + (rho, U, phi), the physical viscosity mu, and the LESProperties + dictionary, which contains the model selection and model coefficients. SourceFiles LESModel.C diff --git a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/kQRWallFunctions/kQRWallFunction/kQRWallFunctionFvPatchField.C b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/kQRWallFunctions/kQRWallFunction/kQRWallFunctionFvPatchField.C index d0d1d1ef35..8286c1b149 100644 --- a/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/kQRWallFunctions/kQRWallFunction/kQRWallFunctionFvPatchField.C +++ b/src/turbulenceModels/compressible/RAS/derivedFvPatchFields/wallFunctions/kQRWallFunctions/kQRWallFunction/kQRWallFunctionFvPatchField.C @@ -51,8 +51,8 @@ void kQRWallFunctionFvPatchField::checkType() << "Invalid wall function specification" << nl << " Patch type for patch " << this->patch().name() << " must be wall" << nl - << " Current patch type is " << this->patch().type() - << nl << endl << abort(FatalError); + << " Current patch type is " << this->patch().type() << nl << endl + << abort(FatalError); } } diff --git a/src/turbulenceModels/compressible/RAS/laminar/laminar.H b/src/turbulenceModels/compressible/RAS/laminar/laminar.H index cfd5e57352..af1f5e2bb2 100644 --- a/src/turbulenceModels/compressible/RAS/laminar/laminar.H +++ b/src/turbulenceModels/compressible/RAS/laminar/laminar.H @@ -30,12 +30,11 @@ Description SourceFiles laminar.C - laminarCorrect.C \*---------------------------------------------------------------------------*/ -#ifndef compressibleLaminar_H -#define compressibleLaminar_H +#ifndef compressibleRasLaminar_H +#define compressibleRasLaminar_H #include "RASModel.H" @@ -82,42 +81,42 @@ public: // Member Functions //- Return the turbulence viscosity, i.e. 0 for laminar flow - tmp mut() const; + virtual tmp mut() const; //- Return the effective viscosity, i.e. the laminar viscosity - tmp muEff() const + virtual tmp muEff() const { return tmp(new volScalarField("muEff", mu())); } //- Return the effective turbulent thermal diffusivity, // i.e. the laminar thermal diffusivity - tmp alphaEff() const + virtual tmp alphaEff() const { return tmp(new volScalarField("alphaEff", alpha())); } //- Return the turbulence kinetic energy, i.e. 0 for laminar flow - tmp k() const; + virtual tmp k() const; //- Return the turbulence kinetic energy dissipation rate, // i.e. 0 for laminar flow - tmp epsilon() const; + virtual tmp epsilon() const; //- Return the Reynolds stress tensor, i.e. 0 for laminar flow - tmp R() const; + virtual tmp R() const; //- Return the effective stress tensor, i.e. the laminar stress - tmp devRhoReff() const; + virtual tmp devRhoReff() const; //- Return the source term for the momentum equation - tmp divDevRhoReff(volVectorField& U) const; + virtual tmp divDevRhoReff(volVectorField& U) const; //- Correct the laminar viscosity - void correct(); + virtual void correct(); //- Read RASProperties dictionary - bool read(); + virtual bool read(); }; diff --git a/src/turbulenceModels/compressible/turbulenceModel/Make/options b/src/turbulenceModels/compressible/turbulenceModel/Make/options index 65d3ed1e01..075a03796e 100644 --- a/src/turbulenceModels/compressible/turbulenceModel/Make/options +++ b/src/turbulenceModels/compressible/turbulenceModel/Make/options @@ -1,5 +1,6 @@ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ + -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude LIB_LIBS = \ diff --git a/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.C b/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.C index c4213fdd8a..4a391c3db5 100644 --- a/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.C +++ b/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.C @@ -52,10 +52,10 @@ laminar::laminar const volScalarField& rho, const volVectorField& U, const surfaceScalarField& phi, - const basicThermo& thermoPhysicalModel + const basicThermo& thermophysicalModel ) : - turbulenceModel(rho, U, phi, thermoPhysicalModel) + turbulenceModel(rho, U, phi, thermophysicalModel) {} @@ -66,10 +66,10 @@ autoPtr laminar::New const volScalarField& rho, const volVectorField& U, const surfaceScalarField& phi, - const basicThermo& thermoPhysicalModel + const basicThermo& thermophysicalModel ) { - return autoPtr(new laminar(rho, U, phi, thermoPhysicalModel)); + return autoPtr(new laminar(rho, U, phi, thermophysicalModel)); } @@ -96,18 +96,6 @@ tmp laminar::mut() const } -tmp laminar::muEff() const -{ - return tmp(new volScalarField("muEff", mu())); -} - - -tmp laminar::alphaEff() const -{ - return tmp(new volScalarField("alphaEff", alpha())); -} - - tmp laminar::k() const { return tmp diff --git a/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.H b/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.H index 7931e45bee..d4379bfb2e 100644 --- a/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.H +++ b/src/turbulenceModels/compressible/turbulenceModel/laminar/laminar.H @@ -33,8 +33,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef laminar_H -#define laminar_H +#ifndef compressibleLaminar_H +#define compressibleLaminar_H #include "turbulenceModel.H" @@ -67,7 +67,7 @@ public: const volScalarField& rho, const volVectorField& U, const surfaceScalarField& phi, - const basicThermo& thermoPhysicalModel + const basicThermo& thermophysicalModel ); @@ -79,7 +79,7 @@ public: const volScalarField& rho, const volVectorField& U, const surfaceScalarField& phi, - const basicThermo& thermoPhysicalModel + const basicThermo& thermophysicalModel ); @@ -94,10 +94,17 @@ public: virtual tmp mut() const; //- Return the effective viscosity, i.e. the laminar viscosity - virtual tmp muEff() const; + virtual tmp muEff() const + { + return tmp(new volScalarField("muEff", mu())); + } - //- Return the effective turbulent thermal diffusivity - virtual tmp alphaEff() const; + //- Return the effective turbulent thermal diffusivity, + // i.e. the laminar thermal diffusivity + virtual tmp alphaEff() const + { + return tmp(new volScalarField("alphaEff", alpha())); + } //- Return the turbulence kinetic energy, i.e. 0 for laminar flow virtual tmp k() const; @@ -109,7 +116,7 @@ public: //- Return the Reynolds stress tensor, i.e. 0 for laminar flow virtual tmp R() const; - //- Return the effective stress tensor including the laminar stress + //- Return the effective stress tensor, i.e. the laminar stress virtual tmp devRhoReff() const; //- Return the source term for the momentum equation diff --git a/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.C b/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.C index 18f61ea286..15cce81cc1 100644 --- a/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.C +++ b/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.C @@ -117,12 +117,6 @@ autoPtr turbulenceModel::New } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -turbulenceModel::~turbulenceModel() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void turbulenceModel::correct() diff --git a/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H b/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H index a3cce25b51..97638e5e49 100644 --- a/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H +++ b/src/turbulenceModels/compressible/turbulenceModel/turbulenceModel.H @@ -65,7 +65,7 @@ namespace compressible { /*---------------------------------------------------------------------------*\ - Class turbulenceModel Declaration + Class turbulenceModel Declaration \*---------------------------------------------------------------------------*/ class turbulenceModel @@ -144,7 +144,8 @@ public: //- Destructor - virtual ~turbulenceModel(); + virtual ~turbulenceModel() + {} // Member Functions diff --git a/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C b/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C index a845089e33..3e3c952ffc 100644 --- a/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C +++ b/src/turbulenceModels/incompressible/LES/LESModel/LESModel.C @@ -124,8 +124,8 @@ autoPtr LESModel::New { FatalErrorIn ( - "LESModel::select(const volVectorField&, const " - "surfaceScalarField&, transportModel&)" + "LESModel::New(const volVectorField& U, const " + "surfaceScalarField& phi, transportModel&)" ) << "Unknown LESModel type " << modelName << endl << endl << "Valid LESModel types are :" << endl @@ -137,12 +137,6 @@ autoPtr LESModel::New } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -LESModel::~LESModel() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void LESModel::correct(const tmp&) diff --git a/src/turbulenceModels/incompressible/LES/LESModel/LESModel.H b/src/turbulenceModels/incompressible/LES/LESModel/LESModel.H index e784535b73..49fe52c454 100644 --- a/src/turbulenceModels/incompressible/LES/LESModel/LESModel.H +++ b/src/turbulenceModels/incompressible/LES/LESModel/LESModel.H @@ -35,10 +35,10 @@ Description Base class for all incompressible flow LES SGS models. This class defines the basic interface for an incompressible flow SGS - model, and encapsulates data of value to all possible models. In - particular this includes references to all the dependent fields (U, - phi), the physical viscosity nu, and the LESProperties - dictionary which contains the model selection and model coefficients. + model, and encapsulates data of value to all possible models. + In particular this includes references to all the dependent fields + (U, phi), the physical viscosity nu, and the LESProperties + dictionary, which contains the model selection and model coefficients. SourceFiles LESModel.C @@ -151,7 +151,8 @@ public: //- Destructor - virtual ~LESModel(); + virtual ~LESModel() + {} // Member Functions @@ -240,14 +241,14 @@ public: } - //- Correct Eddy-Viscosity and related properties - virtual void correct(const tmp& gradU); - //- Correct Eddy-Viscosity and related properties. // This calls correct(const tmp& gradU) by supplying // gradU calculated locally. void correct(); + //- Correct Eddy-Viscosity and related properties + virtual void correct(const tmp& gradU); + //- Read LESProperties dictionary virtual bool read() = 0; }; diff --git a/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.C b/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.C index 4342712d80..4aadf02bf2 100644 --- a/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.C +++ b/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.C @@ -133,12 +133,6 @@ dynOneEqEddy::dynOneEqEddy } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -dynOneEqEddy::~dynOneEqEddy() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void dynOneEqEddy::correct(const tmp& gradU) diff --git a/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.H b/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.H index 15f0ac56d1..9b1a4064d6 100644 --- a/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.H +++ b/src/turbulenceModels/incompressible/LES/dynOneEqEddy/dynOneEqEddy.H @@ -116,7 +116,8 @@ public: //- Destructor - virtual ~dynOneEqEddy(); + virtual ~dynOneEqEddy() + {} // Member Functions diff --git a/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.C b/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.C index e260a6d16d..fedd18ee7d 100644 --- a/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.C +++ b/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.C @@ -124,12 +124,6 @@ dynSmagorinsky::dynSmagorinsky } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -dynSmagorinsky::~dynSmagorinsky() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void dynSmagorinsky::correct(const tmp& gradU) diff --git a/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.H b/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.H index 93e85a808b..b0bd7868f0 100644 --- a/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.H +++ b/src/turbulenceModels/incompressible/LES/dynSmagorinsky/dynSmagorinsky.H @@ -125,7 +125,8 @@ public: //- Destructor - virtual ~dynSmagorinsky(); + virtual ~dynSmagorinsky() + {} // Member Functions diff --git a/src/turbulenceModels/incompressible/LES/laminar/laminar.H b/src/turbulenceModels/incompressible/LES/laminar/laminar.H index 45500d6172..b428f102ab 100644 --- a/src/turbulenceModels/incompressible/LES/laminar/laminar.H +++ b/src/turbulenceModels/incompressible/LES/laminar/laminar.H @@ -34,8 +34,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef laminar_H -#define laminar_H +#ifndef lesLaminar_H +#define lesLaminar_H #include "LESModel.H" #include "volFields.H" diff --git a/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.C b/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.C index 7d34bbb981..f463e3f208 100644 --- a/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.C +++ b/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.C @@ -126,12 +126,6 @@ locDynOneEqEddy::locDynOneEqEddy } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -locDynOneEqEddy::~locDynOneEqEddy() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void locDynOneEqEddy::correct(const tmp& gradU) diff --git a/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.H b/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.H index 1ff8fc07dd..ef6a9edcff 100644 --- a/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.H +++ b/src/turbulenceModels/incompressible/LES/locDynOneEqEddy/locDynOneEqEddy.H @@ -138,7 +138,8 @@ public: //- Destructor - virtual ~locDynOneEqEddy(); + virtual ~locDynOneEqEddy() + {} // Member Functions diff --git a/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.C b/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.C index 0499ffca68..226054bf14 100644 --- a/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.C +++ b/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.C @@ -56,12 +56,6 @@ scaleSimilarity::scaleSimilarity } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -scaleSimilarity::~scaleSimilarity() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // tmp scaleSimilarity::k() const diff --git a/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.H b/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.H index 3f4f55535f..69d06a892c 100644 --- a/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.H +++ b/src/turbulenceModels/incompressible/LES/scaleSimilarity/scaleSimilarity.H @@ -90,7 +90,8 @@ public: //- Destructor - virtual ~scaleSimilarity(); + virtual ~scaleSimilarity() + {} // Member Functions diff --git a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C index 272d0f60fe..620a3fe2af 100644 --- a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C +++ b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C @@ -174,14 +174,9 @@ autoPtr RASModel::New } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -RASModel::~RASModel() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // + scalar RASModel::yPlusLam(const scalar kappa, const scalar E) const { scalar ypl = 11.0; diff --git a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.H b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.H index c934488bb3..fdc2b2e3b7 100644 --- a/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.H +++ b/src/turbulenceModels/incompressible/RAS/RASModel/RASModel.H @@ -182,7 +182,8 @@ public: //- Destructor - virtual ~RASModel(); + virtual ~RASModel() + {} // Member Functions @@ -310,9 +311,6 @@ public: ); } - //- Return yPlus for the given patch - virtual tmp yPlus(const label patchI) const; - //- Return the turbulence kinetic energy virtual tmp k() const = 0; @@ -328,6 +326,9 @@ public: //- Return the source term for the momentum equation virtual tmp divDevReff(volVectorField& U) const = 0; + //- Return yPlus for the given patch + virtual tmp yPlus(const label patchI) const; + //- Solve the turbulence equations and correct the turbulence viscosity virtual void correct() = 0; diff --git a/src/turbulenceModels/incompressible/RAS/laminar/laminar.C b/src/turbulenceModels/incompressible/RAS/laminar/laminar.C index a88b319268..6f400a1c9a 100644 --- a/src/turbulenceModels/incompressible/RAS/laminar/laminar.C +++ b/src/turbulenceModels/incompressible/RAS/laminar/laminar.C @@ -77,12 +77,6 @@ tmp laminar::nut() const } -tmp laminar::nuEff() const -{ - return tmp(new volScalarField("nuEff", nu())); -} - - tmp laminar::k() const { return tmp diff --git a/src/turbulenceModels/incompressible/RAS/laminar/laminar.H b/src/turbulenceModels/incompressible/RAS/laminar/laminar.H index b139f0fad3..8b328addf0 100644 --- a/src/turbulenceModels/incompressible/RAS/laminar/laminar.H +++ b/src/turbulenceModels/incompressible/RAS/laminar/laminar.H @@ -33,8 +33,8 @@ SourceFiles \*---------------------------------------------------------------------------*/ -#ifndef laminar_H -#define laminar_H +#ifndef rasLaminar_H +#define rasLaminar_H #include "RASModel.H" @@ -83,7 +83,10 @@ public: virtual tmp nut() const; //- Return the effective viscosity, i.e. the laminar viscosity - virtual tmp nuEff() const; + virtual tmp nuEff() const + { + return tmp(new volScalarField("nuEff", nu())); + } //- Return the turbulence kinetic energy, i.e. 0 for laminar flow virtual tmp k() const; @@ -95,7 +98,7 @@ public: //- Return the Reynolds stress tensor, i.e. 0 for laminar flow virtual tmp R() const; - //- Return the effective stress tensor including the laminar stress + //- Return the effective stress tensor, i.e. the laminar stress virtual tmp devReff() const; //- Return the source term for the momentum equation diff --git a/src/turbulenceModels/incompressible/turbulenceModel/Make/options b/src/turbulenceModels/incompressible/turbulenceModel/Make/options index 6ade117347..2af4fa4baf 100644 --- a/src/turbulenceModels/incompressible/turbulenceModel/Make/options +++ b/src/turbulenceModels/incompressible/turbulenceModel/Make/options @@ -1,5 +1,6 @@ EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ + -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/transportModels LIB_LIBS = \ diff --git a/src/turbulenceModels/incompressible/turbulenceModel/laminar/laminar.H b/src/turbulenceModels/incompressible/turbulenceModel/laminar/laminar.H index a64884da91..51eef7c436 100644 --- a/src/turbulenceModels/incompressible/turbulenceModel/laminar/laminar.H +++ b/src/turbulenceModels/incompressible/turbulenceModel/laminar/laminar.H @@ -104,7 +104,7 @@ public: //- Return the Reynolds stress tensor, i.e. 0 for laminar flow virtual tmp R() const; - //- Return the effective stress tensor including the laminar stress + //- Return the effective stress tensor, i.e. the laminar stress virtual tmp devReff() const; //- Return the source term for the momentum equation diff --git a/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.C b/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.C index da4c39dcaa..cdbb61fa70 100644 --- a/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.C +++ b/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.C @@ -110,12 +110,6 @@ autoPtr turbulenceModel::New } -// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // - -turbulenceModel::~turbulenceModel() -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // void turbulenceModel::correct() diff --git a/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H b/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H index 4399e85120..1474e5dfa3 100644 --- a/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H +++ b/src/turbulenceModels/incompressible/turbulenceModel/turbulenceModel.H @@ -139,7 +139,8 @@ public: //- Destructor - virtual ~turbulenceModel(); + virtual ~turbulenceModel() + {} // Member Functions diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/0/T b/tutorials/combustion/XiFoam/les/pitzDaily/0/T index c4bae6fa13..d48433513d 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/0/T +++ b/tutorials/combustion/XiFoam/les/pitzDaily/0/T @@ -42,7 +42,7 @@ boundaryField lowerWall { type fixedValue; - value uniform 293; + value uniform 570; } frontAndBack diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/0/Tu b/tutorials/combustion/XiFoam/les/pitzDaily/0/Tu index 3e1d003deb..55c99ebb45 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/0/Tu +++ b/tutorials/combustion/XiFoam/les/pitzDaily/0/Tu @@ -42,7 +42,7 @@ boundaryField lowerWall { type fixedValue; - value uniform 293; + value uniform 570; } frontAndBack diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/0/alphaSgs b/tutorials/combustion/XiFoam/les/pitzDaily/0/alphaSgs index 24c919196b..c66c8a1534 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/0/alphaSgs +++ b/tutorials/combustion/XiFoam/les/pitzDaily/0/alphaSgs @@ -32,15 +32,13 @@ boundaryField upperWall { - type zeroGradient; - //type compressible::alphaSgsWallFunction; + type compressible::alphaSgsJayatillekeWallFunction; value uniform 0; } lowerWall { - type zeroGradient; - //type compressible::alphaSgsWallFunction; + type compressible::alphaSgsJayatillekeWallFunction; value uniform 0; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/0/muSgs b/tutorials/combustion/XiFoam/les/pitzDaily/0/muSgs index a16e89fad9..5c85d09493 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/0/muSgs +++ b/tutorials/combustion/XiFoam/les/pitzDaily/0/muSgs @@ -32,15 +32,13 @@ boundaryField upperWall { - type zeroGradient; - //type compressible::muSgsWallFunction; + type compressible::muSgsWallFunction; value uniform 0; } lowerWall { - type zeroGradient; - //type compressible::muSgsWallFunction; + type compressible::muSgsWallFunction; value uniform 0; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/0/p b/tutorials/combustion/XiFoam/les/pitzDaily/0/p index 3700ec72b5..b8afbd8d1a 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/0/p +++ b/tutorials/combustion/XiFoam/les/pitzDaily/0/p @@ -16,7 +16,7 @@ FoamFile dimensions [1 -1 -2 0 0 0 0]; -internalField uniform 100000; +internalField uniform 1e5; boundaryField { @@ -27,8 +27,15 @@ boundaryField outlet { - type fixedValue; - value uniform 100000; + type waveTransmissive; + field p; + phi phi; + rho rho; + psi psi; + gamma 1.3; + fieldInf 1e5; + lInf 0.3; + value uniform 1e5; } upperWall diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/constant/LESProperties b/tutorials/combustion/XiFoam/les/pitzDaily/constant/LESProperties index 56c915c924..9beb4b8687 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/constant/LESProperties +++ b/tutorials/combustion/XiFoam/les/pitzDaily/constant/LESProperties @@ -19,6 +19,8 @@ LESModel oneEqEddy; delta cubeRootVol; +turbulence on; + printCoeffs on; laminarCoeffs @@ -123,6 +125,7 @@ kappa 0.4187; wallFunctionCoeffs { E 9; + Prt 0.85; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/constant/combustionProperties b/tutorials/combustion/XiFoam/les/pitzDaily/constant/combustionProperties index 86fcfc889a..a20d6ae7ec 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/constant/combustionProperties +++ b/tutorials/combustion/XiFoam/les/pitzDaily/constant/combustionProperties @@ -21,7 +21,7 @@ fuel Propane; Su Su [0 1 -1 0 0 0 0] 0.135; -SuModel unstrained; +SuModel transport; equivalenceRatio equivalenceRatio [0 0 0 0 0 0 0] 0.6; @@ -68,7 +68,7 @@ GuldersCoeffs } } -ignite yes; +ignite yes; ignitionSites ( @@ -76,8 +76,8 @@ ignitionSites location (0.005 -0.02 0); diameter 0.003; start 0; - duration 0.1; - strength 40; + duration 0.05; + strength 20; } ); diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/constant/polyMesh/blockMeshDict b/tutorials/combustion/XiFoam/les/pitzDaily/constant/polyMesh/blockMeshDict index 1030983582..4a24aa9a9d 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/constant/polyMesh/blockMeshDict +++ b/tutorials/combustion/XiFoam/les/pitzDaily/constant/polyMesh/blockMeshDict @@ -16,55 +16,55 @@ FoamFile convertToMeters 0.001; -vertices +vertices ( - (-20.6 0 -0.5) - (-20.6 3 -0.5) - (-20.6 12.7 -0.5) - (-20.6 25.4 -0.5) - (0 -25.4 -0.5) - (0 -5 -0.5) - (0 0 -0.5) - (0 3 -0.5) - (0 12.7 -0.5) - (0 25.4 -0.5) - (206 -25.4 -0.5) - (206 -8.5 -0.5) - (206 0 -0.5) - (206 6.5 -0.5) - (206 17 -0.5) - (206 25.4 -0.5) - (290 -16.6 -0.5) - (290 -6.3 -0.5) - (290 0 -0.5) - (290 4.5 -0.5) - (290 11 -0.5) - (290 16.6 -0.5) - (-20.6 0 0.5) - (-20.6 3 0.5) - (-20.6 12.7 0.5) - (-20.6 25.4 0.5) - (0 -25.4 0.5) - (0 -5 0.5) - (0 0 0.5) - (0 3 0.5) - (0 12.7 0.5) - (0 25.4 0.5) - (206 -25.4 0.5) - (206 -8.5 0.5) - (206 0 0.5) - (206 6.5 0.5) - (206 17 0.5) - (206 25.4 0.5) - (290 -16.6 0.5) - (290 -6.3 0.5) - (290 0 0.5) - (290 4.5 0.5) - (290 11 0.5) - (290 16.6 0.5) + (-20.6 0 0) + (-20.6 3 0) + (-20.6 12.7 0) + (-20.6 25.4 0) + (0 -25.4 0) + (0 -5 0) + (0 0 0) + (0 3 0) + (0 12.7 0) + (0 25.4 0) + (206 -25.4 0) + (206 -8.5 0) + (206 0 0) + (206 6.5 0) + (206 17 0) + (206 25.4 0) + (290 -16.6 0) + (290 -6.3 0) + (290 0 0) + (290 4.5 0) + (290 11 0) + (290 16.6 0) + (-20.6 0 38.1) + (-20.6 3 38.1) + (-20.6 12.7 38.1) + (-20.6 25.4 38.1) + (0 -25.4 38.1) + (0 -5 38.1) + (0 0 38.1) + (0 3 38.1) + (0 12.7 38.1) + (0 25.4 38.1) + (206 -25.4 38.1) + (206 -8.5 38.1) + (206 0 38.1) + (206 6.5 38.1) + (206 17 38.1) + (206 25.4 38.1) + (290 -16.6 38.1) + (290 -6.3 38.1) + (290 0 38.1) + (290 4.5 38.1) + (290 11 38.1) + (290 16.6 38.1) ); -blocks +blocks ( hex (0 6 7 1 22 28 29 23) (18 7 1) simpleGrading (0.5 1.8 1) hex (1 7 8 2 23 29 30 24) (18 10 1) simpleGrading (0.5 4 1) @@ -81,19 +81,19 @@ blocks hex (14 20 21 15 36 42 43 37) (25 13 1) simpleGrading (2.5 0.25 1) ); -edges +edges ( ); -patches +patches ( - patch inlet + patch inlet ( (0 22 23 1) (1 23 24 2) (2 24 25 3) ) - patch outlet + patch outlet ( (16 17 39 38) (17 18 40 39) @@ -101,13 +101,13 @@ patches (19 20 42 41) (20 21 43 42) ) - wall upperWall + wall upperWall ( (3 25 31 9) (9 31 37 15) (15 37 43 21) ) - wall lowerWall + wall lowerWall ( (0 6 28 22) (6 5 27 28) @@ -115,7 +115,7 @@ patches (4 10 32 26) (10 16 38 32) ) - empty frontAndBack + empty frontAndBack ( (22 28 29 23) (23 29 30 24) diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/constant/thermophysicalProperties b/tutorials/combustion/XiFoam/les/pitzDaily/constant/thermophysicalProperties index 8e705f32e5..dc9f1dae0f 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/constant/thermophysicalProperties +++ b/tutorials/combustion/XiFoam/les/pitzDaily/constant/thermophysicalProperties @@ -15,19 +15,44 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -thermoType hhuMixtureThermo>>>>; +thermoType + hhuMixtureThermo>>>>; -stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [ 0 0 0 0 0 0 0 ] 15.675; +stoichiometricAirFuelMassRatio + stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 15.675; -fuel fuel 1 44.0962 200 5000 1000 7.53414 0.0188722 -6.27185e-06 9.14756e-10 -4.78381e-14 -16467.5 -17.8923 0.933554 0.0264246 6.10597e-06 -2.19775e-08 9.51493e-12 -13958.5 19.2017 1.67212e-06 170.672; +// phi = 0.57 +// ft = 0.0352993 +// Tad = 1650.1 -oxidant oxidant 1 28.8504 200 6000 1000 3.10205 0.00123963 -4.17512e-07 6.60292e-11 -3.87448e-15 -985.517 5.35187 3.58378 -0.0007269 1.66985e-06 -1.08452e-10 -4.31951e-13 -1050.53 3.11223 1.67212e-06 170.672; +fuel fuel 1 44.0962 + 100 5000 1000 + 7.53414 0.0188722 -6.27185e-06 9.14756e-10 -4.78381e-14 -16467.5 -17.8923 + 0.933554 0.0264246 6.10597e-06 -2.19775e-08 9.51493e-12 -13958.5 19.2017 + 1.67212e-06 170.672; -reactants reactants 24.8095 29.4649 200 5000 1000 3.28069 0.00195035 -6.53483e-07 1.00239e-10 -5.64653e-15 -1609.55 4.41496 3.47696 0.000367499 1.84866e-06 -9.8993e-10 -3.10214e-14 -1570.81 3.76075 1.67212e-06 170.672; +oxidant oxidant 1 28.8504 + 100 6000 1000 + 3.10131 0.00124137 -4.18816e-07 6.64158e-11 -3.91274e-15 -985.266 5.35597 + 3.58378 -0.000727005 1.67057e-06 -1.09203e-10 -4.31765e-13 -1050.53 3.11239 + 1.67212e-06 170.672; -products products 1 28.3233 200 5000 1000 3.106 0.00179682 -5.94382e-07 9.04998e-11 -5.08033e-15 -11003.7 5.11872 3.49612 0.000650364 -2.08029e-07 1.2291e-09 -7.73697e-13 -11080.3 3.18978 1.67212e-06 170.672; +reactants reactants 1 29.2068 + 100 5000 1000 + 3.20495 0.00165359 -5.55661e-07 8.62503e-11 -4.93973e-15 -1347.25 4.81241 + 3.52181 -9.21936e-05 1.77427e-06 -6.2049e-10 -1.99209e-13 -1352.32 3.48856 + 1.67212e-06 170.672; -burntProducts burntProducts 25.8095 28.3233 200 6000 1000 3.106 0.00179682 -5.94382e-07 9.04998e-11 -5.08033e-15 -11003.7 5.11872 3.49612 0.000650364 -2.08029e-07 1.2291e-09 -7.73697e-13 -11080.3 3.18978 1.67212e-06 170.672; +burntProducts burntProducts 1 28.3233 + 100 6000 1000 + 3.10558 0.00179747 -5.94696e-07 9.05605e-11 -5.08443e-15 -11003.6 5.12104 + 3.49796 0.000638555 -1.83881e-07 1.20989e-09 -7.68691e-13 -11080.5 3.18188 + 1.67212e-06 170.672; +products products 1 28.5396 + 100 5000 1000 + 3.10383 0.00156927 -5.22523e-07 8.06527e-11 -4.60363e-15 -6892.54 5.21744 + 3.53318 7.81943e-05 5.77097e-07 6.68595e-10 -6.30433e-13 -6964.71 3.15336 + 1.67212e-06 170.672; // ************************************************************************* // diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/system/controlDict b/tutorials/combustion/XiFoam/les/pitzDaily/system/controlDict index f5fe65e622..ba28fbf560 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/system/controlDict +++ b/tutorials/combustion/XiFoam/les/pitzDaily/system/controlDict @@ -23,7 +23,7 @@ startTime 0; stopAt endTime; -endTime 10; +endTime 0.5; deltaT 5e-06; diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSchemes b/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSchemes index e74dbeb191..d4a2457583 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSchemes +++ b/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSchemes @@ -17,34 +17,29 @@ FoamFile ddtSchemes { - default Euler; + default backward; } gradSchemes { default Gauss linear; - grad(p) Gauss linear; } divSchemes { default none; - div(phi,U) Gauss limitedLinearV 1; - div(phid,p) Gauss linear; + div(phi,U) Gauss linear; div(phiU,p) Gauss linear; - div(phi,k) Gauss limitedLinear 1; - div(phi,B) Gauss limitedLinear 1; - div(B) Gauss linear; - div(phiXi,Xi) Gauss limitedLinear 1; - div(phiXi,Su) Gauss limitedLinear 1; - div(phiSt,b) Gauss limitedLinear01 1; + div(phi,k) Gauss limitedLinear 0.1; + div(phiXi,Xi) Gauss limitedLinear01 0.1; + div(phiXi,Su) Gauss limitedLinear01 0.1; + div(phiSt,b) Gauss limitedLinear01 0.1; div(phi,ft_b_h_hu) Gauss multivariateSelection { - fu limitedLinear01 1; - ft limitedLinear01 1; - b limitedLinear01 1; - h limitedLinear 1; - hu limitedLinear 1; + ft limitedLinear01 0.1; + b limitedLinear01 0.1; + h limitedLinear 0.1; + hu limitedLinear 0.1; }; div(U) Gauss linear; div((Su*grad(b))) Gauss linear; diff --git a/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSolution b/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSolution index 6e1d1ffd3e..4dda010d66 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSolution +++ b/tutorials/combustion/XiFoam/les/pitzDaily/system/fvSolution @@ -124,8 +124,8 @@ solvers PISO { - nOuterCorrectors 1; - nCorrectors 2; + nOuterCorrectors 2; + nCorrectors 1; nNonOrthogonalCorrectors 0; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/B b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/B deleted file mode 100644 index 65544498af..0000000000 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/B +++ /dev/null @@ -1,50 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volTensorField; - object B; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [1 -1 -2 0 0 0 0]; - -internalField uniform (0 0 0 0 0 0 0 0 0); - -boundaryField -{ - inlet - { - type fixedValue; - value uniform (0 0 0 0 0 0 0 0 0); - } - - outlet - { - type zeroGradient; - } - - upperWall - { - type zeroGradient; - } - - lowerWall - { - type zeroGradient; - } - - frontAndBack - { - type cyclic; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Su b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Su index 82eb5d80e3..024869330e 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Su +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Su @@ -20,30 +20,30 @@ internalField uniform 0.135; boundaryField { - inlet + inlet { type fixedValue; value uniform 0.135; } - outlet + outlet { type inletOutlet; inletValue uniform 0.135; value uniform 0.135; } - upperWall + upperWall { type zeroGradient; } - lowerWall + lowerWall { type zeroGradient; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/T b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/T index fdf764e06f..9c0947189b 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/T +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/T @@ -20,32 +20,32 @@ internalField uniform 293; boundaryField { - inlet + inlet { type fixedValue; value uniform 293; } - outlet + outlet { type inletOutlet; inletValue uniform 293; value uniform 293; } - upperWall + upperWall { type fixedValue; value uniform 293; } - lowerWall + lowerWall { type fixedValue; - value uniform 293; + value uniform 570; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Tu b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Tu index e1299d7435..e0b9959787 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Tu +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Tu @@ -20,32 +20,32 @@ internalField uniform 293; boundaryField { - inlet + inlet { type fixedValue; value uniform 293; } - outlet + outlet { type inletOutlet; inletValue uniform 293; value uniform 293; } - upperWall + upperWall { type fixedValue; value uniform 293; } - lowerWall + lowerWall { type fixedValue; - value uniform 293; + value uniform 570; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/U b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/U index ece734e9f3..c2ff1ef691 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/U +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/U @@ -20,33 +20,33 @@ internalField uniform (0 0 0); boundaryField { - inlet + inlet { type turbulentInlet; referenceField uniform (13.3 0 0); fluctuationScale (0.04 0.02 0.02); } - outlet + outlet { type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } - upperWall + upperWall { type fixedValue; value uniform (0 0 0); } - lowerWall + lowerWall { type fixedValue; value uniform (0 0 0); } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Xi b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Xi index 1b3b3cc930..ac3b5633fa 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Xi +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/Xi @@ -20,30 +20,30 @@ internalField uniform 1; boundaryField { - inlet + inlet { type fixedValue; value uniform 1; } - outlet + outlet { type inletOutlet; inletValue uniform 1; value uniform 1; } - upperWall + upperWall { type zeroGradient; } - lowerWall + lowerWall { type zeroGradient; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/alphaSgs b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/alphaSgs index c5331748ae..5f7deec4ec 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/alphaSgs +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/alphaSgs @@ -20,27 +20,29 @@ internalField uniform 0; boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { type zeroGradient; } - upperWall + upperWall { - type zeroGradient; + type compressible::alphaSgsJayatillekeWallFunction; + value uniform 0; } - lowerWall + lowerWall { - type zeroGradient; + type compressible::alphaSgsJayatillekeWallFunction; + value uniform 0; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/b b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/b index 7be4cfc6ac..7ca894170f 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/b +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/b @@ -20,30 +20,30 @@ internalField uniform 1; boundaryField { - inlet + inlet { type fixedValue; value uniform 1; } - outlet + outlet { type inletOutlet; inletValue uniform 1; value uniform 1; } - upperWall + upperWall { type zeroGradient; } - lowerWall + lowerWall { type zeroGradient; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/ft b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/ft deleted file mode 100644 index 8d16f22209..0000000000 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/ft +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | -| \\ / A nd | Web: http://www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object ft; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 0 0 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - inlet - { - type fixedValue; - value uniform 0; - } - - outlet - { - type inletOutlet; - inletValue uniform 0; - value uniform 0; - } - - upperWall - { - type zeroGradient; - } - - lowerWall - { - type zeroGradient; - } - - frontAndBack - { - type cyclic; - } -} - -// ************************************************************************* // diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/k b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/k index 69de845314..df6b081d5b 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/k +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/k @@ -35,14 +35,14 @@ boundaryField upperWall { - type fixedValue; - value uniform 1e-8; + type zeroGradient; + value uniform 2e-05; } lowerWall { - type fixedValue; - value uniform 1e-8; + type zeroGradient; + value uniform 2e-05; } frontAndBack diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/muSgs b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/muSgs index a6befb8a9d..ff6a524d0d 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/muSgs +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/muSgs @@ -20,27 +20,29 @@ internalField uniform 0; boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { type zeroGradient; } - upperWall + upperWall { - type zeroGradient; + type compressible::muSgsWallFunction; + value uniform 0; } - lowerWall + lowerWall { - type zeroGradient; + type compressible::muSgsWallFunction; + value uniform 0; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/p b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/p index 918b79c476..2a27d1e401 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/0/p +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/0/p @@ -16,32 +16,39 @@ FoamFile dimensions [1 -1 -2 0 0 0 0]; -internalField uniform 100000; +internalField uniform 1e5; boundaryField { - inlet + inlet { type zeroGradient; } - outlet + outlet { - type fixedValue; - value uniform 100000; + type waveTransmissive; + field p; + phi phi; + rho rho; + psi psi; + gamma 1.3; + fieldInf 1e5; + lInf 0.3; + value uniform 1e5; } - upperWall + upperWall { type zeroGradient; } - lowerWall + lowerWall { type zeroGradient; } - frontAndBack + frontAndBack { type cyclic; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/LESProperties b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/LESProperties index 95bb1c14f8..9beb4b8687 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/LESProperties +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/LESProperties @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | +| \\ / O peration | Version: 1.5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -19,6 +19,8 @@ LESModel oneEqEddy; delta cubeRootVol; +turbulence on; + printCoeffs on; laminarCoeffs @@ -123,6 +125,7 @@ kappa 0.4187; wallFunctionCoeffs { E 9; + Prt 0.85; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/combustionProperties b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/combustionProperties index 8d2c6962d7..f46b08c801 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/combustionProperties +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/combustionProperties @@ -68,16 +68,16 @@ GuldersCoeffs } } -ignite yes; +ignite yes; ignitionSites ( { - location (0 0 0); + location (0.005 -0.02 0.01905); diameter 0.003; start 0; - duration 0.001; - strength 2; + duration 0.1; + strength 200; } ); diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g index d182180d95..7b4411955d 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/g @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | +| \\ / O peration | Version: 1.5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/thermophysicalProperties b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/thermophysicalProperties index 7c8fd76fe3..dc9f1dae0f 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/thermophysicalProperties +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/constant/thermophysicalProperties @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | +| \\ / O peration | Version: 1.5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -15,19 +15,44 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -thermoType hhuMixtureThermo>>>>; +thermoType + hhuMixtureThermo>>>>; -stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [ 0 0 0 0 0 0 0 ] 15.675; +stoichiometricAirFuelMassRatio + stoichiometricAirFuelMassRatio [0 0 0 0 0 0 0] 15.675; -fuel fuel 1 44.0962 200 5000 1000 7.53414 0.0188722 -6.27185e-06 9.14756e-10 -4.78381e-14 -16467.5 -17.8923 0.933554 0.0264246 6.10597e-06 -2.19775e-08 9.51493e-12 -13958.5 19.2017 1.67212e-06 170.672; +// phi = 0.57 +// ft = 0.0352993 +// Tad = 1650.1 -oxidant oxidant 1 28.8504 200 6000 1000 3.10205 0.00123963 -4.17512e-07 6.60292e-11 -3.87448e-15 -985.517 5.35187 3.58378 -0.0007269 1.66985e-06 -1.08452e-10 -4.31951e-13 -1050.53 3.11223 1.67212e-06 170.672; +fuel fuel 1 44.0962 + 100 5000 1000 + 7.53414 0.0188722 -6.27185e-06 9.14756e-10 -4.78381e-14 -16467.5 -17.8923 + 0.933554 0.0264246 6.10597e-06 -2.19775e-08 9.51493e-12 -13958.5 19.2017 + 1.67212e-06 170.672; -reactants reactants 24.8095 29.4649 200 5000 1000 3.28069 0.00195035 -6.53483e-07 1.00239e-10 -5.64653e-15 -1609.55 4.41496 3.47696 0.000367499 1.84866e-06 -9.8993e-10 -3.10214e-14 -1570.81 3.76075 1.67212e-06 170.672; +oxidant oxidant 1 28.8504 + 100 6000 1000 + 3.10131 0.00124137 -4.18816e-07 6.64158e-11 -3.91274e-15 -985.266 5.35597 + 3.58378 -0.000727005 1.67057e-06 -1.09203e-10 -4.31765e-13 -1050.53 3.11239 + 1.67212e-06 170.672; -products products 1 28.3233 200 5000 1000 3.106 0.00179682 -5.94382e-07 9.04998e-11 -5.08033e-15 -11003.7 5.11872 3.49612 0.000650364 -2.08029e-07 1.2291e-09 -7.73697e-13 -11080.3 3.18978 1.67212e-06 170.672; +reactants reactants 1 29.2068 + 100 5000 1000 + 3.20495 0.00165359 -5.55661e-07 8.62503e-11 -4.93973e-15 -1347.25 4.81241 + 3.52181 -9.21936e-05 1.77427e-06 -6.2049e-10 -1.99209e-13 -1352.32 3.48856 + 1.67212e-06 170.672; -burntProducts burntProducts 25.8095 28.3233 200 6000 1000 3.106 0.00179682 -5.94382e-07 9.04998e-11 -5.08033e-15 -11003.7 5.11872 3.49612 0.000650364 -2.08029e-07 1.2291e-09 -7.73697e-13 -11080.3 3.18978 1.67212e-06 170.672; +burntProducts burntProducts 1 28.3233 + 100 6000 1000 + 3.10558 0.00179747 -5.94696e-07 9.05605e-11 -5.08443e-15 -11003.6 5.12104 + 3.49796 0.000638555 -1.83881e-07 1.20989e-09 -7.68691e-13 -11080.5 3.18188 + 1.67212e-06 170.672; +products products 1 28.5396 + 100 5000 1000 + 3.10383 0.00156927 -5.22523e-07 8.06527e-11 -4.60363e-15 -6892.54 5.21744 + 3.53318 7.81943e-05 5.77097e-07 6.68595e-10 -6.30433e-13 -6964.71 3.15336 + 1.67212e-06 170.672; // ************************************************************************* // diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/system/controlDict b/tutorials/combustion/XiFoam/les/pitzDaily3D/system/controlDict index cd473319ff..364c823851 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/system/controlDict +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/system/controlDict @@ -17,13 +17,13 @@ FoamFile application XiFoam; -startFrom startTime; +startFrom latestTime; startTime 0; stopAt endTime; -endTime 0.02; +endTime 0.5; deltaT 5e-06; diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSchemes b/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSchemes index 2398134a00..d4a2457583 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSchemes +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSchemes @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | +| \\ / O peration | Version: 1.5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -17,28 +17,30 @@ FoamFile ddtSchemes { - default Euler; + default backward; } gradSchemes { default Gauss linear; - grad(p) Gauss linear; } divSchemes { default none; - div(phi,U) Gauss limitedLinearV 1; - div(phid,p) Gauss linear; + div(phi,U) Gauss linear; div(phiU,p) Gauss linear; - div(phi,k) Gauss limitedLinear 1; - div(phi,B) Gauss limitedLinear 1; - div(B) Gauss linear; - div(phiXi,Xi) Gauss limitedLinear 1; - div(phiXi,Su) Gauss limitedLinear 1; - div(phiSt,b) Gauss limitedLinear01 1; - div(phi,ft_b_h_hu) Gauss multivariateSelection { fu limitedLinear01 1 ; ft limitedLinear01 1 ; b limitedLinear01 1 ; h limitedLinear 1 ; hu limitedLinear 1 ; }; + div(phi,k) Gauss limitedLinear 0.1; + div(phiXi,Xi) Gauss limitedLinear01 0.1; + div(phiXi,Su) Gauss limitedLinear01 0.1; + div(phiSt,b) Gauss limitedLinear01 0.1; + div(phi,ft_b_h_hu) Gauss multivariateSelection + { + ft limitedLinear01 0.1; + b limitedLinear01 0.1; + h limitedLinear 0.1; + hu limitedLinear 0.1; + }; div(U) Gauss linear; div((Su*grad(b))) Gauss linear; div((U+((Su*Xi)*grad(b)))) Gauss linear; @@ -52,8 +54,8 @@ laplacianSchemes laplacian(DkEff,k) Gauss linear corrected; laplacian(DBEff,B) Gauss linear corrected; laplacian((rho*(1|A(U))),p) Gauss linear corrected; - laplacian(muEff,b) Gauss linear corrected; - laplacian(muEff,ft) Gauss linear corrected; + laplacian(alphaEff,b) Gauss linear corrected; + laplacian(alphaEff,ft) Gauss linear corrected; laplacian(alphaEff,h) Gauss linear corrected; laplacian(alphaEff,hu) Gauss linear corrected; } diff --git a/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSolution b/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSolution index d4656531ed..4dda010d66 100644 --- a/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSolution +++ b/tutorials/combustion/XiFoam/les/pitzDaily3D/system/fvSolution @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | +| \\ / O peration | Version: 1.5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -124,7 +124,8 @@ solvers PISO { - nCorrectors 2; + nOuterCorrectors 2; + nCorrectors 1; nNonOrthogonalCorrectors 0; } diff --git a/tutorials/compressible/rhoPisoFoam/les/pitzDaily/constant/LESProperties b/tutorials/compressible/rhoPisoFoam/les/pitzDaily/constant/LESProperties index 25be4174a3..251fe1ae80 100644 --- a/tutorials/compressible/rhoPisoFoam/les/pitzDaily/constant/LESProperties +++ b/tutorials/compressible/rhoPisoFoam/les/pitzDaily/constant/LESProperties @@ -17,6 +17,8 @@ FoamFile LESModel oneEqEddy; +turbulence on; + printCoeffs on; delta cubeRootVol; diff --git a/wmake/rules/solarisGcc/mplibPVM b/wmake/rules/solarisGcc/mplibPVM deleted file mode 100644 index 9652e427d8..0000000000 --- a/wmake/rules/solarisGcc/mplibPVM +++ /dev/null @@ -1,3 +0,0 @@ -PFLAGS = -PINC = -I$(PVM_ROOT)/include -PLIBS = -L$(PVM_ROOT)/lib/$(PVM_ARCH) -lgpvm3 -lpvm3s