TUT: avoid redundant -finite-area option for foamToEnsight, foamToVTK

TUT: remove paraFoam hints from tutorials (mostly only need paraview now)

STYLE: remove reference to paraview _SM plugins (OpenFOAM-v1912 and earlier)
This commit is contained in:
Mark Olesen 2022-06-15 12:23:58 +02:00
parent ed621480ac
commit 343854ab31
39 changed files with 7 additions and 148 deletions

View File

@ -7,7 +7,7 @@
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Copyright (C) 2011-2016 OpenFOAM Foundation # Copyright (C) 2011-2016 OpenFOAM Foundation
# Copyright (C) 2016-2021 OpenCFD Ltd. # Copyright (C) 2016-2022 OpenCFD Ltd.
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
# This file is part of OpenFOAM, distributed under GPL-3.0-or-later. # This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
@ -205,14 +205,12 @@ then
# Check for different names. For example, # Check for different names. For example,
# - ParaFoamReader = (paraview >= 5.7) # - ParaFoamReader = (paraview >= 5.7)
# - libParaFoamReader = (paraview < 5.7) and (OPENFOAM > 1912) # - libParaFoamReader = (paraview < 5.7) and (OPENFOAM > 1912)
# - libPVFoamReader_SM = (OPENFOAM <= 1912)
case "$plugin" in case "$plugin" in
(blockReader) (blockReader)
for libName in \ for libName in \
ParaFoamBlockReader \ ParaFoamBlockReader \
libParaFoamBlockReader \ libParaFoamBlockReader \
libPVblockMeshReader_SM \
; ;
do do
if [ -f "$PV_PLUGIN_PATH/$libName.so" ] if [ -f "$PV_PLUGIN_PATH/$libName.so" ]
@ -226,7 +224,6 @@ then
for libName in \ for libName in \
ParaFoamReader \ ParaFoamReader \
libParaFoamReader \ libParaFoamReader \
libPVFoamReader_SM \
; ;
do do
if [ -f "$PV_PLUGIN_PATH/$libName.so" ] if [ -f "$PV_PLUGIN_PATH/$libName.so" ]

View File

@ -26,8 +26,6 @@ done
runApplication createBaffles -region rightFluid -overwrite runApplication createBaffles -region rightFluid -overwrite
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo echo
echo "End" echo "End"

View File

@ -20,9 +20,6 @@ runApplication -s panelRegion decomposePar -region panelRegion
runParallel $(getApplication) runParallel $(getApplication)
paraFoam -touch
paraFoam -touch -region panelRegion
if notTest "$@" if notTest "$@"
then then
(cd validation && ./plot) (cd validation && ./plot)

View File

@ -33,6 +33,4 @@ runApplication -s filmRegion createPatch -region filmRegion -overwrite
# Run # Run
runApplication $(getApplication) runApplication $(getApplication)
paraFoam -touchAll
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -34,8 +34,4 @@ runApplication -s fields \
runParallel $(getApplication) runParallel $(getApplication)
paraFoam -touch
paraFoam -touch -region panelRegion
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -13,6 +13,4 @@ runApplication extrudeToRegionMesh -overwrite
runApplication $(getApplication) runApplication $(getApplication)
paraFoam -touchAll
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,2 +0,0 @@
faceSet coupledPatch new patchToFace coupledPatch
faceZoneSet panel new setToFaceZone coupledPatch

View File

@ -20,7 +20,7 @@ runParallel $(getApplication) $fileHandler
if [ "$convertVTK" = true ] if [ "$convertVTK" = true ]
then then
runParallel foamToVTK $fileHandler -finite-area -no-internal -no-boundary runParallel foamToVTK $fileHandler -no-internal -no-boundary
fi fi
case "$reconstruct" in case "$reconstruct" in

View File

@ -18,7 +18,7 @@ runParallel $decompDict makeFaMesh $fileHandler
runParallel $decompDict $(getApplication) $fileHandler runParallel $decompDict $(getApplication) $fileHandler
runParallel $decompDict foamToEnsight -finite-area runParallel $decompDict foamToEnsight
case "$reconstruct" in case "$reconstruct" in
(true) runApplication reconstructPar $fileHandler ;; (true) runApplication reconstructPar $fileHandler ;;

View File

@ -27,8 +27,4 @@ done
runApplication createExternalCoupledPatchGeometry \ runApplication createExternalCoupledPatchGeometry \
-regions '(topAir heater)' coupleGroup -regions '(topAir heater)' coupleGroup
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -24,8 +24,4 @@ done
runApplication $(getApplication) runApplication $(getApplication)
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -33,8 +33,4 @@ runParallel $(getApplication)
# Reconstruct # Reconstruct
runApplication reconstructPar -allRegions runApplication reconstructPar -allRegions
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -23,8 +23,6 @@ do
runApplication -s $region changeDictionary -region $region runApplication -s $region changeDictionary -region $region
done done
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo echo
echo "End" echo "End"

View File

@ -11,9 +11,6 @@ runApplication splitMeshRegions -cellZonesOnly -overwrite
runApplication topoSet -region gas runApplication topoSet -region gas
paraFoam -region gas -touch
paraFoam -region solid -touch
runApplication decomposePar -allRegions runApplication decomposePar -allRegions
runParallel $(getApplication) runParallel $(getApplication)

View File

@ -54,8 +54,4 @@ do
redistributePar -reconstruct -region "$region" redistributePar -reconstruct -region "$region"
done done
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -35,8 +35,4 @@ done
# Run on single processor # Run on single processor
runApplication $(getApplication) runApplication $(getApplication)
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -54,8 +54,4 @@ do
redistributePar -reconstruct -region $region redistributePar -reconstruct -region $region
done done
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,15 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Setup case
./Allrun.pre ./Allrun.pre
#-- Run on single processor
runApplication $(getApplication) runApplication $(getApplication)
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -19,8 +19,4 @@ runParallel $(getApplication)
# Reconstruct # Reconstruct
runApplication reconstructPar -allRegions runApplication reconstructPar -allRegions
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -31,8 +31,4 @@ runParallel $(getApplication)
# Reconstruct # Reconstruct
runApplication reconstructPar -allRegions runApplication reconstructPar -allRegions
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -19,8 +19,4 @@ reconstructPar -allRegions
# redistributePar -reconstruct -region $region # redistributePar -reconstruct -region $region
#done #done
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -28,8 +28,4 @@ done
runApplication createExternalCoupledPatchGeometry \ runApplication createExternalCoupledPatchGeometry \
-regions '(topAir heater)' coupleGroup -regions '(topAir heater)' coupleGroup
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -19,10 +19,6 @@ runApplication -s air.2 \
rm -rf constant/air/polyMesh/sets rm -rf constant/air/polyMesh/sets
# Create dummy files for post-processing
paraFoam -touch -region porous
paraFoam -touch -region air
# Set initial fields # Set initial fields
restore0Dir restore0Dir

View File

@ -6,9 +6,6 @@ cd "${0%/*}" || exit # Run from this directory
# Create mesh # Create mesh
runApplication -s solid blockMesh -region solid runApplication -s solid blockMesh -region solid
# create dummy files for post-processing
paraFoam -touch -region solid
restore0Dir restore0Dir
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -26,8 +26,4 @@ runApplication $(getApplication)
runApplication foamToEnsight -allRegions runApplication foamToEnsight -allRegions
# echo
# echo "Use paraFoam -touch-all to create files for paraview post-processing"
# echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -33,8 +33,4 @@ runParallel foamToEnsight -allRegions
# Reconstruct # Reconstruct
runApplication reconstructPar -allRegions runApplication reconstructPar -allRegions
# echo
# echo "Use paraFoam -touch-all to create files for paraview post-processing"
# echo
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -14,9 +14,6 @@ runApplication splitMeshRegions -cellZonesOnly -overwrite
runApplication setFields -region water runApplication setFields -region water
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
echo "End" echo "End"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -11,7 +11,4 @@ runApplication topoSet
runApplication extrudeToRegionMesh -overwrite runApplication extrudeToRegionMesh -overwrite
paraFoam -touch
paraFoam -touch -region wallFilmRegion
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -30,7 +30,4 @@ cp -r system/wallFilmRegion.orig system/wallFilmRegion
find ./0 -maxdepth 1 -type f -exec \ find ./0 -maxdepth 1 -type f -exec \
sed -i -e "s/wallFilm/\"(region0_to.*)\"/g" {} \; sed -i -e "s/wallFilm/\"(region0_to.*)\"/g" {} \;
paraFoam -touch
paraFoam -touch -region wallFilmRegion
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,30 +0,0 @@
faceSet cubeFaceSet clear
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.299) (0.601 0.301 0.301)
faceSet cubeFaceSet add boxToFace (0.599 0.099 0.099) (0.601 0.301 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.099) (0.601 0.301 0.101)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.099) (0.401 0.301 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.299 0.099) (0.601 0.301 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.099) (0.601 0.101 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.599) (0.601 0.301 0.601)
faceSet cubeFaceSet add boxToFace (0.599 0.099 0.399) (0.601 0.301 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.399) (0.601 0.301 0.401)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.399) (0.401 0.301 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.299 0.399) (0.601 0.301 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.099 0.399) (0.601 0.101 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.299) (0.601 0.601 0.301)
faceSet cubeFaceSet add boxToFace (0.599 0.399 0.099) (0.601 0.601 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.099) (0.601 0.601 0.101)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.099) (0.401 0.601 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.599 0.099) (0.601 0.601 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.099) (0.601 0.401 0.301)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.599) (0.601 0.601 0.601)
faceSet cubeFaceSet add boxToFace (0.599 0.399 0.399) (0.601 0.601 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.399) (0.601 0.601 0.401)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.399) (0.401 0.601 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.599 0.399) (0.601 0.601 0.601)
faceSet cubeFaceSet add boxToFace (0.399 0.399 0.399) (0.601 0.401 0.601)
cellSet cubeFacesCells new faceToCell cubeFaceSet owner
faceZoneSet cubeFaces new setsToFaceZone cubeFaceSet cubeFacesCells
faceSet FloorFaces new boxToFace (-0.001 -0.001 -0.001) (1.001 1.001 0.001)
cellSet floorCells new faceToCell FloorFaces owner
faceZoneSet floorFaces new setsToFaceZone FloorFaces floorCells

View File

@ -2,7 +2,7 @@
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
# ========= | # # ========= | #
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox #
# \\ / O peration | Version: v2112 # # \\ / O peration | Version: v2206 #
# \\ / A nd | Website: www.openfoam.com # # \\ / A nd | Website: www.openfoam.com #
# \\/ M anipulation | # # \\/ M anipulation | #
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
@ -26,6 +26,7 @@ nz=2
tmpSetSet='patchify.setSet' tmpSetSet='patchify.setSet'
rm -f patchify.setSet rm -f patchify.setSet
trap 'echo "Removing $tmpSetSet" 1>&2; rm -f $tmpSetSet' EXIT TERM INT
initialiseFaceSet() initialiseFaceSet()

View File

@ -12,7 +12,4 @@ runApplication topoSet -dict system/wallFilmRegion.topoSet
runApplication extrudeToRegionMesh -overwrite runApplication extrudeToRegionMesh -overwrite
paraFoam -touch
paraFoam -touch -region wallFilmRegion
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -29,7 +29,4 @@ runApplication -s createWallFilmRegionPatches \
runApplication createPatch -region wallFilmRegion -overwrite runApplication createPatch -region wallFilmRegion -overwrite
paraFoam -touch
paraFoam -touch -region wallFilmRegion
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -20,9 +20,6 @@ runApplication checkMesh -allRegions -allGeometry
restore0Dir restore0Dir
echo
echo "Use paraFoam -touch-all to create files for paraview post-processing"
echo
echo "End" echo "End"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -24,6 +24,4 @@ USE_ARC=false runApplication -s spline extrudeMesh
mkdir -p 2 mkdir -p 2
runApplication -s spline checkMesh -writeAllFields -time 2 runApplication -s spline checkMesh -writeAllFields -time 2
paraFoam -touch -vtk
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -3,8 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
paraFoam -vtk -touch
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh

View File

@ -21,7 +21,7 @@ defaultFieldValues
regions regions
( (
boxToCell boxToCell
{ {
box (1 -0.05 0) (4 0.05 3); box (1 -0.05 0) (4 0.05 3);

View File

@ -29,9 +29,4 @@ runParallel $(getApplication)
runApplication reconstructPar -allRegions runApplication reconstructPar -allRegions
echo
echo "creating files for paraview post-processing"
echo
paraFoam -touchAll
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -40,7 +40,7 @@ regions
volScalarFieldValue alpha.water 1 volScalarFieldValue alpha.water 1
); );
} }
boxToCell boxToCell
{ {
box (0.30 0 -1) (0.59 0.3 1); box (0.30 0 -1) (0.59 0.3 1);