mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@ -41,10 +41,6 @@ SunOS*Gcc*/
|
|||||||
# reinstate wmake/rules that might look like build folders
|
# reinstate wmake/rules that might look like build folders
|
||||||
!wmake/rules/*/
|
!wmake/rules/*/
|
||||||
|
|
||||||
# but do continue to ignore the derived wmake files
|
|
||||||
wmake/rules/*/dirToString
|
|
||||||
wmake/rules/*/wmkdep
|
|
||||||
|
|
||||||
# doxygen generated documentation
|
# doxygen generated documentation
|
||||||
doc/[Dd]oxygen/html
|
doc/[Dd]oxygen/html
|
||||||
doc/[Dd]oxygen/latex
|
doc/[Dd]oxygen/latex
|
||||||
|
|||||||
@ -85,7 +85,7 @@ For finer control, the build stages can be also selected individually
|
|||||||
-make
|
-make
|
||||||
-makedoc
|
-makedoc
|
||||||
-install
|
-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
|
Build and install paraview-$ParaView_VERSION
|
||||||
- run from folder above the ParaView source folder or place the ParaView
|
- run from folder above the ParaView source folder or place the ParaView
|
||||||
@ -150,8 +150,7 @@ do
|
|||||||
runINSTALL=true
|
runINSTALL=true
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-envpath) # optional: change cmake files to use env variables
|
-envpath) # stage 5: change cmake files to use env variables
|
||||||
# This is now the default behaviour
|
|
||||||
runCONFIG=false
|
runCONFIG=false
|
||||||
runMAKE=false
|
runMAKE=false
|
||||||
runMAKEDOC=false
|
runMAKEDOC=false
|
||||||
|
|||||||
@ -86,9 +86,10 @@ find -H $packDir \
|
|||||||
-a ! -name "log[0-9]*" \
|
-a ! -name "log[0-9]*" \
|
||||||
-a ! -name "so_locations" \
|
-a ! -name "so_locations" \
|
||||||
| sed \
|
| sed \
|
||||||
-e "\@$packDir/.git/@d" \
|
|
||||||
-e "\@$packDir/lib/@d" \
|
-e "\@$packDir/lib/@d" \
|
||||||
|
-e '\@/\.git/@d' \
|
||||||
-e '\@applications/bin/@d' \
|
-e '\@applications/bin/@d' \
|
||||||
|
-e '\@wmake/utilbin/@d' \
|
||||||
-e '\@/t/@d' \
|
-e '\@/t/@d' \
|
||||||
-e '\@Make[.A-Za-z]*/[^/]*/@d' \
|
-e '\@Make[.A-Za-z]*/[^/]*/@d' \
|
||||||
-e '\@doc/[Dd]oxygen/html@d' \
|
-e '\@doc/[Dd]oxygen/html@d' \
|
||||||
@ -100,7 +101,7 @@ find -H $packDir \
|
|||||||
|
|
||||||
tar czpf $packFile --files-from $tmpFile
|
tar czpf $packFile --files-from $tmpFile
|
||||||
|
|
||||||
if [ $? = 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Finished packing and compressing $packDir into file $packFile"
|
echo "Finished packing and compressing $packDir into file $packFile"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -41,6 +41,9 @@ then
|
|||||||
fi
|
fi
|
||||||
arch=$1
|
arch=$1
|
||||||
|
|
||||||
|
# base arch (w/o precision, optimization, etc)
|
||||||
|
baseArch=$(echo "$arch" | sed -e 's@[DS]P.*$@@')
|
||||||
|
|
||||||
timeStamp=$(date +%Y-%m-%d)
|
timeStamp=$(date +%Y-%m-%d)
|
||||||
packDir=$WM_PROJECT-$WM_PROJECT_VERSION
|
packDir=$WM_PROJECT-$WM_PROJECT_VERSION
|
||||||
packFile=${packDir}.${arch}_${timeStamp}.gtgz
|
packFile=${packDir}.${arch}_${timeStamp}.gtgz
|
||||||
@ -73,6 +76,7 @@ dirList=$(
|
|||||||
$packDir/lib/$arch \
|
$packDir/lib/$arch \
|
||||||
$packDir/applications/bin/$arch \
|
$packDir/applications/bin/$arch \
|
||||||
$packDir/wmake/rules \
|
$packDir/wmake/rules \
|
||||||
|
$packDir/wmake/utilbin/$baseArch \
|
||||||
;
|
;
|
||||||
do
|
do
|
||||||
[ -d $dir ] && echo $dir
|
[ -d $dir ] && echo $dir
|
||||||
@ -80,12 +84,12 @@ dirList=$(
|
|||||||
)
|
)
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Packing $arch port of $packDir into $packFile"
|
echo "Packing $arch ($baseArch) port of $packDir into $packFile"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
tar czpf $packFile $dirList
|
tar czpf $packFile $dirList
|
||||||
|
|
||||||
if [ $? = 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Finished packing and compressing file $packFile"
|
echo "Finished packing and compressing file $packFile"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -112,7 +112,7 @@ else
|
|||||||
tar czpf $packFile $packDir/doc/Doxygen/html
|
tar czpf $packFile $packDir/doc/Doxygen/html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $? = 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Finished packing doxygen html into file $packFile"
|
echo "Finished packing doxygen html into file $packFile"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -62,7 +62,7 @@ echo $timeStamp 2>/dev/null > $packDir/.timeStamp
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Packing $packDir into $packFile"
|
echo "Packing $packDir source files into $packFile"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
foamPackSource $packDir $packFile
|
foamPackSource $packDir $packFile
|
||||||
|
|||||||
@ -78,19 +78,24 @@ find -H $packDir \
|
|||||||
-a ! -name "log[0-9]*" \
|
-a ! -name "log[0-9]*" \
|
||||||
-a ! -name "libccmio*" \
|
-a ! -name "libccmio*" \
|
||||||
| sed \
|
| sed \
|
||||||
-e "\@$packDir/.git/@d" \
|
|
||||||
-e "\@/.tags/@d" \
|
|
||||||
-e "\@$packDir/lib/@d" \
|
-e "\@$packDir/lib/@d" \
|
||||||
-e "\@libccmio.*/@d" \
|
-e '\@/\.git/@d' \
|
||||||
|
-e '\@/\.tags/@d' \
|
||||||
-e '\@applications/bin/@d' \
|
-e '\@applications/bin/@d' \
|
||||||
|
-e '\@wmake/utilbin/@d' \
|
||||||
-e '\@/t/@d' \
|
-e '\@/t/@d' \
|
||||||
-e '\@/Make[.A-Za-z]*/[^/]*/@d'\
|
-e '\@/Make[.A-Za-z]*/[^/]*/@d'\
|
||||||
-e '\@/platforms/@d' \
|
-e '\@/platforms/@d' \
|
||||||
|
-e '\@libccmio.*/@d' \
|
||||||
> $tmpFile
|
> $tmpFile
|
||||||
|
|
||||||
|
|
||||||
|
# provide some feedback
|
||||||
|
wc $tmpFile | awk '{print "Packing",$1,"files - this could take some time ..."}'
|
||||||
|
|
||||||
tar czpf $packFile --files-from $tmpFile
|
tar czpf $packFile --files-from $tmpFile
|
||||||
|
|
||||||
if [ $? = 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Finished packing and compressing $packDir into file $packFile"
|
echo "Finished packing and compressing $packDir into file $packFile"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ $# = 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Error: archOptions type expected, exiting"
|
echo "Error: archOptions type expected, exiting"
|
||||||
echo
|
echo
|
||||||
@ -41,16 +41,23 @@ then
|
|||||||
fi
|
fi
|
||||||
archOptions=$1
|
archOptions=$1
|
||||||
arch=${archOptions%%G*} # TODO: works for Gcc only
|
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 "archOptions=$archOptions"
|
||||||
echo "arch=$arch"
|
echo "arch=$arch"
|
||||||
echo "arch3264=$arch3264"
|
echo "arch3264=$arch3264"
|
||||||
|
|
||||||
timeStamp=$(date +%Y-%m-%d)
|
timeStamp=$(date +%Y-%m-%d)
|
||||||
packDir=ThirdParty
|
packDir=${WM_THIRD_PARTY_DIR:-ThirdParty}
|
||||||
|
packDir=${packDir##*/}
|
||||||
packFile=${packDir}.${archOptions}_${timeStamp}.gtgz
|
packFile=${packDir}.${archOptions}_${timeStamp}.gtgz
|
||||||
|
|
||||||
|
if [ ! -d $packDir ]
|
||||||
|
then
|
||||||
|
echo "Error: directory $packDir does not exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# add optional output directory
|
# add optional output directory
|
||||||
if [ -d "$2" ]
|
if [ -d "$2" ]
|
||||||
then
|
then
|
||||||
@ -71,7 +78,7 @@ echo
|
|||||||
|
|
||||||
tar czpf $packFile $dirList
|
tar czpf $packFile $dirList
|
||||||
|
|
||||||
if [ $? = 0 ]
|
if [ $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "Finished packing and compressing file $packFile"
|
echo "Finished packing and compressing file $packFile"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -32,7 +32,8 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
timeStamp=$(date +%Y-%m-%d)
|
timeStamp=$(date +%Y-%m-%d)
|
||||||
packDir=ThirdParty
|
packDir=${WM_THIRD_PARTY_DIR:-ThirdParty}
|
||||||
|
packDir=${packDir##*/}
|
||||||
packFile=${packDir}.General_${timeStamp}.gtgz
|
packFile=${packDir}.General_${timeStamp}.gtgz
|
||||||
|
|
||||||
if [ ! -d $packDir ]
|
if [ ! -d $packDir ]
|
||||||
@ -62,7 +63,7 @@ echo $timeStamp 2>/dev/null > $packDir/.timeStamp
|
|||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Packing $packDir into $packFile"
|
echo "Packing $packDir source files into $packFile"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
foamPackSource $packDir $packFile
|
foamPackSource $packDir $packFile
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
[Dolphin]
|
|
||||||
AdditionalInfo=3
|
|
||||||
SortOrder=0
|
|
||||||
Timestamp=2009,6,10,15,58,20
|
|
||||||
ViewMode=1
|
|
||||||
@ -33,13 +33,13 @@ Class
|
|||||||
Foam::compressible::LESModel
|
Foam::compressible::LESModel
|
||||||
|
|
||||||
Description
|
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,
|
This class defines the basic interface for a compressible flow SGS
|
||||||
and encapsulates data of value to all possible models. In particular
|
model, and encapsulates data of value to all possible models.
|
||||||
this includes references to all the dependent fields (rho, U, phi),
|
In particular this includes references to all the dependent fields
|
||||||
the physical viscosity mu, and the LESProperties dictionary,
|
(rho, U, phi), the physical viscosity mu, and the LESProperties
|
||||||
which contains the model selection and model coefficients.
|
dictionary, which contains the model selection and model coefficients.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
LESModel.C
|
LESModel.C
|
||||||
|
|||||||
@ -51,8 +51,8 @@ void kQRWallFunctionFvPatchField<Type>::checkType()
|
|||||||
<< "Invalid wall function specification" << nl
|
<< "Invalid wall function specification" << nl
|
||||||
<< " Patch type for patch " << this->patch().name()
|
<< " Patch type for patch " << this->patch().name()
|
||||||
<< " must be wall" << nl
|
<< " must be wall" << nl
|
||||||
<< " Current patch type is " << this->patch().type()
|
<< " Current patch type is " << this->patch().type() << nl << endl
|
||||||
<< nl << endl << abort(FatalError);
|
<< abort(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,12 +30,11 @@ Description
|
|||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
laminar.C
|
laminar.C
|
||||||
laminarCorrect.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef compressibleLaminar_H
|
#ifndef compressibleRasLaminar_H
|
||||||
#define compressibleLaminar_H
|
#define compressibleRasLaminar_H
|
||||||
|
|
||||||
#include "RASModel.H"
|
#include "RASModel.H"
|
||||||
|
|
||||||
@ -82,42 +81,42 @@ public:
|
|||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
//- Return the turbulence viscosity, i.e. 0 for laminar flow
|
//- Return the turbulence viscosity, i.e. 0 for laminar flow
|
||||||
tmp<volScalarField> mut() const;
|
virtual tmp<volScalarField> mut() const;
|
||||||
|
|
||||||
//- Return the effective viscosity, i.e. the laminar viscosity
|
//- Return the effective viscosity, i.e. the laminar viscosity
|
||||||
tmp<volScalarField> muEff() const
|
virtual tmp<volScalarField> muEff() const
|
||||||
{
|
{
|
||||||
return tmp<volScalarField>(new volScalarField("muEff", mu()));
|
return tmp<volScalarField>(new volScalarField("muEff", mu()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return the effective turbulent thermal diffusivity,
|
//- Return the effective turbulent thermal diffusivity,
|
||||||
// i.e. the laminar thermal diffusivity
|
// i.e. the laminar thermal diffusivity
|
||||||
tmp<volScalarField> alphaEff() const
|
virtual tmp<volScalarField> alphaEff() const
|
||||||
{
|
{
|
||||||
return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
|
return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
||||||
tmp<volScalarField> k() const;
|
virtual tmp<volScalarField> k() const;
|
||||||
|
|
||||||
//- Return the turbulence kinetic energy dissipation rate,
|
//- Return the turbulence kinetic energy dissipation rate,
|
||||||
// i.e. 0 for laminar flow
|
// i.e. 0 for laminar flow
|
||||||
tmp<volScalarField> epsilon() const;
|
virtual tmp<volScalarField> epsilon() const;
|
||||||
|
|
||||||
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
||||||
tmp<volSymmTensorField> R() const;
|
virtual tmp<volSymmTensorField> R() const;
|
||||||
|
|
||||||
//- Return the effective stress tensor, i.e. the laminar stress
|
//- Return the effective stress tensor, i.e. the laminar stress
|
||||||
tmp<volSymmTensorField> devRhoReff() const;
|
virtual tmp<volSymmTensorField> devRhoReff() const;
|
||||||
|
|
||||||
//- Return the source term for the momentum equation
|
//- Return the source term for the momentum equation
|
||||||
tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
|
virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
|
||||||
|
|
||||||
//- Correct the laminar viscosity
|
//- Correct the laminar viscosity
|
||||||
void correct();
|
virtual void correct();
|
||||||
|
|
||||||
//- Read RASProperties dictionary
|
//- Read RASProperties dictionary
|
||||||
bool read();
|
virtual bool read();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
|
-I$(LIB_SRC)/turbulenceModels \
|
||||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude
|
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
|
|||||||
@ -52,10 +52,10 @@ laminar::laminar
|
|||||||
const volScalarField& rho,
|
const volScalarField& rho,
|
||||||
const volVectorField& U,
|
const volVectorField& U,
|
||||||
const surfaceScalarField& phi,
|
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> laminar::New
|
|||||||
const volScalarField& rho,
|
const volScalarField& rho,
|
||||||
const volVectorField& U,
|
const volVectorField& U,
|
||||||
const surfaceScalarField& phi,
|
const surfaceScalarField& phi,
|
||||||
const basicThermo& thermoPhysicalModel
|
const basicThermo& thermophysicalModel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return autoPtr<laminar>(new laminar(rho, U, phi, thermoPhysicalModel));
|
return autoPtr<laminar>(new laminar(rho, U, phi, thermophysicalModel));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -96,18 +96,6 @@ tmp<volScalarField> laminar::mut() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tmp<volScalarField> laminar::muEff() const
|
|
||||||
{
|
|
||||||
return tmp<volScalarField>(new volScalarField("muEff", mu()));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
tmp<volScalarField> laminar::alphaEff() const
|
|
||||||
{
|
|
||||||
return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
tmp<volScalarField> laminar::k() const
|
tmp<volScalarField> laminar::k() const
|
||||||
{
|
{
|
||||||
return tmp<volScalarField>
|
return tmp<volScalarField>
|
||||||
|
|||||||
@ -33,8 +33,8 @@ SourceFiles
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef laminar_H
|
#ifndef compressibleLaminar_H
|
||||||
#define laminar_H
|
#define compressibleLaminar_H
|
||||||
|
|
||||||
#include "turbulenceModel.H"
|
#include "turbulenceModel.H"
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ public:
|
|||||||
const volScalarField& rho,
|
const volScalarField& rho,
|
||||||
const volVectorField& U,
|
const volVectorField& U,
|
||||||
const surfaceScalarField& phi,
|
const surfaceScalarField& phi,
|
||||||
const basicThermo& thermoPhysicalModel
|
const basicThermo& thermophysicalModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ public:
|
|||||||
const volScalarField& rho,
|
const volScalarField& rho,
|
||||||
const volVectorField& U,
|
const volVectorField& U,
|
||||||
const surfaceScalarField& phi,
|
const surfaceScalarField& phi,
|
||||||
const basicThermo& thermoPhysicalModel
|
const basicThermo& thermophysicalModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -94,10 +94,17 @@ public:
|
|||||||
virtual tmp<volScalarField> mut() const;
|
virtual tmp<volScalarField> mut() const;
|
||||||
|
|
||||||
//- Return the effective viscosity, i.e. the laminar viscosity
|
//- Return the effective viscosity, i.e. the laminar viscosity
|
||||||
virtual tmp<volScalarField> muEff() const;
|
virtual tmp<volScalarField> muEff() const
|
||||||
|
{
|
||||||
|
return tmp<volScalarField>(new volScalarField("muEff", mu()));
|
||||||
|
}
|
||||||
|
|
||||||
//- Return the effective turbulent thermal diffusivity
|
//- Return the effective turbulent thermal diffusivity,
|
||||||
virtual tmp<volScalarField> alphaEff() const;
|
// i.e. the laminar thermal diffusivity
|
||||||
|
virtual tmp<volScalarField> alphaEff() const
|
||||||
|
{
|
||||||
|
return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
|
||||||
|
}
|
||||||
|
|
||||||
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
||||||
virtual tmp<volScalarField> k() const;
|
virtual tmp<volScalarField> k() const;
|
||||||
@ -109,7 +116,7 @@ public:
|
|||||||
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
||||||
virtual tmp<volSymmTensorField> R() const;
|
virtual tmp<volSymmTensorField> R() const;
|
||||||
|
|
||||||
//- Return the effective stress tensor including the laminar stress
|
//- Return the effective stress tensor, i.e. the laminar stress
|
||||||
virtual tmp<volSymmTensorField> devRhoReff() const;
|
virtual tmp<volSymmTensorField> devRhoReff() const;
|
||||||
|
|
||||||
//- Return the source term for the momentum equation
|
//- Return the source term for the momentum equation
|
||||||
|
|||||||
@ -117,12 +117,6 @@ autoPtr<turbulenceModel> turbulenceModel::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
turbulenceModel::~turbulenceModel()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void turbulenceModel::correct()
|
void turbulenceModel::correct()
|
||||||
|
|||||||
@ -144,7 +144,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~turbulenceModel();
|
virtual ~turbulenceModel()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -124,8 +124,8 @@ autoPtr<LESModel> LESModel::New
|
|||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"LESModel::select(const volVectorField&, const "
|
"LESModel::New(const volVectorField& U, const "
|
||||||
"surfaceScalarField&, transportModel&)"
|
"surfaceScalarField& phi, transportModel&)"
|
||||||
) << "Unknown LESModel type " << modelName
|
) << "Unknown LESModel type " << modelName
|
||||||
<< endl << endl
|
<< endl << endl
|
||||||
<< "Valid LESModel types are :" << endl
|
<< "Valid LESModel types are :" << endl
|
||||||
@ -137,12 +137,6 @@ autoPtr<LESModel> LESModel::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
LESModel::~LESModel()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void LESModel::correct(const tmp<volTensorField>&)
|
void LESModel::correct(const tmp<volTensorField>&)
|
||||||
|
|||||||
@ -35,10 +35,10 @@ Description
|
|||||||
Base class for all incompressible flow LES SGS models.
|
Base class for all incompressible flow LES SGS models.
|
||||||
|
|
||||||
This class defines the basic interface for an incompressible flow SGS
|
This class defines the basic interface for an incompressible flow SGS
|
||||||
model, and encapsulates data of value to all possible models. In
|
model, and encapsulates data of value to all possible models.
|
||||||
particular this includes references to all the dependent fields (U,
|
In particular this includes references to all the dependent fields
|
||||||
phi), the physical viscosity nu, and the LESProperties
|
(U, phi), the physical viscosity nu, and the LESProperties
|
||||||
dictionary which contains the model selection and model coefficients.
|
dictionary, which contains the model selection and model coefficients.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
LESModel.C
|
LESModel.C
|
||||||
@ -151,7 +151,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~LESModel();
|
virtual ~LESModel()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -240,14 +241,14 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//- Correct Eddy-Viscosity and related properties
|
|
||||||
virtual void correct(const tmp<volTensorField>& gradU);
|
|
||||||
|
|
||||||
//- Correct Eddy-Viscosity and related properties.
|
//- Correct Eddy-Viscosity and related properties.
|
||||||
// This calls correct(const tmp<volTensorField>& gradU) by supplying
|
// This calls correct(const tmp<volTensorField>& gradU) by supplying
|
||||||
// gradU calculated locally.
|
// gradU calculated locally.
|
||||||
void correct();
|
void correct();
|
||||||
|
|
||||||
|
//- Correct Eddy-Viscosity and related properties
|
||||||
|
virtual void correct(const tmp<volTensorField>& gradU);
|
||||||
|
|
||||||
//- Read LESProperties dictionary
|
//- Read LESProperties dictionary
|
||||||
virtual bool read() = 0;
|
virtual bool read() = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -133,12 +133,6 @@ dynOneEqEddy::dynOneEqEddy
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
dynOneEqEddy::~dynOneEqEddy()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void dynOneEqEddy::correct(const tmp<volTensorField>& gradU)
|
void dynOneEqEddy::correct(const tmp<volTensorField>& gradU)
|
||||||
|
|||||||
@ -116,7 +116,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~dynOneEqEddy();
|
virtual ~dynOneEqEddy()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -124,12 +124,6 @@ dynSmagorinsky::dynSmagorinsky
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
dynSmagorinsky::~dynSmagorinsky()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void dynSmagorinsky::correct(const tmp<volTensorField>& gradU)
|
void dynSmagorinsky::correct(const tmp<volTensorField>& gradU)
|
||||||
|
|||||||
@ -125,7 +125,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~dynSmagorinsky();
|
virtual ~dynSmagorinsky()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -34,8 +34,8 @@ SourceFiles
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef laminar_H
|
#ifndef lesLaminar_H
|
||||||
#define laminar_H
|
#define lesLaminar_H
|
||||||
|
|
||||||
#include "LESModel.H"
|
#include "LESModel.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
|
|||||||
@ -126,12 +126,6 @@ locDynOneEqEddy::locDynOneEqEddy
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
locDynOneEqEddy::~locDynOneEqEddy()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void locDynOneEqEddy::correct(const tmp<volTensorField>& gradU)
|
void locDynOneEqEddy::correct(const tmp<volTensorField>& gradU)
|
||||||
|
|||||||
@ -138,7 +138,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~locDynOneEqEddy();
|
virtual ~locDynOneEqEddy()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -56,12 +56,6 @@ scaleSimilarity::scaleSimilarity
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
scaleSimilarity::~scaleSimilarity()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
tmp<volScalarField> scaleSimilarity::k() const
|
tmp<volScalarField> scaleSimilarity::k() const
|
||||||
|
|||||||
@ -90,7 +90,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~scaleSimilarity();
|
virtual ~scaleSimilarity()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -174,14 +174,9 @@ autoPtr<RASModel> RASModel::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
RASModel::~RASModel()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|
||||||
scalar RASModel::yPlusLam(const scalar kappa, const scalar E) const
|
scalar RASModel::yPlusLam(const scalar kappa, const scalar E) const
|
||||||
{
|
{
|
||||||
scalar ypl = 11.0;
|
scalar ypl = 11.0;
|
||||||
|
|||||||
@ -182,7 +182,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~RASModel();
|
virtual ~RASModel()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -310,9 +311,6 @@ public:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return yPlus for the given patch
|
|
||||||
virtual tmp<scalarField> yPlus(const label patchI) const;
|
|
||||||
|
|
||||||
//- Return the turbulence kinetic energy
|
//- Return the turbulence kinetic energy
|
||||||
virtual tmp<volScalarField> k() const = 0;
|
virtual tmp<volScalarField> k() const = 0;
|
||||||
|
|
||||||
@ -328,6 +326,9 @@ public:
|
|||||||
//- Return the source term for the momentum equation
|
//- Return the source term for the momentum equation
|
||||||
virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const = 0;
|
virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const = 0;
|
||||||
|
|
||||||
|
//- Return yPlus for the given patch
|
||||||
|
virtual tmp<scalarField> yPlus(const label patchI) const;
|
||||||
|
|
||||||
//- Solve the turbulence equations and correct the turbulence viscosity
|
//- Solve the turbulence equations and correct the turbulence viscosity
|
||||||
virtual void correct() = 0;
|
virtual void correct() = 0;
|
||||||
|
|
||||||
|
|||||||
@ -77,12 +77,6 @@ tmp<volScalarField> laminar::nut() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tmp<volScalarField> laminar::nuEff() const
|
|
||||||
{
|
|
||||||
return tmp<volScalarField>(new volScalarField("nuEff", nu()));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
tmp<volScalarField> laminar::k() const
|
tmp<volScalarField> laminar::k() const
|
||||||
{
|
{
|
||||||
return tmp<volScalarField>
|
return tmp<volScalarField>
|
||||||
|
|||||||
@ -33,8 +33,8 @@ SourceFiles
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef laminar_H
|
#ifndef rasLaminar_H
|
||||||
#define laminar_H
|
#define rasLaminar_H
|
||||||
|
|
||||||
#include "RASModel.H"
|
#include "RASModel.H"
|
||||||
|
|
||||||
@ -83,7 +83,10 @@ public:
|
|||||||
virtual tmp<volScalarField> nut() const;
|
virtual tmp<volScalarField> nut() const;
|
||||||
|
|
||||||
//- Return the effective viscosity, i.e. the laminar viscosity
|
//- Return the effective viscosity, i.e. the laminar viscosity
|
||||||
virtual tmp<volScalarField> nuEff() const;
|
virtual tmp<volScalarField> nuEff() const
|
||||||
|
{
|
||||||
|
return tmp<volScalarField>(new volScalarField("nuEff", nu()));
|
||||||
|
}
|
||||||
|
|
||||||
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
||||||
virtual tmp<volScalarField> k() const;
|
virtual tmp<volScalarField> k() const;
|
||||||
@ -95,7 +98,7 @@ public:
|
|||||||
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
||||||
virtual tmp<volSymmTensorField> R() const;
|
virtual tmp<volSymmTensorField> R() const;
|
||||||
|
|
||||||
//- Return the effective stress tensor including the laminar stress
|
//- Return the effective stress tensor, i.e. the laminar stress
|
||||||
virtual tmp<volSymmTensorField> devReff() const;
|
virtual tmp<volSymmTensorField> devReff() const;
|
||||||
|
|
||||||
//- Return the source term for the momentum equation
|
//- Return the source term for the momentum equation
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
|
-I$(LIB_SRC)/turbulenceModels \
|
||||||
-I$(LIB_SRC)/transportModels
|
-I$(LIB_SRC)/transportModels
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
|
|||||||
@ -104,7 +104,7 @@ public:
|
|||||||
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
//- Return the Reynolds stress tensor, i.e. 0 for laminar flow
|
||||||
virtual tmp<volSymmTensorField> R() const;
|
virtual tmp<volSymmTensorField> R() const;
|
||||||
|
|
||||||
//- Return the effective stress tensor including the laminar stress
|
//- Return the effective stress tensor, i.e. the laminar stress
|
||||||
virtual tmp<volSymmTensorField> devReff() const;
|
virtual tmp<volSymmTensorField> devReff() const;
|
||||||
|
|
||||||
//- Return the source term for the momentum equation
|
//- Return the source term for the momentum equation
|
||||||
|
|||||||
@ -110,12 +110,6 @@ autoPtr<turbulenceModel> turbulenceModel::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
turbulenceModel::~turbulenceModel()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void turbulenceModel::correct()
|
void turbulenceModel::correct()
|
||||||
|
|||||||
@ -139,7 +139,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~turbulenceModel();
|
virtual ~turbulenceModel()
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -19,6 +19,8 @@ LESModel oneEqEddy;
|
|||||||
|
|
||||||
delta cubeRootVol;
|
delta cubeRootVol;
|
||||||
|
|
||||||
|
turbulence on;
|
||||||
|
|
||||||
printCoeffs on;
|
printCoeffs on;
|
||||||
|
|
||||||
laminarCoeffs
|
laminarCoeffs
|
||||||
|
|||||||
@ -19,6 +19,8 @@ LESModel oneEqEddy;
|
|||||||
|
|
||||||
delta cubeRootVol;
|
delta cubeRootVol;
|
||||||
|
|
||||||
|
turbulence on;
|
||||||
|
|
||||||
printCoeffs on;
|
printCoeffs on;
|
||||||
|
|
||||||
laminarCoeffs
|
laminarCoeffs
|
||||||
|
|||||||
@ -17,6 +17,8 @@ FoamFile
|
|||||||
|
|
||||||
LESModel oneEqEddy;
|
LESModel oneEqEddy;
|
||||||
|
|
||||||
|
turbulence on;
|
||||||
|
|
||||||
printCoeffs on;
|
printCoeffs on;
|
||||||
|
|
||||||
delta cubeRootVol;
|
delta cubeRootVol;
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
PFLAGS =
|
|
||||||
PINC = -I$(PVM_ROOT)/include
|
|
||||||
PLIBS = -L$(PVM_ROOT)/lib/$(PVM_ARCH) -lgpvm3 -lpvm3s
|
|
||||||
Reference in New Issue
Block a user