mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
INT: splineEdge: allowing usage in extrudeMesh. See #1983.
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user