INT: splineEdge: allowing usage in extrudeMesh. See #1983.

This commit is contained in:
Mattijs Janssens
2021-05-26 12:22:24 +00:00
parent 8be49d8683
commit 4a87e2d0b4
5 changed files with 125 additions and 17 deletions

View File

@ -3,12 +3,20 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
runApplication extrudeMesh
# Extrude using arcs
USE_ARC=true runApplication -s arc extrudeMesh
# For output fields from checkMesh
mkdir -p 1
runApplication -s arc checkMesh -writeAllFields -time 1
runApplication checkMesh -writeAllFields
# Extrude using splines
USE_ARC=false runApplication -s spline extrudeMesh
# For output fields from checkMesh
mkdir -p 2
runApplication -s spline checkMesh -writeAllFields -time 2
paraFoam -touch -vtk

View File

@ -42,7 +42,9 @@ polylineCoeffs
( 1.5 -1 1.183974596 )
);
edges 9
#if ${USE_ARC:-true}
//- Using arcs
edges
(
line 0 1
arc 1 2 ( 0 -0.087867966 0.962132034 )
@ -54,6 +56,22 @@ polylineCoeffs
arc 7 8 ( 0.976794919 -1 2.009807621 )
line 8 9
);
#else
//- Using spline (different shape):
edges
(
spline 0 9
(
( 0 0 0.05 )
( 0 0 0.5 )
( 0.5 0 0.5 )
( 0.5 0 0 )
( 1.5 0 0 )
( 1.5 -1 0 )
( 1.5 -1 1.183974596 )
)
);
#endif
toleranceCheck 1e-6;
}