mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://dm/home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
|||||||
@ -136,6 +136,7 @@ class kkLOmega
|
|||||||
const volScalarField& fNatCrit
|
const volScalarField& fNatCrit
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Protected data
|
// Protected data
|
||||||
|
|||||||
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/T
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/T
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/U
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/U
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/alphaSgs
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/alphaSgs
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/k
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/k
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/muSgs
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/muSgs
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/p
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/p
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/p_rgh
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/p_rgh
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/T
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/T
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/Y0Default
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/Y0Default
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/Yv
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/oppositeBurningPanels/0/panelRegion/Yv
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/smallPoolFire2D/0/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/smallPoolFire2D/0/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/smallPoolFire3D/0/Ydefault
Executable file → Normal file
0
tutorials/combustion/fireFoam/les/smallPoolFire3D/0/Ydefault
Executable file → Normal 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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
(
|
|
||||||
(0 10)
|
|
||||||
(1 40)
|
|
||||||
)
|
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
(
|
|
||||||
(0 10)
|
|
||||||
(1 40)
|
|
||||||
)
|
|
||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
Folder to house tri-surfaces
|
||||||
|
|
||||||
|
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||||
|
folder
|
||||||
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
Folder to house tri-surfaces
|
||||||
|
|
||||||
|
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||||
|
folder
|
||||||
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||||
|
|||||||
BIN
tutorials/resources/geometry/motorBike.obj.gz
Normal file
BIN
tutorials/resources/geometry/motorBike.obj.gz
Normal file
Binary file not shown.
BIN
tutorials/resources/geometry/propellerTip.obj.gz
Normal file
BIN
tutorials/resources/geometry/propellerTip.obj.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user