CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   How to find detail on the spline implementation (

panara March 31, 2005 02:37

Dear all, I need to create
Dear all,

I need to create a new mesh using splines...

Where I can found the details about the implementation of simpleSpline and polySpline ??

when I use polySpline with the control point that I have I get a segmentation fault.

When I use simpleSpline instead the curve is created but for some reasons even if my interpolation points have x coordinates in the range of my starting and ending point I get a curve with x values outside this range that mess up the grid

Thanks in advance,


henry March 31, 2005 03:03

The implementation of splines
The implementation of splines in blockMesh is in OpenFOAM-1.1/applications/utilities/mesh/generation/blockMesh/curvedEdges
Unfortunately they haven't been used much and therfore not well tested. Please let us know if you make any improvements to the implementation and it would also be useful to have a few more interesting test meshes using splines that we can distribute with blockMesh.

mattijs September 15, 2006 11:51

Can you please report a bug fo
Can you please report a bug for this?


olle_bodin September 18, 2006 00:54

Will do
Will do

gemaforce May 2, 2008 02:22

Can I ask if the polySpline co
Can I ask if the polySpline command has been fixed for OpenFOAM 1.4.1 already? I have been trying to plot a polySpline, but I'm still getting segmentation errors. And similar to Olle, if it has been changed to polyLine, it works fine. Is there any way I can draw a smooth curve still?


mattijs May 2, 2008 03:22

The blockMeshDict posted above
The blockMeshDict posted above does not contain the start and end point after the control points. (See blockMesh/curvedEdges/polySplineEdge.C where it reads the controlpoints and then two extra points) I have not used splines so cannot help you with their meaning.

andersking July 10, 2008 10:37

Hi, the two vectors at the e
the two vectors at the end of the points list are the starting and ending gradient of the curve. Also, the code has a bug in it (you will always end up with a straight line) The workaround given in the following thread.


wolle1982 December 3, 2008 10:47

Hallo, the workaround is inte
the workaround is integrated in OF-1.5. But as I see, it still doesn't work right. Please help on that and see the examplecase in


All times are GMT -4. The time now is 03:01.