mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: car meshing - merge close points on surface, use closedTriSurface.
Wheels are baffle surface.
This commit is contained in:
@ -4,11 +4,15 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
surfacePointMerge constant/triSurface/m_car01.obj \
|
||||
1e-2 constant/triSurface/m_car01_merge.obj \
|
||||
> log.surfacePointMerge 2>&1
|
||||
|
||||
# Orient so point to be meshed is inside surface
|
||||
surfaceOrient \
|
||||
constant/triSurface/m_car01.obj \
|
||||
constant/triSurface/m_car01_merge.obj \
|
||||
-inside -usePierceTest '(13 -200 149)' \
|
||||
constant/triSurface/m_car01_orient.obj \
|
||||
constant/triSurface/m_car01_merge_orient.obj \
|
||||
> log.surfaceOrient.m_car01 2>&1
|
||||
|
||||
# Same for outside
|
||||
@ -20,14 +24,14 @@ surfaceOrient \
|
||||
|
||||
# Surface has open edges. Create dummy features for now.
|
||||
runApplication surfaceFeatureExtract \
|
||||
constant/triSurface/m_car01_orient.obj \
|
||||
m_car01 -minElem 10000000
|
||||
constant/triSurface/m_car01_merge_orient.obj \
|
||||
m_car01 -includedAngle 165 -writeObj
|
||||
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.m_car01
|
||||
|
||||
unset FOAM_SIGFPE
|
||||
runApplication surfaceFeatureExtract \
|
||||
constant/triSurface/domain_orient.stl \
|
||||
domain -includedAngle 125
|
||||
domain -includedAngle 125 -writeObj
|
||||
mv log.surfaceFeatureExtract log.surfaceFeatureExtract.domain
|
||||
|
||||
# Generate aligned points (in constant/internalDelaunayVertices) and a
|
||||
|
||||
Reference in New Issue
Block a user