-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cfd: second test case added (motorbike)
- Loading branch information
1 parent
b140404
commit 9493396
Showing
44 changed files
with
1,588 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
# OpenFOAM testcase | ||
|
||
- Lid driven cavity | ||
- openfoam.com, OpenFOAM2312 | ||
# OpenFOAM testcases | ||
|
||
Testcases are related to | ||
- openfoam.com | ||
- tested with openFOAM2312 | ||
|
||
## Lid driven cavity | ||
Commands: | ||
- blockMesh | ||
- icoFoam | ||
- icoFoam | ||
|
||
## Motorbike | ||
Commands: | ||
- Allrun | ||
|
||
|
||
|
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
# OpenFOAM testcase | ||
|
||
- Lid driven cavity | ||
- openfoam.com, tested with openFOAM2312 | ||
|
||
|
||
Commands: | ||
- blockMesh | ||
- icoFoam |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,51 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volVectorField; | ||
object U; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 1 -1 0 0 0 0]; | ||
|
||
internalField uniform $flowVelocity; | ||
|
||
boundaryField | ||
{ | ||
#includeEtc "caseDicts/setConstraintTypes" | ||
|
||
#include "include/fixedInlet" | ||
|
||
outlet | ||
{ | ||
type inletOutlet; | ||
inletValue uniform (0 0 0); | ||
value $internalField; | ||
} | ||
|
||
lowerWall | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
|
||
motorBikeGroup | ||
{ | ||
type noSlip; | ||
} | ||
|
||
#include "include/frontBackUpperPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,15 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
inlet | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
|
||
// ************************************************************************* // |
19 changes: 19 additions & 0 deletions
19
tests/cfd/example_motorbike/0.orig/include/frontBackUpperPatches
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,19 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
upperWall | ||
{ | ||
type slip; | ||
} | ||
|
||
frontAndBack | ||
{ | ||
type slip; | ||
} | ||
|
||
// ************************************************************************* // |
14 changes: 14 additions & 0 deletions
14
tests/cfd/example_motorbike/0.orig/include/initialConditions
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 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
flowVelocity (20 0 0); | ||
pressure 0; | ||
turbulentKE 0.24; | ||
turbulentOmega 1.78; | ||
|
||
// ************************************************************************* // |
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,53 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object k; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform $turbulentKE; | ||
|
||
boundaryField | ||
{ | ||
#includeEtc "caseDicts/setConstraintTypes" | ||
|
||
//- Define inlet conditions | ||
#include "include/fixedInlet" | ||
|
||
outlet | ||
{ | ||
type inletOutlet; | ||
inletValue $internalField; | ||
value $internalField; | ||
} | ||
|
||
lowerWall | ||
{ | ||
type kqRWallFunction; | ||
value $internalField; | ||
} | ||
|
||
motorBikeGroup | ||
{ | ||
type kqRWallFunction; | ||
value $internalField; | ||
} | ||
|
||
#include "include/frontBackUpperPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,63 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: 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 0; | ||
|
||
boundaryField | ||
{ | ||
#includeEtc "caseDicts/setConstraintTypes" | ||
|
||
frontAndBack | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
inlet | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
outlet | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
lowerWall | ||
{ | ||
type nutkWallFunction; | ||
value uniform 0; | ||
} | ||
|
||
upperWall | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
motorBikeGroup | ||
{ | ||
type nutkWallFunction; | ||
value uniform 0; | ||
} | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,52 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object omega; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 0 -1 0 0 0 0]; | ||
|
||
internalField uniform $turbulentOmega; | ||
|
||
boundaryField | ||
{ | ||
#includeEtc "caseDicts/setConstraintTypes" | ||
|
||
#include "include/fixedInlet" | ||
|
||
outlet | ||
{ | ||
type inletOutlet; | ||
inletValue $internalField; | ||
value $internalField; | ||
} | ||
|
||
lowerWall | ||
{ | ||
type omegaWallFunction; | ||
value $internalField; | ||
} | ||
|
||
motorBikeGroup | ||
{ | ||
type omegaWallFunction; | ||
value $internalField; | ||
} | ||
|
||
#include "include/frontBackUpperPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,52 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: v2312 | | ||
| \\ / A nd | Website: www.openfoam.com | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object p; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform $pressure; | ||
|
||
boundaryField | ||
{ | ||
#includeEtc "caseDicts/setConstraintTypes" | ||
|
||
inlet | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
outlet | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
|
||
lowerWall | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
motorBikeGroup | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
#include "include/frontBackUpperPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,12 @@ | ||
#!/bin/sh | ||
cd "${0%/*}" || exit # Run from this directory | ||
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions | ||
#------------------------------------------------------------------------------ | ||
|
||
cleanCase0 | ||
|
||
# Remove surface and features | ||
rm -rf constant/triSurface | ||
rm -rf constant/extendedFeatureEdgeMesh | ||
|
||
#------------------------------------------------------------------------------ |
Oops, something went wrong.