CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Native Meshers: blockMesh

Is simpleSpline working in OpenFOAM11

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   October 3, 2005, 16:42
Default I tried to use simpleSpline in
Join Date: Mar 2009
Posts: 93
Rep Power: 10
sampaio is on a distinguished road
I tried to use simpleSpline in blockMeshDict to generate a curved edge and got a strange result.
Has anyone experiment with this?

(Everything works fine with arc and polyLine, but when I switch to simpleSplines, I got problems: my generated mesh is weird)

Is there any parameter to configure outside blockMeshDict?

Thanks all,
sampaio is offline   Reply With Quote

Old   October 4, 2005, 05:07
Default There are no parameters outsid
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 18
mattijs is on a distinguished road
There are no parameters outside blockMeshDict. Might be a bug - it is not something a lot of people use.

Have a look at the source code in mesh/generation/blockMesh/curvedEdges/
mattijs is offline   Reply With Quote

Old   October 4, 2005, 05:24
Default Remember, there are 2 kinds of
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,806
Rep Power: 25
hjasak will become famous soon enough
Remember, there are 2 kinds of splines: ones where you specify the control points but the spline does not go through them and another where you specify the points the spline should go through. Gavin will be able to tell you exactly, but I think that might be your problem.

The answer, of course, is the the source code for spline. The rest of blockMesh just grabs the point spacing from the edge and does block trans-finite mapping, so I don't believe anything is broken there.


Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting:
hjasak is offline   Reply With Quote

Old   October 5, 2005, 06:44
Default Oh god... its been a really lo
Senior Member
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 10
grtabor is on a distinguished road
Oh god... its been a really long time since I wrote that bit of code! I can't even remember the source(s) I used to learn about splines - they are quite complicated.

Looking through the code quickly; my impression is that the spline implemented is a bspline which should go through the control points. I do also note that I implemented a class polySplineEdge which represents a spline as a series of straight lines through the control points - so I do wonder if there was some behaviour of the spline implementation that was not making sense at the time. I'm not sure I can be more help than that at this stage, but if you do track down the problem let me (us) know.

grtabor is offline   Reply With Quote

Old   November 2, 2011, 03:58
Join Date: Oct 2011
Posts: 36
Rep Power: 8
Peter Müller is on a distinguished road
Hello together

If I try to use the polySplineEdge and compile my piece of code, I always get the error, that polySplineEdge is not declared. I used it like this:

pointField polySpline = polySplineEdge(.....)

I also tried to include the header-file of polySplineEdge but this does not work either.

if I use:

pointField polySpline = Foam:olySplineEdge(....)

It tells me that polySplineEdge is not a member of Foam. But why? Isn't it described like this in Doxygen? Can anyone tell me how I can use this function?

Thanks a lot
Peter Müller is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SimpleSpline problem wolle1982 OpenFOAM Native Meshers: blockMesh 3 December 10, 2009 20:20
How to set up net working waynezw0618 OpenFOAM Installation 1 April 9, 2008 12:05
Phd and working Noname Main CFD Forum 4 January 30, 2006 11:30
Fan not working zahid FLUENT 2 November 6, 2002 16:29
STill not working :( Jonathan FLUENT 3 May 22, 2002 23:11

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