Skip to content

Commit

Permalink
Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-2.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry authored and Henry committed May 20, 2015
2 parents bd11d30 + 9585db0 commit da9e1a8
Show file tree
Hide file tree
Showing 43 changed files with 651 additions and 367 deletions.
6 changes: 4 additions & 2 deletions tutorials/combustion/engineFoam/kivaTest/Allclean
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ cd ${0%/*} || exit 1 # run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

mv ./-180 temp180
rm -rf 0
cp system/controlDict.1st system/controlDict
cleanCase

rm -rf 0 > /dev/null 2>&1
rm -f constant/polyMesh/boundary > /dev/null 2>&1

mv temp180 ./-180

# ----------------------------------------------------------------- end-of-file
6 changes: 0 additions & 6 deletions tutorials/combustion/engineFoam/kivaTest/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ application=`getApplication`

runApplication kivaToFoam -file otape17

cp system/controlDict.1st system/controlDict
runApplication $application
mv log.$application log.$application.1

cp system/controlDict.2nd system/controlDict
runApplication $application
mv log.$application log.$application.2

# ----------------------------------------------------------------- end-of-file
23 changes: 22 additions & 1 deletion tutorials/combustion/engineFoam/kivaTest/system/controlDict
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ startTime -180;

stopAt endTime;

endTime -15;
endTime 60;

deltaT 0.25;

Expand Down Expand Up @@ -51,5 +51,26 @@ maxCo 0.2;

maxDeltaT 1;

functions
{
timeStep
{
type coded;
functionObjectLibs ("libutilityFunctionObjects.so");
redirectType setDeltaT;

code
#{
const Time& runTime = mesh().time();
if (runTime.timeToUserTime(runTime.value()) >= -15.0)
{
const_cast<Time&>(runTime).setDeltaT
(
runTime.userTimeToTime(0.025)
);
}
#};
}
}

// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -1,55 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict.1st;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application engineFoam;
Uinlet (10 0 0);

startFrom startTime;
dimensions [0 1 -1 0 0 0 0];

startTime -180;

stopAt endTime;

endTime -15;

deltaT 0.25;

writeControl runTime;

writeInterval 5;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

adjustTimeStep no;

maxCo 0.2;

maxDeltaT 1;
internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform $Uinlet;
}

outlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

wall
{
type fixedValue;
value uniform (0 0 0);
}

#includeEtc "caseDicts/setConstraintTypes"
}

// ************************************************************************* //
47 changes: 47 additions & 0 deletions tutorials/incompressible/simpleFoam/windAroundBuildings/0/epsilon
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

epsilonInlet 0.03; // Cmu^0.75 * k^1.5 / L ; L =10

dimensions [0 2 -3 0 0 0 0];

internalField uniform $epsilonInlet;

boundaryField
{
inlet
{
type fixedValue;
value uniform $epsilonInlet;
}

outlet
{
type inletOutlet;
inletValue uniform $epsilonInlet;
value uniform $epsilonInlet;
}

wall
{
type epsilonWallFunction;
value uniform $epsilonInlet;
}

#includeEtc "caseDicts/setConstraintTypes"
}

// ************************************************************************* //
47 changes: 47 additions & 0 deletions tutorials/incompressible/simpleFoam/windAroundBuildings/0/k
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

kInlet 1.5; // approx k = 1.5*(I*U)^2 ; I = 0.1

dimensions [0 2 -2 0 0 0 0];

internalField uniform $kInlet;

boundaryField
{
inlet
{
type fixedValue;
value uniform $kInlet;
}

outlet
{
type inletOutlet;
inletValue uniform $kInlet;
value uniform $kInlet;
}

wall
{
type kqRWallFunction;
value uniform $kInlet;
}

#includeEtc "caseDicts/setConstraintTypes"
}

// ************************************************************************* //
44 changes: 44 additions & 0 deletions tutorials/incompressible/simpleFoam/windAroundBuildings/0/nut
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -1 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type calculated;
value uniform 0;
}

outlet
{
type calculated;
value uniform 0;
}

wall
{
type nutkWallFunction;
value uniform 0;
}

#includeEtc "caseDicts/setConstraintTypes"
}

// ************************************************************************* //
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / O peration | Version: 2.3.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

3
(
piston
dimensions [0 2 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
inlet
{
type wall;
nFaces 1326;
startFace 79522;
type zeroGradient;
}
liner

outlet
{
type wall;
nFaces 2710;
startFace 80848;
type totalPressure;
p0 uniform 0;
gamma 1.4;
value uniform 0;
}
cylinderHead

wall
{
type wall;
nFaces 2184;
startFace 83558;
type zeroGradient;
}
)

#includeEtc "caseDicts/setConstraintTypes"
}

// ************************************************************************* //
13 changes: 13 additions & 0 deletions tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

cleanCase

rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/buildings.eMesh > /dev/null 2>&1
rm -f constant/polyMesh/boundary > /dev/null 2>&1

# ----------------------------------------------------------------- end-of-file
14 changes: 14 additions & 0 deletions tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication surfaceFeatureExtract

runApplication blockMesh
runApplication snappyHexMesh -overwrite

runApplication $(getApplication)

# ----------------------------------------------------------------- end-of-file
Loading

0 comments on commit da9e1a8

Please sign in to comment.