Tutorial update

This commit is contained in:
Hrvoje Jasak 2010-10-13 12:38:34 +01:00
parent 974746246f
commit 93effde8e9
44 changed files with 247 additions and 502 deletions

View file

@ -1,14 +0,0 @@
#!/bin/sh
currDir=`pwd`
application=`basename $currDir`
cases="springDamper sixDOFmotion"
tutorialPath=`dirname $0`/..
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
for case in $cases
do
cleanCase $case
rm $case/*.dat
done

View file

@ -1,13 +0,0 @@
#!/bin/sh
currDir=`pwd`
application=`basename $currDir`
cases="springDamper sixDOFmotion"
tutorialPath=`dirname $0`/..
. $WM_PROJECT_DIR/bin/tools/RunFunctions
for case in $cases
do
(cd $case; runApplication $application)
done

View file

@ -0,0 +1,7 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -f *.dat

View file

@ -0,0 +1,7 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application="sixDOFSolver"
runApplication $application

View file

@ -0,0 +1,7 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -f *.dat

View file

@ -0,0 +1,7 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application="sixDOFSolver"
runApplication $application

View file

@ -1,52 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5
(
impellerWall
{
type wall;
nFaces 68;
startFace 1040;
}
baffleWall
{
type wall;
nFaces 84;
startFace 1108;
}
insideSlider
{
type patch;
nFaces 36;
startFace 1192;
}
outsideSlider
{
type patch;
nFaces 36;
startFace 1228;
}
defaultFaces
{
type empty;
nFaces 1152;
startFace 1264;
}
)
// ************************************************************************* //

View file

@ -10,12 +10,6 @@ FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object fvSolution;
}
@ -24,12 +18,10 @@ FoamFile
solvers
{
pcorr PCG
pcorr
{
preconditioner
{
type DIC;
}
solver BiCGStab;
preconditioner DILU;
minIter 0;
maxIter 1000;
@ -37,59 +29,41 @@ solvers
relTol 0;
};
p PCG
p
{
preconditioner
{
type DIC;
}
solver CG;
preconditioner Cholesky;
minIter 0;
maxIter 1000;
tolerance 1e-06;
relTol 0.05;
tolerance 1e-07;
relTol 0.0;
};
pFinal PCG
pFinal
{
preconditioner
{
type DIC;
}
solver CG;
preconditioner Cholesky;
minIter 0;
maxIter 1000;
tolerance 1e-06;
tolerance 1e-07;
relTol 0;
};
U PBiCG
U
{
preconditioner
{
type DILU;
}
solver BiCGStab;
preconditioner DILU;
minIter 0;
maxIter 1000;
tolerance 1e-05;
relTol 0;
};
cellMotionUx PCG
{
preconditioner
{
type DIC;
}
minIter 0;
maxIter 1000;
tolerance 1e-08;
tolerance 1e-07;
relTol 0;
};
}
PISO
{
nCorrectors 4;

View file

@ -5,5 +5,5 @@
cleanCase
rm -rf VTK
rm constant/polyMesh/boundary
rm -f constant/polyMesh/boundary
rm -rf constant/polyMesh/sets

View file

@ -62,7 +62,7 @@ functions
phi phi;
// Where to load it from (if not already in solver)
functionObjectLibs ("libsampling.so");
functionObjectLibs ("libcheckFunctionObjects.so");
}
);

View file

@ -18,12 +18,10 @@ FoamFile
solvers
{
pcorr BiCGStab
pcorr
{
preconditioner
{
type DILU;
}
solver BiCGStab;
preconditioner DILU;
minIter 0;
maxIter 1000;
@ -31,12 +29,10 @@ solvers
relTol 0;
};
p BiCGStab
p
{
preconditioner
{
type DILU;
}
solver CG;
preconditioner Cholesky;
minIter 0;
maxIter 1000;
@ -44,12 +40,10 @@ solvers
relTol 0.0;
};
pFinal BiCGStab
pFinal
{
preconditioner
{
type DILU;
}
solver CG;
preconditioner Cholesky;
minIter 0;
maxIter 1000;
@ -57,12 +51,10 @@ solvers
relTol 0;
};
U BiCGStab
U
{
preconditioner
{
type DILU;
}
solver BiCGStab;
preconditioner DILU;
minIter 0;
maxIter 1000;
@ -71,6 +63,7 @@ solvers
};
}
PISO
{
nCorrectors 4;

View file

@ -25,7 +25,7 @@ License
Author
Frank Bos, TU Delft. All rights reserved.
\*----------------------------------------------------------------------------*/
\*---------------------------------------------------------------------------*/
#include "RBFMotionFunctionObject.H"
#include "addToRunTimeSelectionTable.H"
@ -56,15 +56,14 @@ Foam::RBFMotionFunctionObject::RBFMotionFunctionObject
const dictionary& dict
)
:
functionObject(),
name_(name),
functionObject(name),
time_(t),
regionName_(polyMesh::defaultRegion),
rotationAmplitude_(readScalar(dict.lookup("rotationAmplitude"))),
rotationFrequency_(readScalar(dict.lookup("rotationFrequency"))),
translationAmplitude_(dict.lookup("translationAmplitude")),
translationFrequency_(dict.lookup("translationFrequency")),
initialRotationOrigin_(dict.lookup("initialRotationOrigin")),
rotationAmplitude_(readScalar(dict.lookup("rotationAmplitude"))),
rotationFrequency_(readScalar(dict.lookup("rotationFrequency"))),
translationAmplitude_(dict.lookup("translationAmplitude")),
translationFrequency_(dict.lookup("translationFrequency")),
initialRotationOrigin_(dict.lookup("initialRotationOrigin")),
statPoints_()
{
@ -86,7 +85,7 @@ bool Foam::RBFMotionFunctionObject::start()
mesh.lookupObject<RBFMotionSolver>("dynamicMeshDict")
);
statPoints_ = ms.movingPoints();
statPoints_ = ms.movingPoints();
return true;
}

View file

@ -58,20 +58,17 @@ class RBFMotionFunctionObject
{
// Private data
//- Name
const word name_;
//- Reference to main object registry
const Time& time_;
//- Region name
word regionName_;
scalar rotationAmplitude_;
scalar rotationFrequency_;
vector translationAmplitude_;
vector translationFrequency_;
vector initialRotationOrigin_;
scalar rotationAmplitude_;
scalar rotationFrequency_;
vector translationAmplitude_;
vector translationFrequency_;
vector initialRotationOrigin_;
//- Stationary points
pointField statPoints_;
@ -114,7 +111,7 @@ public:
//- Read and set the function object if its data has changed
virtual bool read(const dictionary& dict);
//- Update for changes of mesh
//- Update for changes of mesh
virtual void movePoints(const pointField&)
{}
};

View file

@ -1,9 +1,9 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Revision: 1708 |
| \\/ M anipulation | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{

View file

@ -58,10 +58,10 @@ maxDeltaT 0.25;
functions
(
RBFMotion
{
type RBFMotion;
functionObjectLibs ("libRBFMotionFunction.so");
RBFMotion
{
type RBFMotion;
functionObjectLibs ("libRBFMotionFunction.so");
rotationAmplitude 0.9;
rotationFrequency 0.25;
translationAmplitude (0.0 3.0 0.0);

View file

@ -18,32 +18,29 @@ FoamFile
solvers
{
p CG
p
{
preconditioner
{
type DIC;
}
solver CG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
pFinal CG
pFinal
{
preconditioner
{
type DIC;
}
solver CG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
U BiCGStab
U
{
preconditioner
{
type DILU;
}
solver BiCGStab;
preconditioner DILU;
tolerance 1e-7;
relTol 0;
};

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -16,29 +16,33 @@ FoamFile
solvers
{
pcorr PCG
pcorr
{
solver PCG;
preconditioner DIC;
tolerance 1e-02;
relTol 0;
};
p PCG
p
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0.05;
};
pFinal PCG
pFinal
{
solver PCG;
preconditioner DIC;
tolerance 1e-06;
relTol 0;
};
U PBiCG
U
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;

View file

@ -1,22 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object tetFemSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
motionU ICCG 1e-06 0;
}
// ************************************************************************* //

View file

@ -0,0 +1,8 @@
#!/bin/sh
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -f 0/motionGamma
( cd setMotionMovingCone ; wclean )

View file

@ -0,0 +1,11 @@
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name from directory
application="icoDyMFoam"
compileApplication setMotionMovingCone
runApplication setMotionMovingCone
runApplication blockMesh
runApplication $application

View file

@ -1,84 +1,70 @@
/*---------------------------------------------------------------------------*\
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.4.1 |
| \\ / A nd | Web: http://www.openfoam.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
root "/home/hjasak/OpenFOAM/OpenFOAM-1.4.1/tutorials/icoDyMFoam";
case "movingConeMotion";
instance "constant";
local "polyMesh";
class polyBoundaryMesh;
object boundary;
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
8
(
movingWall
{
type wall;
nFaces 85;
startFace 3665;
}
farFieldMoving
{
type patch;
nFaces 50;
startFace 3750;
}
fixedWall
{
type wall;
nFaces 35;
startFace 3800;
}
axis
{
type empty;
nFaces 0;
startFace 3835;
}
left
{
type patch;
nFaces 30;
startFace 3835;
}
farField
{
type patch;
nFaces 35;
startFace 3865;
}
back
{
type wedge;
nFaces 1900;
startFace 3900;
}
front
{
type wedge;
nFaces 1900;
startFace 5800;
}
movingWall
{
type wall;
nFaces 85;
startFace 3665;
}
farFieldMoving
{
type patch;
nFaces 50;
startFace 3750;
}
fixedWall
{
type wall;
nFaces 35;
startFace 3800;
}
axis
{
type empty;
nFaces 0;
startFace 3835;
}
left
{
type patch;
nFaces 30;
startFace 3835;
}
farField
{
type patch;
nFaces 35;
startFace 3865;
}
back
{
type wedge;
nFaces 1900;
startFace 3900;
}
front
{
type wedge;
nFaces 1900;
startFace 5800;
}
)
// ************************************************************************* //

View file

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.4 |
@ -10,12 +10,6 @@ FoamFile
{
version 2.0;
format ascii;
root "";
case "";
instance "";
local "";
class dictionary;
object fvSolution;
}
@ -24,12 +18,10 @@ FoamFile
solvers
{
pcorr PCG
pcorr
{
preconditioner
{
type DIC;
}
solver PCG;
preconditioner DIC;
minIter 0;
maxIter 1000;
@ -37,12 +29,10 @@ solvers
relTol 0;
};
p PCG
p
{
preconditioner
{
type DIC;
}
solver PCG;
preconditioner DIC;
minIter 0;
maxIter 1000;
@ -50,12 +40,10 @@ solvers
relTol 0.05;
};
pFinal PCG
pFinal
{
preconditioner
{
type DIC;
}
solver PCG;
preconditioner DIC;
minIter 0;
maxIter 1000;
@ -63,33 +51,19 @@ solvers
relTol 0;
};
U PBiCG
U
{
preconditioner
{
type DILU;
}
solver PBiCG;
preconditioner DILU;
minIter 0;
maxIter 1000;
tolerance 1e-05;
relTol 0;
};
cellMotionUx PCG
{
preconditioner
{
type DIC;
}
minIter 0;
maxIter 1000;
tolerance 1e-08;
relTol 0;
};
}
PISO
{
nCorrectors 2;

View file

@ -18,8 +18,9 @@ FoamFile
solvers
{
motionU amgSolver
motionU
{
solver amgSolver;
cycle W-cycle;
policy AAMG;
nPreSweeps 0;

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile

View file

@ -18,12 +18,10 @@ FoamFile
solvers
{
pcorr PCG
pcorr
{
preconditioner
{
type DIC;
}
solver PCG;
preconditioner DIC;
minIter 0;
maxIter 1000;
@ -31,12 +29,10 @@ solvers
relTol 0;
};
p PCG
p
{
preconditioner
{
type DIC;
}
solver PCG;
preconditioner DIC;
minIter 0;
maxIter 1000;
@ -44,12 +40,10 @@ solvers
relTol 0.0;
};
pFinal PCG
pFinal
{
preconditioner
{
type DIC;
}
solver PCG;
preconditioner DIC;
minIter 0;
maxIter 1000;
@ -57,12 +51,10 @@ solvers
relTol 0;
};
U PBiCG
U
{
preconditioner
{
type DILU;
}
solver PBiCG;
preconditioner DILU;
minIter 0;
maxIter 1000;

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,8 +1,8 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,56 +0,0 @@
#!/bin/sh
cd PTT-Exponential
./Allclean
cd ..
cd DCPP
./Allclean
cd ..
cd Giesekus
./Allclean
cd ..
cd FENE-CR
./Allclean
cd ..
cd FENE-P
./Allclean
cd ..
cd Feta-PTT
./Allclean
cd ..
cd Leonov
./Allclean
cd ..
cd Oldroyd-B
./Allclean
cd ..
cd S-MDCPP
./Allclean
cd ..
cd PTT-Linear
./Allclean
cd ..
cd WhiteMetzner/CarreauYasuda
./Allclean
cd ../..
cd XPP_DE
./Allclean
cd ..
cd XPP_SE
./Allclean
cd ..

View file

@ -1,55 +0,0 @@
#!/bin/sh
cd PTT-Exponential
./Allrun
cd ..
cd DCPP
./Allrun
cd ..
cd Giesekus
./Allrun
cd ..
cd FENE-CR
./Allrun
cd ..
cd FENE-P
./Allrun
cd ..
cd Feta-PTT
./Allrun
cd ..
cd Leonov
./Allrun
cd ..
cd Oldroyd-B
./Allrun
cd ..
cd S-MDCPP
./Allrun
cd ..
cd PTT-Linear
./Allrun
cd ..
cd White-Metzner/Carreau-Yasuda
./Allrun
cd ../..
cd XPP_DE
./Allrun
cd ..
cd XPP_SE
./Allrun
cd ..

View file

@ -3,7 +3,5 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -R -f sets
echo "done!"
cleanCase
rm -rf sets

View file

@ -3,6 +3,5 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"
cleanCase

View file

@ -3,7 +3,6 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -R -f sets
echo "done!"
cleanCase
rm -rf sets

View file

@ -3,6 +3,5 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"
cleanCase

View file

@ -3,7 +3,6 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -R -f sets
echo "done!"
cleanCase
rm -rf sets

View file

@ -3,6 +3,6 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"
cleanCase
echo "done!"

View file

@ -3,7 +3,6 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -R -f sets
echo "done!"
cleanCase
rm -R -f sets

View file

@ -3,6 +3,5 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"
cleanCase

View file

@ -3,7 +3,6 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -R -f sets
echo "done!"
cleanCase
rm -Rf sets

View file

@ -3,6 +3,5 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"
cleanCase

View file

@ -3,6 +3,5 @@
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"
cleanCase

View file

@ -4,5 +4,4 @@
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
echo "done!"