Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry
2011-11-28 11:52:25 +00:00
34 changed files with 48 additions and 4643455 deletions

View File

@ -100,7 +100,7 @@ tmp<volScalarField> kkLOmega::fTaul
lambdaEff*omega_ lambdaEff*omega_
+ dimensionedScalar + dimensionedScalar
( (
"ROTVSMALL", "ROOTVSMALL",
dimLength*inv(dimTime), dimLength*inv(dimTime),
ROOTVSMALL ROOTVSMALL
) )
@ -194,6 +194,7 @@ tmp<volScalarField> kkLOmega::gammaNAT
); );
} }
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
kkLOmega::kkLOmega kkLOmega::kkLOmega
@ -670,7 +671,7 @@ void kkLOmega::correct()
alphaT(lambdaEff, fv(sqr(fw)*kt_/nu()/(omega_ + omegaMin_)), ktS) alphaT(lambdaEff, fv(sqr(fw)*kt_/nu()/(omega_ + omegaMin_)), ktS)
); );
// By pass s0urce term divided by kl_ // By pass source term divided by kl_
const dimensionedScalar fwMin("SMALL", dimless, ROOTVSMALL); const dimensionedScalar fwMin("SMALL", dimless, ROOTVSMALL);

View File

@ -136,6 +136,7 @@ class kkLOmega
const volScalarField& fNatCrit const volScalarField& fNatCrit
) const; ) const;
protected: protected:
// Protected data // Protected data

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -4,6 +4,10 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy propeller surface from resources folder
cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
# - meshing # - meshing
runApplication blockMesh runApplication blockMesh

View File

@ -22,14 +22,13 @@ boundaryField
{ {
inlet inlet
{ {
//type totalPressure; type uniformTotalPressure;
//p0 uniform 40; pressure table
(
type timeVaryingTotalPressure; (0 10)
(1 40)
);
p0 40; // only used for restarts p0 40; // only used for restarts
outOfBounds clamp;
fileName "$FOAM_CASE/constant/p0vsTime";
U U; U U;
phi phi; phi phi;
rho none; rho none;

View File

@ -1,4 +0,0 @@
(
(0 10)
(1 40)
)

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object p; object p;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -23,50 +22,37 @@ boundaryField
{ {
inlet inlet
{ {
type timeVaryingTotalPressure; type uniformTotalPressure;
pressure table
(
(0 10)
(1 40)
);
p0 40; // only used for restarts
U U;
phi phi;
rho none; rho none;
psi none; psi none;
gamma 1; gamma 1;
p0 40;
fileName "$FOAM_CASE/constant/p0vsTime";
outOfBounds clamp;
value uniform 40; value uniform 40;
} }
outlet1 outlet1
{ {
type fixedValue; type fixedValue;
value uniform 10; value uniform 10;
} }
outlet2 outlet2
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
baffles
{
type zeroGradient;
}
fan_half0
{
type fan;
patchType cyclic;
jump uniform 0;
f 2(100 -0.1);
value uniform 0;
}
fan_half1
{
type fan;
patchType cyclic;
jump uniform 0;
f 2(100 -0.1);
value uniform 0;
}
defaultFaces defaultFaces
{ {
type zeroGradient; type zeroGradient;
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,4 +0,0 @@
(
(0 10)
(1 40)
)

View File

@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface
\rm -f constant/triSurface/motorBike.obj.gz
rm -rf 0 > /dev/null 2>&1 rm -rf 0 > /dev/null 2>&1
cleanCase cleanCase

View File

@ -4,6 +4,8 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy motorbike surface from resources folder
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
# Make dummy 0 directory # Make dummy 0 directory
mkdir 0 mkdir 0

View File

@ -0,0 +1,4 @@
Folder to house tri-surfaces
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
folder

View File

@ -28,7 +28,7 @@ addLayers false;
// - to 'snap' the mesh boundary to the surface // - to 'snap' the mesh boundary to the surface
geometry geometry
{ {
motorBike.stl motorBike.obj
{ {
type triSurfaceMesh; type triSurfaceMesh;
name motorBike; name motorBike;

View File

@ -1,2 +1,3 @@
#!/bin/sh
awk '{print $1 " " $4}' poolHeight/0/faceSource.dat > poolHeight_vs_time awk '{print $1 " " $4}' poolHeight/0/faceSource.dat > poolHeight_vs_time

View File

@ -3,6 +3,9 @@
# Source tutorial clean functions # Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface
\rm -f constant/triSurface/motorBike.obj.gz
rm -rf 0 > /dev/null 2>&1 rm -rf 0 > /dev/null 2>&1
cleanCase cleanCase

View File

@ -2,6 +2,9 @@
# Source tutorial run functions # Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy motorbike surface from resources folder
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
cp -r 0.org 0 > /dev/null 2>&1 cp -r 0.org 0 > /dev/null 2>&1
runApplication blockMesh runApplication blockMesh

View File

@ -0,0 +1,4 @@
Folder to house tri-surfaces
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
folder

View File

@ -28,7 +28,7 @@ addLayers true;
// - to 'snap' the mesh boundary to the surface // - to 'snap' the mesh boundary to the surface
geometry geometry
{ {
motorBike.stl motorBike.obj
{ {
type triSurfaceMesh; type triSurfaceMesh;
name motorBike; name motorBike;

Binary file not shown.

Binary file not shown.