forked from OpenFOAM/OpenFOAM-2.3.x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:OpenFOAM/OpenFOAM-2.3.x
- Loading branch information
Showing
43 changed files
with
651 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 28 additions & 37 deletions
65
...ngineFoam/kivaTest/system/controlDict.1st → ...ssible/simpleFoam/windAroundBuildings/0/U
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
47
tutorials/incompressible/simpleFoam/windAroundBuildings/0/epsilon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
47
tutorials/incompressible/simpleFoam/windAroundBuildings/0/k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
44
tutorials/incompressible/simpleFoam/windAroundBuildings/0/nut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
|
||
// ************************************************************************* // |
42 changes: 23 additions & 19 deletions
42
...eFoam/kivaTest/constant/polyMesh/boundary → ...ssible/simpleFoam/windAroundBuildings/0/p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
13
tutorials/incompressible/simpleFoam/windAroundBuildings/Allclean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
tutorials/incompressible/simpleFoam/windAroundBuildings/Allrun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.