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_
+ dimensionedScalar
(
"ROTVSMALL",
"ROOTVSMALL",
dimLength*inv(dimTime),
ROOTVSMALL
)
@ -194,6 +194,7 @@ tmp<volScalarField> kkLOmega::gammaNAT
);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
kkLOmega::kkLOmega
@ -670,7 +671,7 @@ void kkLOmega::correct()
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);

View File

@ -136,6 +136,7 @@ class kkLOmega
const volScalarField& fNatCrit
) const;
protected:
// 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
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy propeller surface from resources folder
cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
# - meshing
runApplication blockMesh

View File

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

View File

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

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -23,50 +22,37 @@ boundaryField
{
inlet
{
type timeVaryingTotalPressure;
type uniformTotalPressure;
pressure table
(
(0 10)
(1 40)
);
p0 40; // only used for restarts
U U;
phi phi;
rho none;
psi none;
gamma 1;
p0 40;
fileName "$FOAM_CASE/constant/p0vsTime";
outOfBounds clamp;
value uniform 40;
}
outlet1
{
type fixedValue;
value uniform 10;
}
outlet2
{
type fixedValue;
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
{
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
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface
\rm -f constant/triSurface/motorBike.obj.gz
rm -rf 0 > /dev/null 2>&1
cleanCase

View File

@ -4,6 +4,8 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $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
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
geometry
{
motorBike.stl
motorBike.obj
{
type triSurfaceMesh;
name motorBike;

View File

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

View File

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

View File

@ -2,6 +2,9 @@
# Source tutorial run functions
. $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
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
geometry
{
motorBike.stl
motorBike.obj
{
type triSurfaceMesh;
name motorBike;

Binary file not shown.

Binary file not shown.