mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve diagnostic fields for checkFaMesh -write-vtk
ENH: support VTK output of procIDs for point data for some writers TUT: areaWrite for drippingChair
This commit is contained in:
@ -3,19 +3,30 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
unset decompDict
|
||||
# decompDict=system/decomposeParDict-6
|
||||
# decompDict=system/decomposeParDict-7
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication makeFaMesh
|
||||
|
||||
runApplication decomposePar
|
||||
runApplication -decompose-dict="$decompDict" decomposePar
|
||||
|
||||
# For the processor partitioning
|
||||
runParallel -s finiteVolume foamToVTK -name VTK-parallel -time 0 \
|
||||
-no-finite-area -no-internal -no-lagrangian -no-fields -with-ids
|
||||
# For ids and processor partitioning
|
||||
runParallel -s volume -decompose-dict="$decompDict" \
|
||||
foamToVTK -name VTK-parallel -time 0 \
|
||||
-no-finite-area -no-internal -no-lagrangian -no-fields -with-ids \
|
||||
-patches filmWalls
|
||||
|
||||
runParallel $(getApplication)
|
||||
runParallel -decompose-dict="$decompDict" $(getApplication)
|
||||
|
||||
runParallel -s finiteArea foamToVTK -name VTK-parallel \
|
||||
-no-boundary -no-internal -no-lagrangian
|
||||
if false
|
||||
then
|
||||
# Not usually needed - uses areaWrite
|
||||
runParallel -s area -decompose-dict="$decompDict" \
|
||||
foamToVTK -name VTK-parallel \
|
||||
-no-boundary -no-internal -no-lagrangian -with-ids
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,13 +7,18 @@ runApplication blockMesh
|
||||
|
||||
runApplication makeFaMesh
|
||||
|
||||
# For the cell ids etc
|
||||
runApplication -s finiteVolume.serial foamToVTK -name VTK-serial -time 0 \
|
||||
-no-finite-area -no-internal -no-lagrangian -no-fields -with-ids
|
||||
# For ids and processor partitioning
|
||||
runApplication -s volume.serial foamToVTK -name VTK-serial -time 0 \
|
||||
-no-finite-area -no-internal -no-lagrangian -no-fields -with-ids \
|
||||
-patches filmWalls
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
runApplication -s finiteArea.serial foamToVTK -name VTK-serial \
|
||||
-no-boundary -no-internal -no-lagrangian
|
||||
if false
|
||||
then
|
||||
# Not usually needed - uses areaWrite
|
||||
runApplication -s area.serial foamToVTK -name VTK-serial \
|
||||
-no-boundary -no-internal -no-lagrangian
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
// -*- C++ -*-
|
||||
// Use the areaWrite function object
|
||||
|
||||
areaWrite
|
||||
{
|
||||
type areaWrite;
|
||||
libs (utilityFunctionObjects);
|
||||
log true;
|
||||
|
||||
writeControl writeTime;
|
||||
writeInterval 1;
|
||||
|
||||
// Fields to output (words or regex)
|
||||
fields (Uf_film hf_film pf_film);
|
||||
|
||||
surfaceFormat ensight;
|
||||
|
||||
formatOptions
|
||||
{
|
||||
default { format binary; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -52,5 +52,10 @@ regionFaMaxCo 1;
|
||||
|
||||
maxDeltaT 0.1;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "areaWrite"
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2306 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 6;
|
||||
|
||||
method scotch;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,21 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2306 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 7;
|
||||
|
||||
method scotch;
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user