mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- support .vtp format for geometry, surface, line, cloud. - use native reader for handling vtk, vtp, obj, stl surface files. For other formats, use the MeshedSurface (the surfMesh lib) to handle reading and Foam::vtk::Tools::Patch to handle the conversion to vtkPolyData. This combination is more memory efficient. - update tutorial case to include vtp surface geometry
28 lines
784 B
Bash
Executable File
28 lines
784 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
|
|
|
runApplication blockMesh
|
|
runApplication transformPoints -scale '(1.6666 1 1)'
|
|
|
|
runApplication changeDictionary -instance system -dict system/changeDictionaryDict.X
|
|
runApplication mirrorMesh -overwrite
|
|
rm -f log.mirrorMesh
|
|
rm -f log.changeDictionary
|
|
|
|
runApplication changeDictionary -instance system -dict system/changeDictionaryDict.Y
|
|
runApplication mirrorMesh -overwrite
|
|
|
|
restore0Dir
|
|
|
|
runApplication topoSet
|
|
|
|
runApplication createPatch -overwrite
|
|
|
|
runApplication surfaceMeshTriangulate \
|
|
-patches hole ppGeometry.vtp -constant -time ''
|
|
|
|
echo "End"
|
|
|
|
#------------------------------------------------------------------------------
|