OUForce: Added a write function to write the energy spectrum

This commit is contained in:
Henry Weller
2023-07-17 15:15:32 +01:00
parent 821be4d281
commit 6fb82953fa
6 changed files with 18 additions and 52 deletions

View File

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

View File

@ -1,15 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=$(getApplication)
runApplication blockMesh
runApplication boxTurb
runApplication $application
runApplication -s enstrophy foamPostProcess -func enstrophy
#------------------------------------------------------------------------------

View File

@ -1,22 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
location "constant";
object boxTurbDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Ea 10;
k0 5;
// ************************************************************************* //

View File

@ -48,4 +48,9 @@ runTimeModifiable true;
graphFormat raw;
functions
{
#includeFunc enstrophy(executeAtStart=no);
}
// ************************************************************************* //