Commit c41843e4 authored by Jozsef Nagy's avatar Jozsef Nagy Committed by Andrew Heather
Browse files

TUT: New AMI tutorial case for pimpleFoam - rotatingFanInRoom

parent 80fb4da9
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
AMI1
{
type cyclicAMI;
value uniform (0 0 0);
}
AMI2
{
type cyclicAMI;
value uniform (0 0 0);
}
fan
{
type movingWallVelocity;
value uniform (0 0 0);
}
door
{
type fixedValue;
value uniform (-0.1 0 0);
}
outlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
room
{
type noSlip;
}
desk
{
type noSlip;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0.00341;
boundaryField
{
AMI1
{
type cyclicAMI;
value uniform 0.00341;
}
AMI2
{
type cyclicAMI;
value uniform 0.00341;
}
fan
{
type kqRWallFunction;
value uniform 0.00341;
}
door
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 0.00341;
}
outlet
{
type zeroGradient;
}
room
{
type kqRWallFunction;
value uniform 0.00341;
}
desk
{
type kqRWallFunction;
value uniform 0.00341;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -1 0 0 0 0];
internalField uniform 1e-5;
boundaryField
{
AMI1
{
type cyclicAMI;
value uniform 1e-5;
}
AMI2
{
type cyclicAMI;
value uniform 1e-5;
}
fan
{
type nutkWallFunction;
value uniform 1e-5;
}
door
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
room
{
type nutkWallFunction;
value uniform 1e-5;
}
desk
{
type nutkWallFunction;
value uniform 1e-5;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 -1 0 0 0 0];
internalField uniform 0.1;
boundaryField
{
AMI1
{
type cyclicAMI;
value uniform 0.1;
}
AMI2
{
type cyclicAMI;
value uniform 0.1;
}
fan
{
type omegaWallFunction;
value uniform 0.1;
}
door
{
type turbulentMixingLengthFrequencyInlet;
mixingLength 1.2;
value uniform 0.1;
}
outlet
{
type zeroGradient;
}
room
{
type omegaWallFunction;
value uniform 0.1;
}
desk
{
type omegaWallFunction;
value uniform 0.1;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
AMI1
{
type cyclicAMI;
value uniform 0;
}
AMI2
{
type cyclicAMI;
value uniform 0;
}
fan
{
type fixedFluxPressure;
value uniform 0;
}
door
{
type fixedFluxPressure;
value uniform 0;
}
outlet
{
type fixedValue;
value uniform 0;
}
room
{
type fixedFluxPressure;
value uniform 0;
}
desk
{
type fixedFluxPressure;
value uniform 0;
}
}
// ************************************************************************* //
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0
# Remove surfaces and features
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
#------------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
./Allrun.pre
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# - meshing
runApplication surfaceFeatureExtract
runApplication blockMesh
runApplication snappyHexMesh -overwrite
# - force removal of fields generated by snappy
rm -rf 0
# renumber the mesh
runApplication renumberMesh -overwrite
# - create the inlet/outlet and AMI patches
runApplication createPatch -overwrite
# - set the initial fields
restore0Dir
#------------------------------------------------------------------------------
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dynamicFvMesh dynamicMotionSolverFvMesh;
motionSolverLibs ("libfvMotionSolvers.so");
motionSolver solidBody;
cellZone rotatingZone;
solidBodyMotionFunction rotatingMotion;
origin (-3 2 2.6);
axis (0 0 1);
omega 10;
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0];
value (0 0 -9.81);
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu 1e-05;
// ************************************************************************* //
solid desk
facet normal 0 0 0
outer loop
vertex -4.188827 1.421527 0.666708
vertex -4.188827 1.421527 0.866720
vertex -4.188827 2.621527 0.866720
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -4.188827 2.621527 0.866720
vertex -4.188827 2.621527 0.666708
vertex -4.188827 1.421527 0.666708
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -4.188827 2.621527 0.666708
vertex -4.188827 2.621527 0.866720
vertex -1.839868 2.621527 0.866720
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 2.621527 0.866720
vertex -1.839868 2.621527 0.666708
vertex -4.188827 2.621527 0.666708
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 2.621527 0.666708
vertex -1.839868 2.621527 0.866720
vertex -1.839868 1.421527 0.866720
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.421527 0.866720
vertex -1.839868 1.421527 0.666708
vertex -1.839868 2.621527 0.666708
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -4.188827 1.421527 0.866720
vertex -4.188827 1.421527 0.666708
vertex -1.839868 1.421527 0.666708
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.421527 0.666708
vertex -1.839868 1.421527 0.866720
vertex -4.188827 1.421527 0.866720
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.421527 0.666708
vertex -4.188827 1.421527 0.666708
vertex -4.188827 2.621527 0.666708
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -4.188827 2.621527 0.666708
vertex -1.839868 2.621527 0.666708
vertex -1.839868 1.421527 0.666708
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 2.621527 0.866720
vertex -4.188827 2.621527 0.866720
vertex -4.188827 1.421527 0.866720
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -4.188827 1.421527 0.866720
vertex -1.839868 1.421527 0.866720
vertex -1.839868 2.621527 0.866720
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -2.035615 1.421527 0.000000
vertex -2.035615 1.421527 0.666709
vertex -2.035615 1.521527 0.666709
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -2.035615 1.521527 0.666709
vertex -2.035615 1.521527 0.000000
vertex -2.035615 1.421527 0.000000
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -2.035615 1.521527 0.000000
vertex -2.035615 1.521527 0.666709
vertex -1.839868 1.521527 0.666709
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.521527 0.666709
vertex -1.839868 1.521527 0.000000
vertex -2.035615 1.521527 0.000000
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.521527 0.000000
vertex -1.839868 1.521527 0.666709
vertex -1.839868 1.421527 0.666709
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.421527 0.666709
vertex -1.839868 1.421527 0.000000
vertex -1.839868 1.521527 0.000000
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.421527 0.000000
vertex -1.839868 1.421527 0.666709
vertex -2.035615 1.421527 0.666709
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -2.035615 1.421527 0.666709
vertex -2.035615 1.421527 0.000000
vertex -1.839868 1.421527 0.000000
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -2.035615 1.521527 0.000000
vertex -1.839868 1.521527 0.000000
vertex -1.839868 1.421527 0.000000
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.421527 0.000000
vertex -2.035615 1.421527 0.000000
vertex -2.035615 1.521527 0.000000
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -1.839868 1.521527 0.666709
vertex -2.035615 1.521527 0.666709
vertex -2.035615 1.421527 0.666709
endloop
endfacet
facet normal 0 0 0
outer loop
vertex -2.035615 1.421527 0.666709
vertex -1.839868 1.421527 0.666709
vertex -1.839868 1.521527 0.666709