CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Is simpleSpline working in OpenFOAM11

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2005, 17:42
Default Is simpleSpline working in OpenFOAM11
  #1
Member
 
diablo80@web.de
Join Date: Mar 2009
Posts: 93
Rep Power: 17
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,
luiz
sampaio is offline   Reply With Quote

Old   October 4, 2005, 06:07
Default There are no parameters outsid
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 06:24
Default Remember, there are 2 kinds of
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
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.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   October 5, 2005, 07:44
Default Oh god... its been a really lo
  #4
Senior Member
 
Gavin Tabor
Join Date: Mar 2009
Posts: 181
Rep Power: 17
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.

Gavin
grtabor is offline   Reply With Quote

Old   November 2, 2011, 03:58
Default
  #5
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 15
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

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
findCell() in parallel: not working if location is outside the domain TobiWol OpenFOAM 0 January 10, 2018 15:33
Processor 0 not working vishwesh OpenFOAM Running, Solving & CFD 0 November 17, 2017 04:35
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 03:01
[blockMesh] BlockMesh problem pratap OpenFOAM Meshing & Mesh Conversion 21 February 16, 2009 07:32
OpenFOAM book betakv OpenFOAM 5 January 13, 2009 08:06


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