Merge branch 'master' of /export/shaggy2/andy/shelob/OpenFOAM/OpenFOAM-dev

This commit is contained in:
andy
2012-07-25 09:01:55 +01:00
124 changed files with 676 additions and 179 deletions

View File

@ -35,19 +35,28 @@ Description
The respective contributions from each is determined by a weight field: The respective contributions from each is determined by a weight field:
\f[ \f[
x_p = w*A + (1-w)*(x_c + B/\Delta) x_p = w x_p + (1-w) \left(x_c + \frac{\nabla_\perp x}{\Delta}\right)
\f] \f]
where where
\vartable \vartable
x_p | patch values x_p | patch values
x_c | patch internal cell values x_c | patch internal cell values
w | weight field, \c valueFraction_ w | weight field
A | fixed value, \c refValue_
B | patch normal gradient, \c refGrad_
\Delta| inverse distance from face centre to internal cell centre \Delta| inverse distance from face centre to internal cell centre
w | weighting (0-1)
\endvartable \endvartable
\heading Patch usage
\table
Property | Description | Required | Default value
valueFraction | weight field | yes |
refValue | fixed value | yes |
refGrad | patch normal gradient | yes |
\endtable
\note \note
This condition is not usually applied directly; instead, use a derived This condition is not usually applied directly; instead, use a derived
mixed condition such as \c inletOutlet mixed condition such as \c inletOutlet

View File

@ -28,7 +28,7 @@ Group
grpGenericBoundaryConditions grpGenericBoundaryConditions
Description Description
This boundary condition appies a zero-gradient condition from the patch This boundary condition applies a zero-gradient condition from the patch
internal field onto the patch faces. internal field onto the patch faces.
\heading Patch usage \heading Patch usage
@ -57,7 +57,7 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class zeroGradientFvPatch Declaration Class zeroGradientFvPatchField Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template<class Type> template<class Type>

View File

@ -28,7 +28,7 @@ Group
grpCoupledBoundaryConditions grpCoupledBoundaryConditions
Description Description
This boundary condition supplies a jump condition, using the \c cyclic This boundary condition provides a jump condition, using the \c cyclic
condition as a base. condition as a base.
The jump is specified as a \c DataEntry type, to enable the use of, e.g. The jump is specified as a \c DataEntry type, to enable the use of, e.g.

View File

@ -31,31 +31,36 @@ Description
This boundary condition can be applied to assign either a pressure inlet This boundary condition can be applied to assign either a pressure inlet
or outlet total pressure condition for a fan. or outlet total pressure condition for a fan.
User specifies: \heading Patch usage
\li pressure drop vs volumetric flow rate table (fan curve) file name;
\li direction of normal flow through the fan, in or out; \table
\li total pressure of the environment. Property | Description | Required | Default value
fileName | fan curve file name | yes |
outOfBounds | out of bounds handling | yes |
direction | direction of flow through fan [in/out] | yes |
p0 | environmental total pressure | yes |
\endtable
Example of the boundary condition specification: Example of the boundary condition specification:
\verbatim \verbatim
inlet inlet
{ {
type fanPressure; type fanPressure;
fileName "fanCurve"; // Fan curve file name fileName "fanCurve";
outOfBounds clamp; // (error|warn|clamp|repeat) outOfBounds clamp;
direction in; // Direction of flow through fan direction in;
p0 uniform 0; // Environmental total pressure p0 uniform 0;
value uniform 0; // Initial pressure value uniform 0;
} }
outlet outlet
{ {
type fanPressure; type fanPressure;
fileName "fanCurve"; // Fan curve file name fileName "fanCurve";
outOfBounds clamp; // (error|warn|clamp|repeat) outOfBounds clamp;
direction out; // Direction of flow through fan direction out;
p0 uniform 0; // Environmental total pressure p0 uniform 0;
value uniform 0; // Initial pressure value uniform 0;
} }
\endverbatim \endverbatim

View File

@ -44,7 +44,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type mappedFixedInternalValue; type mappedFixedPushedInternalValue;
fieldName T; fieldName T;
setAverage no; setAverage no;
average 0; average 0;
@ -78,7 +78,7 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class mappedFixedPushedInternalValueFvPatchField Declaration Class mappedFixedPushedInternalValueFvPatchField Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template<class Type> template<class Type>

View File

@ -42,7 +42,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type mappedFixedInternalValue; type mappedVelocityFlux;
phi phi; phi phi;
value uniform 0; // place holder value uniform 0; // place holder
} }

View File

@ -61,7 +61,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type externalWallHeatFluxTemperature; type multiphaseFixedFluxPressure;
phiHbyA phiHbyA; phiHbyA phiHbyA;
phi phi; phi phi;
rho rho; rho rho;

View File

@ -42,7 +42,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type inletOutlet; type surfaceNormalFixedValue;
refValue -10; // 10 INTO the domain refValue -10; // 10 INTO the domain
} }
\endverbatim \endverbatim

View File

@ -42,7 +42,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type rotatingWallVelocity; type translatingWallVelocity;
U (100 0 0); U (100 0 0);
} }
\endverbatim \endverbatim

View File

@ -85,7 +85,7 @@ turbulentIntensityKineticEnergyInletFvPatchScalarField
"(" "("
"const fvPatch&, " "const fvPatch&, "
"const DimensionedField<scalar, volMesh>&, " "const DimensionedField<scalar, volMesh>&, "
"const dictionary& "const dictionary&"
")" ")"
) << "Turbulence intensity should be specified as a fraction 0-1 " ) << "Turbulence intensity should be specified as a fraction 0-1 "
"of the mean velocity\n" "of the mean velocity\n"

View File

@ -24,11 +24,13 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\page pageBoundaryConditions Boundary Conditions \page pageBoundaryConditions Boundary Conditions
\ref grpBoundaryConditions are required to 'close' the simulation problem.
\ref grpBoundaryConditions Careful attention should be applied to their selection so as to create a
well-posed system of equations, which can be solved numerically.
\section secBoundaryConditionsOverview Overview \section secBoundaryConditionsOverview Overview
The set of available \ref grpBoundaryConditions comprise of basic, turbulent and
thermophysical types.
\subsection secBC1 Basic boundary conditions \subsection secBC1 Basic boundary conditions
- \ref grpConstraintBoundaryConditions - \ref grpConstraintBoundaryConditions
@ -47,6 +49,10 @@ License
\section secWallFunctions Wall functions \section secWallFunctions Wall functions
Wall functions in OpenFOAM are modelled as boundary conditions, applied to
the viscosity for momentum, and thermal diffusivity for energy. Two groups of
wall functions are available, which vary in terms of the underlying
compressibility assumption.
Wall functions for incompressible flow Wall functions for incompressible flow
- \ref grpIcoWallFunctions - \ref grpIcoWallFunctions
@ -56,6 +62,9 @@ Wall functions for compressible flow
\section secBoundaryConditions Typical usage for pressure-velocity systems \section secBoundaryConditions Typical usage for pressure-velocity systems
The choice as to the most appropriate set of boundary conditions is dictated by
the type of flow problem. In many cases, multiple possible selections exist;
the following tables offer suggestions for subsonic flow.
subsonic inlet (flow specified): subsonic inlet (flow specified):
\table \table
@ -75,7 +84,7 @@ subsonic outlet:
derived property | - | \link Foam::calculatedFvPatchField calculated\endlink or \link Foam::zeroGradientFvPatchField zeroGradient\endlink derived property | - | \link Foam::calculatedFvPatchField calculated\endlink or \link Foam::zeroGradientFvPatchField zeroGradient\endlink
\endtable \endtable
wall: wall (impermeable, non-slip):
\table \table
Variable | Symbol | Type Variable | Symbol | Type
pressure | p | \link Foam::zeroGradientFvPatchField zeroGradient\endlink pressure | p | \link Foam::zeroGradientFvPatchField zeroGradient\endlink

View File

@ -34,7 +34,7 @@ License
The difference between the methods is based on when the patch values are The difference between the methods is based on when the patch values are
updated. When the condition is applied to a solution variable, the updated. When the condition is applied to a solution variable, the
call to updateCoeffs() occurs as a preliminary step of the call to updateCoeffs() occurs as a preliminary step of the
\<matrix\>.solve(). The evaluate() method is invoked after, or idependent \<matrix\>.solve(). The evaluate() method is invoked after, or independent
of the matrix solve, via a call to \<field\>.correctBoundaryConditions(). of the matrix solve, via a call to \<field\>.correctBoundaryConditions().
@} @}

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::partialWrite Foam::partialWrite
\ingroup grpIOFunctionObjects Group
grpIOFunctionObjects
Description Description
Allows some fields/registered objects to be written more often than others. Allows some fields/registered objects to be written more often than others.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::removeRegisteredObject Foam::removeRegisteredObject
\ingroup grpIOFunctionObjects Group
grpIOFunctionObjects
Description Description
Removes registered IO objects if present in the database Removes registered IO objects if present in the database

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::writeRegisteredObject Foam::writeRegisteredObject
\ingroup grpIOFunctionObjects Group
grpIOFunctionObjects
Description Description
Takes over the writing of registered IO objects Takes over the writing of registered IO objects

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::cloudInfo Foam::cloudInfo
\ingroup grpCloudFunctionObjects Group
grpCloudFunctionObjects
Description Description
This function object outputs lagrangian cloud information to a file. The This function object outputs lagrangian cloud information to a file. The

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::fieldAverage Foam::fieldAverage
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Calculates the field averages given list of fieldAverageItems, e.g. Calculates the field averages given list of fieldAverageItems, e.g.

View File

@ -21,10 +21,11 @@ License
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
class Class
Foam::fieldCoordinateSystemTransform Foam::fieldCoordinateSystemTransform
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Transforms fields from global cartesian co-ordinates to local co-ordinate Transforms fields from global cartesian co-ordinates to local co-ordinate

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::fieldMinMax Foam::fieldMinMax
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Calculates scalar minimim and maximum field values. Calculates scalar minimim and maximum field values.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::fieldValue Foam::fieldValue
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Base class for field value -based function objects. Base class for field value -based function objects.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::nearWallFields Foam::nearWallFields
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Samples near-patch volFields Samples near-patch volFields

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::processorField Foam::processorField
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Writes a scalar field whose value is the local processor ID. Output Writes a scalar field whose value is the local processor ID. Output

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::readFields Foam::readFields
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Reads fields from the time folders and adds them to the mesh database Reads fields from the time folders and adds them to the mesh database

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::regionSizeDistribution Foam::regionSizeDistribution
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Looks up a field, interpolates it to the faces and determines a connected Looks up a field, interpolates it to the faces and determines a connected

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::streamLine Foam::streamLine
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Generation of streamlines. Samples along track of passive particle. Generation of streamlines. Samples along track of passive particle.

View File

@ -24,7 +24,7 @@ License
Class Class
Foam::surfaceInterpolateFields Foam::surfaceInterpolateFields
\ingroup grpFieldFunctionObjects Group grpFieldFunctionObjects
Description Description
Linear interpolates volFields to surfaceFields Linear interpolates volFields to surfaceFields

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::turbulenceFields Foam::turbulenceFields
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Stores turbulence fields on the mesh database for further manipulation. Stores turbulence fields on the mesh database for further manipulation.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::wallBoundedStreamLine Foam::wallBoundedStreamLine
\ingroup grpFieldFunctionObjects Group
grpFieldFunctionObjects
Description Description
Generation of streamlines. Samples along track of passive particle. Generation of streamlines. Samples along track of passive particle.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::forceCoeffs Foam::forceCoeffs
\ingroup grpForcesFunctionObjects Group
grpForcesFunctionObjects
Description Description
Derived from the forces function object, creates a specialisation to Derived from the forces function object, creates a specialisation to

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::forces Foam::forces
\ingroup grpForcesFunctionObjects Group
grpForcesFunctionObjects
Description Description
Calculates the forces and moments by integrating the pressure and Calculates the forces and moments by integrating the pressure and

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::abortCalculation Foam::abortCalculation
\ingroup grpJobControlFunctionObjects Group
grpJobControlFunctionObjects
Description Description
Watches for presence of the named file in the $FOAM_CASE directory Watches for presence of the named file in the $FOAM_CASE directory

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::systemCall Foam::systemCall
\ingroup grpFunctionObjects Group
grpFunctionObjects
Description Description
Executes system calls, entered in the form of a string list Executes system calls, entered in the form of a string list

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::codedFunctionObject Foam::codedFunctionObject
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
functionObject using dynamic code compilation. functionObject using dynamic code compilation.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::dsmcFields Foam::dsmcFields
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
Calculate intensive fields: Calculate intensive fields:

View File

@ -24,18 +24,28 @@ License
Class Class
Foam::pressureCoefficient Foam::pressureCoefficient
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
Calculates pressure coefficient, \f$c_p\f$ Calculates pressure coefficient, \f$c_p\f$
\f[ \f[
c_p = p/p_{dyn,inf} c_p = \frac{p}{p_{dyn,\infty}}
\f]
where:
\f[
p_{dyn,\infty} = 0.5 \rho |U_{\infty}|^2
\f] \f]
where: where
\vartable
c_p | pressure coefficient
p | pressure [bar]
\rho | density [kg/m3]
U | velocity [m/s]
\endvartable
p_dyn,inf = 0.5*rho*mag(U_inf)^2
SourceFiles SourceFiles
pressureCoefficient.C pressureCoefficient.C

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::staticPressure Foam::staticPressure
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
Converts kinematic pressure to static pressure, from the name of the Converts kinematic pressure to static pressure, from the name of the

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::timeActivatedFileUpdate Foam::timeActivatedFileUpdate
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
Performs a file copy/replacement once a specified time has been reached. Performs a file copy/replacement once a specified time has been reached.

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::yPlusLES Foam::yPlusLES
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
Evaluates and outputs turbulence y+ for LES models. Values written to Evaluates and outputs turbulence y+ for LES models. Values written to

View File

@ -24,7 +24,8 @@ License
Class Class
Foam::yPlusRAS Foam::yPlusRAS
\ingroup grpUtilitiesFunctionObjects Group
grpUtilitiesFunctionObjects
Description Description
Evaluates and outputs turbulence y+ for RAS models. Values written to Evaluates and outputs turbulence y+ for RAS models. Values written to

View File

@ -21,12 +21,12 @@ License
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\addtogroup functionObjects
@{
Class Class
Foam::probes Foam::probes
Group
grpFunctionObjects
Description Description
Set of locations to sample. Set of locations to sample.
@ -34,7 +34,6 @@ Description
SourceFiles SourceFiles
probes.C probes.C
@}
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -21,12 +21,12 @@ License
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\addtogroup functionObjects
@{
Class Class
Foam::sampledSet Foam::sampledSet
Group
grpFunctionObjects
Description Description
Holds list of sampling points which is filled at construction time. Holds list of sampling points which is filled at construction time.
Various implementations of this base class to e.g. get sampling points Various implementations of this base class to e.g. get sampling points
@ -38,7 +38,6 @@ Description
SourceFiles SourceFiles
sampledSet.C sampledSet.C
@}
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -21,12 +21,12 @@ License
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\addtogroup functionObjects
@{
Class Class
Foam::sampledSurface Foam::sampledSurface
Group
grpFunctionObjects
Description Description
An abstract class for surfaces with sampling. An abstract class for surfaces with sampling.
@ -46,7 +46,6 @@ Description
SourceFiles SourceFiles
sampledSurface.C sampledSurface.C
sampledSurfaceTemplates.C sampledSurfaceTemplates.C
@}
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -25,6 +25,7 @@ License
\defgroup grpThermoBoundaryConditions Thermophysical boundary conditions \defgroup grpThermoBoundaryConditions Thermophysical boundary conditions
@{ @{
\ingroup grpBoundaryConditions
This group contains thermophysical model boundary conditions This group contains thermophysical model boundary conditions
@} @}

View File

@ -97,10 +97,8 @@ void Foam::gradientEnergyFvPatchScalarField::updateCoeffs()
return; return;
} }
const basicThermo& thermo = db().lookupObject<basicThermo> const basicThermo& thermo =
( db().lookupObject<basicThermo>("thermophysicalProperties");
"thermophysicalProperties"
);
const label patchi = patch().index(); const label patchi = patch().index();

View File

@ -28,9 +28,25 @@ Group
grpThermoBoundaryConditions grpThermoBoundaryConditions
Description Description
This boundary condition provides a gradient condition for internal energy This boundary condition provides a gradient condition for internal energy,
where the gradient is calculated using:
\f[
\nabla(e_p) = \nabla_\perp C_p(p, T) + \frac{e_p - e_c}{\Delta}
\f]
where
\vartable
e_p | energy at patch faces [J]
e_c | energy at patch internal cells [J]
p | pressure [bar]
T | temperature [K]
C_p | specific heat [J/kg/K]
\Delta | distance between patch face and internal cell centres [m]
\endvartable
\heading Patch usage \heading Patch usage
Example of the boundary condition specification: Example of the boundary condition specification:
\verbatim \verbatim
myPatch myPatch

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::alphaContactAngleFvPatchScalarField Foam::alphaContactAngleFvPatchScalarField
Group
grpWallBoundaryConditions grpGenericBoundaryConditions
Description Description
Abstract base class for alphaContactAngle boundary conditions. Abstract base class for alphaContactAngle boundary conditions.
@ -47,11 +50,12 @@ Description
on p_rgh must set to guarantee that the flux is corrected to be zero at the on p_rgh must set to guarantee that the flux is corrected to be zero at the
wall e.g. wall e.g.
walls \verbatim
{ myPatch
type fixedFluxPressure; {
adjoint no; type alphaContactAngle;
} }
\endverbatim
If "limit zeroGradient;" is used the pressure BCs can be left as before. If "limit zeroGradient;" is used the pressure BCs can be left as before.
@ -72,7 +76,7 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class alphaContactAngleFvPatch Declaration Class alphaContactAngleFvPatchScalarField Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class alphaContactAngleFvPatchScalarField class alphaContactAngleFvPatchScalarField

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::DeardorffDiffStress Foam::compressible::LESModels::DeardorffDiffStress
Group
grpCmpLESTurbulence
Description Description
Differential SGS Stress Equation Model for compressible flows Differential SGS Stress Equation Model for compressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::GenEddyVisc Foam::compressible::LESModels::GenEddyVisc
Group
grpCmpLESTurbulence
Description Description
General base class for all compressible models that can be implemented as General base class for all compressible models that can be implemented as
an eddy viscosity, i.e. algebraic and one-equation models. an eddy viscosity, i.e. algebraic and one-equation models.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::GenSGSStress Foam::compressible::LESModels::GenSGSStress
Group
grpCmpLESTurbulence
Description Description
General base class for all compressible models that directly General base class for all compressible models that directly
solve for the SGS stress tensor B. solve for the SGS stress tensor B.
@ -52,7 +55,7 @@ namespace LESModels
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class GenSGSStress Declaration Class GenSGSStress Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class GenSGSStress class GenSGSStress

View File

@ -24,10 +24,12 @@ License
Namespace Namespace
Foam::compressible::LESModels Foam::compressible::LESModels
Group
grpCmpLESTurbulence
Description Description
Namespace for compressible LES models. Namespace for compressible LES models.
Class Class
Foam::compressible::LESModel Foam::compressible::LESModel

View File

@ -0,0 +1,32 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\defgroup grpCmpLESTurbulence Compressible LES turbulence
@{
\ingroup grpCmpTurbulence
This group contains compressible LES models.
@}
\*---------------------------------------------------------------------------*/

View File

@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::Smagorinsky Foam::compressible::LESModels::Smagorinsky
Group
grpCmpLESTurbulence
Description Description
The choric Smagorinsky Model for compressible flows. The choric Smagorinsky Model for compressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::SpalartAllmaras Foam::compressible::LESModels::SpalartAllmaras
Group
grpCmpLESTurbulence
Description Description
SpalartAllmaras for compressible flows SpalartAllmaras for compressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::homogeneousDynOneEqEddy Foam::compressible::LESModels::homogeneousDynOneEqEddy
Group
grpCmpLESTurbulence
Description Description
One Equation Eddy Viscosity Model for compressible flows. One Equation Eddy Viscosity Model for compressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::lowReOneEqEddy Foam::compressible::LESModels::lowReOneEqEddy
Group
grpCmpLESTurbulence
Description Description
One Equation Eddy Viscosity Model for compressible flow One Equation Eddy Viscosity Model for compressible flow

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::LESModels::oneEqEddy Foam::compressible::LESModels::oneEqEddy
Group
grpCmpLESTurbulence
Description Description
One Equation Eddy Viscosity Model for incompressible flows One Equation Eddy Viscosity Model for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::LRR Foam::compressible::RASModels::LRR
Group
grpCmpRASTurbulence
Description Description
Launder, Reece and Rodi Reynolds-stress turbulence model for Launder, Reece and Rodi Reynolds-stress turbulence model for
compressible flows. compressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::LaunderGibsonRSTM Foam::compressible::RASModels::LaunderGibsonRSTM
Group
grpCmpRASTurbulence
Description Description
Launder-Gibson Reynolds stress turbulence model for compressible flows. Launder-Gibson Reynolds stress turbulence model for compressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::LaunderSharmaKE Foam::compressible::RASModels::LaunderSharmaKE
Group
grpCmpRASTurbulence
Description Description
Launder and Sharma low-Reynolds k-epsilon turbulence model for Launder and Sharma low-Reynolds k-epsilon turbulence model for
compressible and combusting flows. compressible and combusting flows.

View File

@ -27,7 +27,6 @@ Namespace
Description Description
Namespace for compressible RAS turbulence models. Namespace for compressible RAS turbulence models.
Class Class
Foam::compressible::RASModel Foam::compressible::RASModel

View File

@ -0,0 +1,32 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\defgroup grpCmpRASTurbulence Compressible RAS turbulence
@{
\ingroup grpCmpTurbulence
This group contains compressible RAS models.
@}
\*---------------------------------------------------------------------------*/

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::RNGkEpsilon Foam::compressible::RASModels::RNGkEpsilon
Group
grpCmpRASTurbulence
Description Description
Renormalisation group k-epsilon turbulence model for compressible flows. Renormalisation group k-epsilon turbulence model for compressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::SpalartAllmaras Foam::compressible::RASModels::SpalartAllmaras
Group
grpCmpRASTurbulence
Description Description
Spalart-Allmaras one-eqn mixing-length model for compressible Spalart-Allmaras one-eqn mixing-length model for compressible
external flows. external flows.

View File

@ -61,7 +61,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type turbulentInlet; type convectiveHeatTransfer;
L 0.1; L 0.1;
} }
\endverbatim \endverbatim

View File

@ -25,6 +25,7 @@ License
\defgroup grpCmpRASBoundaryConditions RAS compressible boundary conditions \defgroup grpCmpRASBoundaryConditions RAS compressible boundary conditions
@{ @{
\ingroup grpCmpRASTurbulence
This group contains compressible RAS turbulence model boundary conditions This group contains compressible RAS turbulence model boundary conditions
@} @}

View File

@ -45,7 +45,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type alphaSgsJayatillekeWallFunction; type alphatJayatillekeWallFunction;
Prt 0.85; Prt 0.85;
kappa 0.41; kappa 0.41;
E 9.8; E 9.8;

View File

@ -25,7 +25,7 @@ Class
Foam::compressible::RASModels::kqRWallFunctionFvPatchField Foam::compressible::RASModels::kqRWallFunctionFvPatchField
Group Group
grpIcoWallFunctions grpCmpWallFunctions
Description Description
This boundary condition is applied to turbulence \c k, \c q, and \c R This boundary condition is applied to turbulence \c k, \c q, and \c R

View File

@ -37,14 +37,14 @@ Description
Property | Description | Required | Default value Property | Description | Required | Default value
roughnessHeight | roughness height | yes | roughnessHeight | roughness height | yes |
roughnessConstant | roughness constanr | yes | roughnessConstant | roughness constanr | yes |
roughnessFactor | scaling factor | roughnessFactor | scaling factor | yes |
\endtable \endtable
Example of the boundary condition specification: Example of the boundary condition specification:
\verbatim \verbatim
myPatch myPatch
{ {
type nutURoughWallFunction; type mutURoughWallFunction;
roughnessHeight 1e-5; roughnessHeight 1e-5;
roughnessConstant 0.5; roughnessConstant 0.5;
roughnessFactor 1; roughnessFactor 1;

View File

@ -29,9 +29,22 @@ Group
Description Description
This boundary condition provides a turbulent viscosity condition when This boundary condition provides a turbulent viscosity condition when
using wall functions for rough walls, based on velocity, using Spaldings using wall functions for rough walls, based on velocity, using Spalding's
law to give a continuous nut profile to the wall (y+ = 0) law to give a continuous nut profile to the wall (y+ = 0)
\f[
y^+ = u^+ + \frac{1}{E} \left[exp(\kappa u^+) - 1 - \kappa u^+\,
- 0.5 (\kappa u^+)^2 - \frac{1}{6} (\kappa u^+)^3\right]
\f]
where
\vartable
y^+ | non-dimensional position
u^+ | non-dimensional velocity
\kappa | Von Karman constant
\endvartable
\heading Patch usage \heading Patch usage
Example of the boundary condition specification: Example of the boundary condition specification:

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,7 +49,7 @@ Description
\verbatim \verbatim
myPatch myPatch
{ {
type nutkAtmRoughWallFunction; type mutkRoughWallFunction;
Ks uniform 0; Ks uniform 0;
Cs uniform 0.5; Cs uniform 0.5;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::kEpsilon Foam::compressible::RASModels::kEpsilon
Group
grpCmpRASTurbulence
Description Description
Standard k-epsilon turbulence model for compressible flows Standard k-epsilon turbulence model for compressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::kOmegaSST Foam::compressible::RASModels::kOmegaSST
Group
grpCmpRASTurbulence
Description Description
Implementation of the k-omega-SST turbulence model for compressible flows. Implementation of the k-omega-SST turbulence model for compressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::laminar Foam::compressible::RASModels::laminar
Group
grpCmpRASTurbulence
Description Description
Dummy turbulence model for laminar compressible flow. Dummy turbulence model for laminar compressible flow.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::compressible::RASModels::realizableKE Foam::compressible::RASModels::realizableKE
Group
grpCmpRASTurbulence
Description Description
Realizable k-epsilon turbulence model for compressible flows. Realizable k-epsilon turbulence model for compressible flows.

View File

@ -0,0 +1,31 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\defgroup grpCmpTurbulence Compressible turbulence
@{
This group contains compressible turbulence models.
@}
\*---------------------------------------------------------------------------*/

View File

@ -25,7 +25,8 @@ License
Class Class
Foam::fixedShearStressFvPatchVectorField Foam::fixedShearStressFvPatchVectorField
Group grpWallBoundaryConditions Group
grpWallBoundaryConditions
Description Description
Set a constant shear stress as tau0 = -nuEff dU/dn. Set a constant shear stress as tau0 = -nuEff dU/dn.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,18 +24,57 @@ License
Class Class
Foam::porousBafflePressureFvPatchField Foam::porousBafflePressureFvPatchField
Group
grpCoupledBoundaryConditions
Description Description
Foam::porousBafflePressureFvPatchField This boundary condition provides a jump condition, using the \cyclic
the porous baffle operates on a cyclic patch and introduce a jump on the p condition as a base.
field as follow:
deltaP = -(I*mu*U + 0.5*D*rho*magSqr(U)*L) The porous baffle introduces a pressure jump defined by:
where: \f[
\Delta p = -(I \mu U + 0.5 D \rho |U|^2 L)
\f]
I is the inertial coefficient where
D is the darcy coeafficient
L is the porous media lenght in the flow direction \vartable
p | pressure [Pa]
\rho | density [kg/m3]
\mu | viscosity [Pa s]
I | inertial coefficient
D | Darcy coefficient
L | porous media length in the flow direction
\endvartable
\heading Patch usage
\table
Property | Description | Required | Default value
patchType | underlying patch type should be \c cyclic| yes |
D | Darcy coefficient | yes |
I | inertial coefficient | yes |
L | porous media length in the flow direction | yes |
\endtable
Example of the boundary condition specification:
\verbatim
myPatch
{
type porousBafflePressure;
patchType cyclic;
jump uniform 0;
D 1000000;
I 0.001;
L 0.1;
value uniform 0;
}
\endverbatim
\note
The underlying \c patchType should be set to \c cyclic
SourceFiles SourceFiles
porousBafflePressureFvPatchField.C porousBafflePressureFvPatchField.C
@ -63,7 +102,7 @@ class porousBafflePressureFvPatchField
{ {
// Private data // Private data
//- Darcy pressure lost coefficient //- Darcy pressure loss coefficient
scalar D_; scalar D_;
//- Inertia pressure lost coefficient //- Inertia pressure lost coefficient

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,26 +24,31 @@ License
Class Class
Foam::incompressible::LESModels::DeardorffDiffStress Foam::incompressible::LESModels::DeardorffDiffStress
Group
grpIcoLESTurbulence
Description Description
Differential SGS Stress Equation Model for incompressible flows Differential SGS Stress Equation Model for incompressible flows
The DSEM uses a model version of the full balance equation for the SGS The DSEM uses a model version of the full balance equation for the SGS
stress tensor to simulate the behaviour of B. stress tensor to simulate the behaviour of B.
Thus, Thus,
\verbatim \f[
d/dt(B) + div(U*B) - div(nuSgs*grad(B)) \frac{d}{dt}(B) + \nabla\cdot(U B) - \nabla\cdot(\nu_{sgs}\nabla B)
= =
P - c1*epsilon/k*B - 0.667*(1 - c1)*epsilon*I - c2*(P - 0.333*trP*I) P - c_1 \frac{\epsilon}{k}B - 0.667(1 - c_1)\epsilon I
- c_2 (P - 0.333 trP I)
\f]
where where
\f{eqnarray*}{
k = 0.5*tr(B), k &=& 0.5 tr(B) \\
epsilon = ce*k^3/2/delta, \epsilon &=& c_e k^{3/2}/\Delta \\
epsilon/k = ce*k^1/2/delta \epsilon/k &=& c_e k^{1/2}/\Delta \\
P = -(B'L + L'B) P &=& -(B'L + L'B) \\
nuSgs = ck*sqrt(k)*delta \nu_{sgs} &=& c_k k^{1/2} \Delta \\
nuEff = nuSgs + nu \nu_{eff} &=& \nu_{sgs} + \nu
\endverbatim \f}
SourceFiles SourceFiles
DeardorffDiffStress.C DeardorffDiffStress.C
@ -65,7 +70,7 @@ namespace LESModels
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class DeardorffDiffStress Declaration Class DeardorffDiffStress Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
class DeardorffDiffStress class DeardorffDiffStress

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::GenEddyVisc Foam::incompressible::LESModels::GenEddyVisc
Group
grpIcoLESTurbulence
Description Description
General base class for all incompressible models that can be implemented General base class for all incompressible models that can be implemented
as an eddy viscosity, i.e. algebraic and one-equation models. as an eddy viscosity, i.e. algebraic and one-equation models.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::GenSGSStress Foam::incompressible::LESModels::GenSGSStress
Group
grpIcoLESTurbulence
Description Description
General base class for all incompressible models that directly General base class for all incompressible models that directly
solve for the SGS stress tensor B. solve for the SGS stress tensor B.

View File

@ -24,6 +24,9 @@ License
Namespace Namespace
Foam::incompressible::LESModels Foam::incompressible::LESModels
Group
grpIcoLESTurbulence
Description Description
Namespace for incompressible LES models. Namespace for incompressible LES models.

View File

@ -0,0 +1,32 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
\defgroup grpIcoLESTurbulence Incompressible LES turbulence
@{
\ingroup grpIcoTurbulence
This group contains incompressible LES models.
@}
\*---------------------------------------------------------------------------*/

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::LRRDiffStress Foam::incompressible::LESModels::LRRDiffStress
Group
grpIcoLESTurbulence
Description Description
Differential SGS Stress Equation Model for incompressible flows. Differential SGS Stress Equation Model for incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::Smagorinsky Foam::incompressible::LESModels::Smagorinsky
Group
grpIcoLESTurbulence
Description Description
The Isochoric Smagorinsky Model for incompressible flows. The Isochoric Smagorinsky Model for incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::Smagorinsky2 Foam::incompressible::LESModels::Smagorinsky2
Group
grpIcoLESTurbulence
Description Description
The Isochoric Smagorinsky Model for incompressible flows The Isochoric Smagorinsky Model for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::SpalartAllmaras Foam::incompressible::LESModels::SpalartAllmaras
Group
grpIcoLESTurbulence
Description Description
SpalartAllmaras DES (SA + LES) turbulence model for incompressible flows SpalartAllmaras DES (SA + LES) turbulence model for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::SpalartAllmarasDDES Foam::incompressible::LESModels::SpalartAllmarasDDES
Group
grpIcoLESTurbulence
Description Description
SpalartAllmaras DDES LES turbulence model for incompressible flows SpalartAllmaras DDES LES turbulence model for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::SpalartAllmarasIDDES Foam::incompressible::LESModels::SpalartAllmarasIDDES
Group
grpIcoLESTurbulence
Description Description
SpalartAllmarasIDDES LES turbulence model for incompressible flows SpalartAllmarasIDDES LES turbulence model for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::dynLagrangian Foam::incompressible::LESModels::dynLagrangian
Group
grpIcoLESTurbulence
Description Description
Dynamic eddy-viscosity model with Lagrangian averaging for incompressible Dynamic eddy-viscosity model with Lagrangian averaging for incompressible
flow flow

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::dynOneEqEddy Foam::incompressible::LESModels::dynOneEqEddy
Group
grpIcoLESTurbulence
Description Description
Localised Dynamic One Equation Eddy Viscosity Model for incompressible Localised Dynamic One Equation Eddy Viscosity Model for incompressible
flows flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::homogeneousDynOneEqEddy Foam::incompressible::LESModels::homogeneousDynOneEqEddy
Group
grpIcoLESTurbulence
Description Description
One Equation Eddy Viscosity Model for incompressible flows. One Equation Eddy Viscosity Model for incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::homogeneousDynSmagorinsky Foam::incompressible::LESModels::homogeneousDynSmagorinsky
Group
grpIcoLESTurbulence
Description Description
The Isochoric homogeneous dynamic Smagorinsky Model for The Isochoric homogeneous dynamic Smagorinsky Model for
incompressible flows. incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::kOmegaSSTSAS Foam::incompressible::LESModels::kOmegaSSTSAS
Group
grpIcoLESTurbulence
Description Description
kOmegaSSTSAS LES turbulence model for incompressible flows kOmegaSSTSAS LES turbulence model for incompressible flows
based on: based on:

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::mixedSmagorinsky Foam::incompressible::LESModels::mixedSmagorinsky
Group
grpIcoLESTurbulence
Description Description
The mixed Isochoric Smagorinsky Model for incompressible flows. The mixed Isochoric Smagorinsky Model for incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::oneEqEddy Foam::incompressible::LESModels::oneEqEddy
Group
grpIcoLESTurbulence
Description Description
One Equation Eddy Viscosity Model for incompressible flows One Equation Eddy Viscosity Model for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::scaleSimilarity Foam::incompressible::LESModels::scaleSimilarity
Group
grpIcoLESTurbulence
Description Description
General base class for all scale similarity models General base class for all scale similarity models
for incompressible flows. for incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::LESModels::spectEddyVisc Foam::incompressible::LESModels::spectEddyVisc
Group
grpIcoLESTurbulence
Description Description
The Isochoric spectral Eddy Viscosity Model for incompressible flows. The Isochoric spectral Eddy Viscosity Model for incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::RASModels::LRR Foam::incompressible::RASModels::LRR
Group
grpIcoRASTurbulence
Description Description
Launder, Reece and Rodi Reynolds-stress turbulence model for Launder, Reece and Rodi Reynolds-stress turbulence model for
incompressible flows. incompressible flows.

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::RASModels::LamBremhorstKE Foam::incompressible::RASModels::LamBremhorstKE
Group
grpIcoRASTurbulence
Description Description
Lam and Bremhorst low-Reynolds number k-epsilon turbulence model Lam and Bremhorst low-Reynolds number k-epsilon turbulence model
for incompressible flows for incompressible flows

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -24,6 +24,9 @@ License
Class Class
Foam::incompressible::RASModels::LaunderGibsonRSTM Foam::incompressible::RASModels::LaunderGibsonRSTM
Group
grpIcoRASTurbulence
Description Description
Launder-Gibson Reynolds stress turbulence model for incompressible flows. Launder-Gibson Reynolds stress turbulence model for incompressible flows.

Some files were not shown because too many files have changed in this diff Show More