CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Bugs in polySplineEdgeC (https://www.cfd-online.com/Forums/openfoam-bugs/62365-bugs-polysplineedgec.html)

kbr June 2, 2008 02:03

1) Description: Using polySp
 
1)
Description:
Using polySpline in blockMeshDict with interpolating points not in-line gives only a straight line between start and end point.

Old (OF 1.4.1, polySplineEdge.C, line 78):
scalar interval = (N-3)/N;

New:
scalar interval = (N - scalar(3))/N;

2)
Description:
Depending on the operating system it may occur a problem with "readLabel(is), readLabel(is)" reading the labels of the two vertices the spline connects because it is not specified which label is read first.

A suggestion that may help is to use another constructor of curvedEdge:

Old (OF 1.4.1, polySplineEdge.C, line 132):
curvedEdge(points,readLabel(is),readLabel(is));

New:
curvedEdge(points,is);


Kerstin

henry June 2, 2008 05:56

Hi Kerstin, Thanks for the
 
Hi Kerstin,

Thanks for the corrections, I will put them in 1.5

Henry

ffbof June 6, 2008 13:04

Hi Kerstin, thank you very
 
Hi Kerstin,

thank you very much for that suggestion.

It helped, we are now totally happy.

It was a very good work to find that bug. How long have you searched for the solution ?

I tried which result i get for example:
label N = 12
label result = ( N-3 )/N
leads to N = 0;
But
label result = ( N-scalar(3) )/N
leads to N = 0.75

This is a strange thing, i thought a label is similar to an int.

So again thank you very much for your effort.


All times are GMT -4. The time now is 18:58.