tutorials/compressible/sonicFoam/laminar/shockTube: Added functionObject

tutorials/electromagnetics/mhdFoam/hartmann: Added functionObject

Replaced separate 'postProcess' step with a functionObject executed at
run-time.
This commit is contained in:
Henry Weller 2016-05-31 10:33:48 +01:00
parent c4eedd4762
commit cb1523dbd9
4 changed files with 10 additions and 2 deletions

View File

@ -9,7 +9,6 @@ application=`getApplication`
runApplication blockMesh
runApplication setFields
runApplication $application
runApplication postProcess -func 'mag(U)'
runApplication sample
#------------------------------------------------------------------------------

View File

@ -45,5 +45,10 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc mag
mag{field U;}
}
// ************************************************************************* //

View File

@ -9,7 +9,6 @@ application=`getApplication`
runApplication blockMesh
runApplication $application
runApplication postProcess -func 'components(U)'
runApplication sample
#------------------------------------------------------------------------------

View File

@ -45,5 +45,10 @@ timePrecision 6;
runTimeModifiable true;
functions
{
#includeFunc components
components{field U;}
}
// ************************************************************************* //