|
[Sponsors] |
October 20, 2007, 07:53 |
How to use the spline commands
|
#1 |
New Member
Tom McEwan
Join Date: Mar 2009
Location: England
Posts: 1
Rep Power: 0 |
Can anyone please tell me the details of how to define the different kinds of spline in blockMesh? The manual gives the keywords, but precious little else except that they require a list of interpolation points.
Specifically, I need to know how many points they need, the syntax for listing the points, which points do what, what order the points need to be in, and whether the order also has to be oriented a particular way between the two vertices the splined edge joins. The actual curve generating equation would also be useful. |
|
April 7, 2008, 15:46 |
I would also like to know how
|
#2 |
New Member
Jeremiah Hall
Join Date: Mar 2009
Location: Denver, Co, USA
Posts: 10
Rep Power: 17 |
I would also like to know how these commands work. I have tried to create an airfoil shape within a rectangular domain and have had some problems. I can use the simpleSpline command, but at the tail of the airfoil it doesn't line up nicely with the beginning of the next block, so I get some cells that are folded over. I have tried to use the polySpline command, but I get an error about unmatched ( .
By the way, I initially set it up in FoamX, then edited the file manually. |
|
May 5, 2008, 18:47 |
I'll add a bump to this messag
|
#3 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
I'll add a bump to this message. It seems like the syntax should be the same as polyLine:
polySpline A B (i j k l m n) and the resulting spline should pass from A to B through i j k l m n. When I change over to simpleSpline, most things work fine except for the above-mentioned folding over of cells near sharp corners. I get the feeling that just as polyLine joins the interpolation points with multiple straight lines, polySpline connects the points with multiple splines. Since polyLine only uses straight lines, the way you step from i to j, then j to k is fairly simple. I think this is where the problem arises. It seems like there should be some extra parameters with the interpolation point arguments, maybe a grouping of the interpolation points, to show which points are joined by a single spline? polySpline A B ((i j k) (l m n)) Any help would be great, as using simpleSpline alone is a real limitation. |
|
December 2, 2009, 18:32 |
simpleSpline in blockMesh?
|
#4 |
Senior Member
|
I have attempted using simpleSpline in the previously mentioned format:
simpleSpline A B ((i j k) (l m n)) ...with no success. Has anyone had any success with this function? Thanks! |
|
December 3, 2009, 16:44 |
|
#5 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
http://www.cfd-online.com/Forums/ope...-property.html and concluded that the current state of splines (simpleSpline, polySpline) is probably still questionable. |
||
December 4, 2009, 16:02 |
|
#6 |
Senior Member
|
Thanks olesen, i was afraid of that.
Have you by chance used splines in Gmsh? |
|
December 8, 2009, 08:28 |
|
#7 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
|
||
December 10, 2009, 20:04 |
spline function for blockMesh
|
#8 |
Senior Member
|
Thanks for the recomendation olesen. Unfortunately, I only found these functions in the Version 1.6 (24th July 2009) Userguide:
arc simpleSpline polyLine polySpline line I also tried using "spine" in place of a functional polySpline with no luck. Thoughts? Thanks |
|
December 12, 2009, 09:32 |
|
#9 | ||
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Quote:
2. What do you mean that you tried "spline" without any luck? Does that mean that it wasn't recognized, it caused a segfault, it wasn't smooth, it shot all over the place, the parsing failed or what? I have no clue what exactly you mean. 3. What you mean by "a functional polySpline"? |
|||
December 12, 2009, 16:32 |
|
#10 |
Senior Member
|
Hi olesen,
By functional polySpline i mean that it generated a useable mesh, but a diamond as opposed to an ellipse(this is not my final geometry, just as simplification to learn the code). I am pursuing "spline" because it would be tedious to generate a very high resolution of points in a spreadsheet and transfer them to polySpline. The result of polySpline is attached in a printscreen below. I apoligise for not being specific. The "spline" command wasn't recognized. I am in the process of compiling the newest git version(previously on OF1.6 binary), so maybe that will fix the issue. I also may not be using the spline tool correctly. Could you post an example of your use of the spline function. Thanks for your help! |
|
December 13, 2009, 04:16 |
|
#11 | |||
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
The xmgrace plots showed a consist wrinkle in the original polySpline implementation. In the new 1.6.x implementation, the Catmull-Rom splines are consistently much better behaved. The B-Spline doesn't look so terrible any more, but exhibits minor deviations from the knot points. In fact, with the B-Spline, it could be that this means that even the end-points don't quite land exactly where they should (since the treatment of the end-tangents and/or the use of point reflection for the ends implies that the end-points indirectly become internal points.) Quote:
Quote:
http://www.cfd-online.com/Forums/ope...-property.html Then we all have about the same basis. Note that you can probably get away with substantially fewer points, but you should test it first. For fun, I tried using these points: Code:
// cosine function, but with extremely few points ( (0 1 0) (180 -1 0) (360 1 0) ) Code:
( (0 1 0) (90 0 0) (180 -1 0) (360 1 0) ) |
||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
airfoil edge via spline in OpenFOAM v6 | jkampman | Mesh Generation & Pre-Processing | 0 | November 26, 2018 06:19 |
[DesignModeler] spline or bezier or B spline | panasonic | ANSYS Meshing & Geometry | 0 | February 4, 2017 01:19 |
Save picture from Execute commands and journal files | FJSJ | FLUENT | 0 | January 29, 2015 09:56 |
Please explain this commands. | sri31049 | FLUENT | 3 | March 20, 2009 05:38 |
Spline through multiple keypoints | Liaquat | CFX | 0 | May 17, 2007 13:11 |