Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c41843e4
Commit
c41843e4
authored
Aug 01, 2019
by
Jozsef Nagy
Committed by
Andrew Heather
Aug 01, 2019
Browse files
TUT: New AMI tutorial case for pimpleFoam - rotatingFanInRoom
parent
80fb4da9
Changes
28
Expand all
Hide whitespace changes
Inline
Side-by-side
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/0.orig/U
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/0.orig/k
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/0.orig/nut
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/0.orig/omega
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/0.orig/p
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
}
}
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allclean
0 → 100755
View file @
c41843e4
#!/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
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun
0 → 100755
View file @
c41843e4
#!/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
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/Allrun.pre
0 → 100755
View file @
c41843e4
#!/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
#------------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/constant/dynamicMeshDict
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/constant/g
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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);
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/constant/transportProperties
0 → 100644
View file @
c41843e4
/*--------------------------------*- 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;
// ************************************************************************* //
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/constant/triSurface/AMI.stl
0 → 100644
View file @
c41843e4
This diff is collapsed.
Click to expand it.
tutorials/incompressible/pimpleFoam/RAS/rotatingFanInRoom/constant/triSurface/desk.stl
0 → 100644
View file @
c41843e4
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
endloop
endfacet
facet normal 0 0 0