Update plateHole case to be consistent with User Guide tutorial

This commit is contained in:
Chris Greenshields 2016-06-08 15:34:16 +01:00
parent 43b3fa2ce3
commit 02886159cb
4 changed files with 33 additions and 57 deletions

View File

@ -0,0 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
#------------------------------------------------------------------------------

View File

@ -0,0 +1,14 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=`getApplication`
runApplication blockMesh
runApplication $application
runApplication -s sigma postProcess -func "components(sigma)"
runApplication postProcess -func singleGraph
#------------------------------------------------------------------------------

View File

@ -1,36 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleSurfaceDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
interpolationScheme cellPoint;
surfaceFormat vtk;
surfaces
(
constantPlane
{
type plane;
name plate;
basePoint (0 0 0.25);
normalVector (0 0 1);
}
);
fields ( sigmaEq );
// ************************************************************************* //

View File

@ -5,33 +5,22 @@
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
singleGraph
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
start (0 0.5 0.25);
end (0 2 0.25);
fields (sigmaxx);
interpolationScheme cellPoint;
#includeEtc "caseDicts/postProcessing/graphs/sampleDict.cfg"
setFormat raw;
sets
(
leftPatch
setConfig
{
type uniform;
axis y;
start (0 0.5 0.25);
end (0 2 0.25);
nPoints 100;
}
);
fields (sigmaEq);
// Must be last entry
#includeEtc "caseDicts/postProcessing/graphs/graph.cfg"
}
// ************************************************************************* //