-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from obriengareth/openfoamAI
adding openfoam
- Loading branch information
Showing
38 changed files
with
3,335 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
format ascii; | ||
class volVectorField; | ||
location "0"; | ||
object U; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 1 -1 0 0 0 0]; | ||
|
||
internalField uniform $flowVelocity; | ||
|
||
boundaryField | ||
{ | ||
outlet | ||
{ | ||
type inletOutlet; | ||
inletValue uniform (0 0 0); | ||
value $internalField; | ||
} | ||
|
||
inlet | ||
{ | ||
type atmBoundaryLayerInletVelocity; | ||
#include "include/ABLConditions" | ||
} | ||
|
||
terrain | ||
{ | ||
type uniformFixedValue; | ||
uniformValue (0 0 0); | ||
value uniform (0 0 0); | ||
} | ||
|
||
ground | ||
{ | ||
type uniformFixedValue; | ||
value uniform (0 0 0); | ||
uniformValue constant (0 0 0); | ||
} | ||
|
||
#include "include/sideAndTopPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,56 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
format ascii; | ||
class volScalarField; | ||
location "0"; | ||
object epsilon; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -3 0 0 0 0]; | ||
|
||
#include "include/initialConditions" | ||
|
||
internalField uniform $turbulentEpsilon; | ||
|
||
boundaryField | ||
{ | ||
terrain | ||
{ | ||
type epsilonWallFunction; | ||
Cmu 0.09; | ||
kappa 0.4; | ||
E 9.8; | ||
value $internalField; | ||
} | ||
|
||
outlet | ||
{ | ||
type inletOutlet; | ||
inletValue uniform $turbulentEpsilon; | ||
value $internalField; | ||
} | ||
|
||
inlet | ||
{ | ||
type atmBoundaryLayerInletEpsilon; | ||
#include "include/ABLConditions" | ||
} | ||
|
||
ground | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
#include "include/sideAndTopPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
Binary file added
BIN
+878 Bytes
examples/openfoamAI/ControlSimu/0/include/.sideAndTopPatches.kate-swp
Binary file not shown.
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 | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
Uref 8.0; | ||
Zref 20; | ||
zDir (0 0 1); | ||
flowDir (1 0 0); | ||
z0 uniform 0.1; | ||
zGround uniform 50.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,15 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
inlet | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
|
||
// ************************************************************************* // |
14 changes: 14 additions & 0 deletions
14
examples/openfoamAI/ControlSimu/0/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 | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
flowVelocity (0 0 0); | ||
pressure 0; | ||
turbulentKE 1.3; | ||
turbulentEpsilon 0.01; | ||
|
||
// ************************************************************************* // |
24 changes: 24 additions & 0 deletions
24
examples/openfoamAI/ControlSimu/0/include/sideAndTopPatches
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,24 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
top | ||
{ | ||
type slip; | ||
} | ||
|
||
sides | ||
{ | ||
type slip; | ||
} | ||
|
||
"proc.*" | ||
{ | ||
type processor; | ||
} | ||
|
||
// ************************************************************************* // |
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 | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
format ascii; | ||
class volScalarField; | ||
object k; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform $turbulentKE; | ||
|
||
boundaryField | ||
{ | ||
outlet | ||
{ | ||
type inletOutlet; | ||
inletValue uniform $turbulentKE; | ||
value $internalField; | ||
} | ||
|
||
inlet | ||
{ | ||
type atmBoundaryLayerInletK; | ||
#include "include/ABLConditions" | ||
} | ||
|
||
terrain | ||
{ | ||
type kqRWallFunction; | ||
value uniform 0.0; | ||
} | ||
|
||
ground | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
#include "include/sideAndTopPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,54 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
format ascii; | ||
class volScalarField; | ||
location "0"; | ||
object nut; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -1 0 0 0 0]; | ||
|
||
internalField uniform 0; | ||
|
||
boundaryField | ||
{ | ||
#include "include/ABLConditions" | ||
|
||
inlet | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
outlet | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
terrain | ||
{ | ||
type nutkAtmRoughWallFunction; | ||
z0 $z0; | ||
value uniform 0.0; | ||
} | ||
|
||
ground | ||
{ | ||
type calculated; | ||
value uniform 0; | ||
} | ||
|
||
#include "include/sideAndTopPatches" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,48 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Version: 10 | ||
\\/ M anipulation | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
format ascii; | ||
class volScalarField; | ||
object p; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "include/initialConditions" | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform $pressure; | ||
|
||
boundaryField | ||
{ | ||
inlet | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
outlet | ||
{ | ||
type uniformFixedValue; | ||
uniformValue constant $pressure; | ||
} | ||
|
||
terrain | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
ground | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
#include "include/sideAndTopPatches" | ||
} | ||
|
||
// ************************************************************************* // |
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,10 @@ | ||
#!/bin/sh | ||
cd ${0%/*} || exit 1 # run from this directory | ||
|
||
# Source tutorial clean functions | ||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions | ||
|
||
cleanCase | ||
cleanExplicitFeatures | ||
|
||
#------------------------------------------------------------------------------ |
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,17 @@ | ||
#!/bin/sh | ||
cd ${0%/*} || exit 1 # Run from this directory | ||
|
||
# Source tutorial run functions | ||
. $WM_PROJECT_DIR/bin/tools/RunFunctions | ||
|
||
runApplication blockMesh | ||
runApplication decomposePar -copyZero | ||
runParallel snappyHexMesh -overwrite | ||
|
||
runParallel topoSet | ||
runParallel $(getApplication) | ||
|
||
runApplication reconstructParMesh -constant | ||
runApplication reconstructPar -constant | ||
|
||
#------------------------------------------------------------------------------ |
Binary file not shown.
Oops, something went wrong.