41 lines
1.3 KiB
Bash
Executable File
41 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Orient so point to be meshed is inside surface
|
|
surfaceOrient \
|
|
constant/triSurface/m_car01.obj \
|
|
-inside -usePierceTest '(13 -200 149)' \
|
|
constant/triSurface/m_car01_orient.obj \
|
|
> log.surfaceOrient.m_car01 2>&1
|
|
|
|
# Same for outside
|
|
surfaceOrient \
|
|
constant/triSurface/domain.stl \
|
|
-inside -usePierceTest '(13 -200 149)' \
|
|
constant/triSurface/domain_orient.stl \
|
|
> log.surfaceOrient.domain 2>&1
|
|
|
|
# Surface has open edges. Create dummy features for now.
|
|
runApplication surfaceFeatureExtract \
|
|
constant/triSurface/m_car01_orient.obj \
|
|
m_car01 -minElem 10000000
|
|
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.m_car01
|
|
|
|
unset FOAM_SIGFPE
|
|
runApplication surfaceFeatureExtract \
|
|
constant/triSurface/domain_orient.stl \
|
|
domain -includedAngle 125
|
|
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.domain
|
|
|
|
# Generate aligned points (in constant/internalDelaunayVertices) and a
|
|
# mesh from that.
|
|
runApplication cvMesh
|
|
|
|
# Generate some sets for a bit of mesh inspection
|
|
runApplication topoSet -constant -time 0:100
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|