mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use coarser grid for gasMixing tutorial and run in parallel
This commit is contained in:
committed by
Andrew Heather
parent
e5b3af9c05
commit
1e607ac62e
@ -21,6 +21,8 @@ internalField uniform 300;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
"inlet.*"
|
"inlet.*"
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform (0 0 0);
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
inlet_air
|
inlet_air
|
||||||
{
|
{
|
||||||
type flowRateInletVelocity;
|
type flowRateInletVelocity;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform 1e-3;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
"inlet.*"
|
"inlet.*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform 100;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
inlet_air
|
inlet_air
|
||||||
{
|
{
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform 6;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
inlet_air
|
inlet_air
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
"inlet.*"
|
"inlet.*"
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform 1e5;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
|
|||||||
@ -21,6 +21,8 @@ internalField uniform 0;
|
|||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
#includeEtc "caseDicts/setConstraintTypes"
|
||||||
|
|
||||||
inlet_air
|
inlet_air
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
|
|||||||
@ -4,8 +4,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
|||||||
|
|
||||||
./Allrun.mesh
|
./Allrun.mesh
|
||||||
|
|
||||||
restore0Dir
|
restore0Dir -processor
|
||||||
runApplication decomposePar -force
|
|
||||||
runParallel rhoSimpleFoam
|
runParallel $(getApplication)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -2,9 +2,13 @@
|
|||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||||
|
|
||||||
runApplication blockMesh
|
|
||||||
runApplication surfaceFeatureExtract
|
runApplication surfaceFeatureExtract
|
||||||
runApplication snappyHexMesh -overwrite
|
|
||||||
|
runApplication blockMesh
|
||||||
|
|
||||||
|
runApplication decomposePar
|
||||||
|
|
||||||
|
runParallel snappyHexMesh -overwrite
|
||||||
|
|
||||||
rm -rf 0
|
rm -rf 0
|
||||||
|
|
||||||
|
|||||||
@ -16,14 +16,14 @@ FoamFile
|
|||||||
|
|
||||||
vertices
|
vertices
|
||||||
(
|
(
|
||||||
(-0.5 -0.125 -0.25)
|
(-0.5 -0.125 -0.25)
|
||||||
(1.5 -0.125 -0.25)
|
( 1.5 -0.125 -0.25)
|
||||||
(1.5 0.125 -0.25)
|
( 1.5 0.125 -0.25)
|
||||||
(-0.5 0.125 -0.25)
|
(-0.5 0.125 -0.25)
|
||||||
(-0.5 -0.125 0.25)
|
(-0.5 -0.125 0.25)
|
||||||
(1.5 -0.125 0.25)
|
( 1.5 -0.125 0.25)
|
||||||
(1.5 0.125 0.25)
|
( 1.5 0.125 0.25)
|
||||||
(-0.5 0.125 0.25)
|
(-0.5 0.125 0.25)
|
||||||
);
|
);
|
||||||
|
|
||||||
blocks
|
blocks
|
||||||
|
|||||||
@ -18,7 +18,7 @@ FoamFile
|
|||||||
// Which of the steps to run
|
// Which of the steps to run
|
||||||
castellatedMesh true;
|
castellatedMesh true;
|
||||||
snap true;
|
snap true;
|
||||||
addLayers false;
|
addLayers true;
|
||||||
|
|
||||||
|
|
||||||
// Geometry. Definition of all surfaces. All surfaces are of class
|
// Geometry. Definition of all surfaces. All surfaces are of class
|
||||||
@ -124,7 +124,7 @@ castellatedMeshControls
|
|||||||
{
|
{
|
||||||
inlet_air
|
inlet_air
|
||||||
{
|
{
|
||||||
level (4 4);
|
level (3 3);
|
||||||
patchInfo
|
patchInfo
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -132,7 +132,7 @@ castellatedMeshControls
|
|||||||
}
|
}
|
||||||
inlet_fuel
|
inlet_fuel
|
||||||
{
|
{
|
||||||
level (6 6);
|
level (5 5);
|
||||||
patchInfo
|
patchInfo
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -140,7 +140,7 @@ castellatedMeshControls
|
|||||||
}
|
}
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
level (4 4);
|
level (3 3);
|
||||||
patchInfo
|
patchInfo
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -148,7 +148,7 @@ castellatedMeshControls
|
|||||||
}
|
}
|
||||||
inlet_entrainment
|
inlet_entrainment
|
||||||
{
|
{
|
||||||
level (4 4);
|
level (3 3);
|
||||||
patchInfo
|
patchInfo
|
||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
@ -156,10 +156,10 @@ castellatedMeshControls
|
|||||||
}
|
}
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
level (4 4);
|
level (3 3);
|
||||||
regions
|
regions
|
||||||
{
|
{
|
||||||
pipe_fuel { level (6 6); }
|
pipe_fuel { level (5 5); }
|
||||||
}
|
}
|
||||||
patchInfo
|
patchInfo
|
||||||
{
|
{
|
||||||
@ -190,7 +190,7 @@ castellatedMeshControls
|
|||||||
refinementBox
|
refinementBox
|
||||||
{
|
{
|
||||||
mode inside;
|
mode inside;
|
||||||
levels ((4 4));
|
levels ((3 3));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user