|
[Sponsors] |
October 1, 2008, 07:37 |
PolySpline question
|
#1 |
New Member
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
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 |
|
October 2, 2008, 06:39 |
If I remember correctly the sy
|
#2 |
Member
Martin Aunskjaer
Join Date: Mar 2009
Location: Denmark
Posts: 53
Rep Power: 17 |
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. |
|
October 2, 2008, 07:15 |
Yes, this syntax is accepted b
|
#3 |
New Member
Steinar Aasebų
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
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? |
|
October 2, 2008, 09:52 |
go to the bugs list there is t
|
#4 |
New Member
Franz
Join Date: Mar 2009
Posts: 17
Rep Power: 17 |
go to the bugs list there is the solution or
search for "Bugs in polySplineEdge.C" |
|
October 2, 2008, 11:08 |
What kind of unexpected result
|
#5 |
Member
Martin Aunskjaer
Join Date: Mar 2009
Location: Denmark
Posts: 53
Rep Power: 17 |
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. |
|
December 4, 2008, 08:10 |
Dear Martin,
I got trouble
|
#6 |
Senior Member
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21 |
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 |
|
|
|
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 |