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

[blockMesh] PolySpline question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2008, 07:37
Default PolySpline question
  #1
New Member
 
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Hello!

I have a problem using the polySpline in blockMesh, does anyone know the syntax that must be used? It have not found it anywhere!

Thanks,

Steinar
saasebo is offline   Reply With Quote

Old   October 2, 2008, 06:39
Default If I remember correctly the sy
  #2
Member
 
Martin Aunskjaer
Join Date: Mar 2009
Location: Denmark
Posts: 53
Rep Power: 17
aunola is on a distinguished road
If I remember correctly the syntax is

polySpline pntA pntB ( (ctrl1) (ctrl2) ... (ctrlN) ) grad_pntA grad_pntB;

where (pntA,grad_pntA) and (pntB,grad_pntB) are the coordinates and the gradients at the end points of the curve, and the (ctrl) are controlpoints.

Use the search facility to search for polySpline. I recall reading about it in the forum.
aunola is offline   Reply With Quote

Old   October 2, 2008, 07:15
Default Yes, this syntax is accepted b
  #3
New Member
 
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17
saasebo is on a distinguished road
Yes, this syntax is accepted by blockMesh, but the gradients are giving me unexpected results.

I really think I need some kind of B-splines to avoid the disturbances near the end points, and they are not implemented in OF?
saasebo is offline   Reply With Quote

Old   October 2, 2008, 09:52
Default go to the bugs list there is t
  #4
New Member
 
Franz
Join Date: Mar 2009
Posts: 17
Rep Power: 17
ffbof is on a distinguished road
go to the bugs list there is the solution or
search for "Bugs in polySplineEdge.C"
ffbof is offline   Reply With Quote

Old   October 2, 2008, 11:08
Default What kind of unexpected result
  #5
Member
 
Martin Aunskjaer
Join Date: Mar 2009
Location: Denmark
Posts: 53
Rep Power: 17
aunola is on a distinguished road
What kind of unexpected results? If you mean erratic shapes, like loops, this may happen for unevenly spaced data points if the algorithm that calculates the control points assigns uniformly spaced parameter values to the data points.

Looking at the implementation in

applications/utilities/mesh/generation/blockMesh/curvedEdges

this does indeed appear to be the case. You could try to specify the gradients to zero in which case polySpline calculates them as a finite-difference (Catmull-Rom).

polySpline in OpenFOAM is a clamped cubic B-Spline.
aunola is offline   Reply With Quote

Old   December 4, 2008, 08:10
Default Dear Martin, I got trouble
  #6
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
Dear Martin,

I got trouble with the polySpline as well. Poorly I did not understand any word of what you said.

HOW can I get the polySpline work?

The polySpline works fine at the beginning. but towards the end point it starts to become a straight line. the given gradient is ignored as well.

..?

Thanks
wolle1982 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
Question about symmetry in Autodesk Cfd 2016 ecto Autodesk Simulation CFD 0 October 20, 2015 04:16
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 10:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37


All times are GMT -4. The time now is 17:40.