CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Bugs in polySplineEdgeC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2008, 03:03
Default 1) Description: Using polySp
  #1
kbr
New Member
 
Kerstin
Join Date: Mar 2009
Posts: 16
Rep Power: 17
kbr is on a distinguished road
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
kbr is offline   Reply With Quote

Old   June 2, 2008, 06:56
Default Hi Kerstin, Thanks for the
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Hi Kerstin,

Thanks for the corrections, I will put them in 1.5

Henry
henry is offline   Reply With Quote

Old   June 6, 2008, 14:04
Default Hi Kerstin, thank you very
  #3
New Member
 
Franz
Join Date: Mar 2009
Posts: 17
Rep Power: 17
ffbof is on a distinguished road
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.
ffbof 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
Bugs in fvcsurfaceIntegrate su_junwei OpenFOAM Bugs 4 July 7, 2013 11:29
Bugs in FFT luca OpenFOAM Bugs 2 January 27, 2009 16:40
Wiki - Bugs Andy R Main CFD Forum 0 July 25, 2008 14:15
bugs in starcd 4.06 whitemelon Siemens 0 July 11, 2008 07:26
starcd 3.24 has bugs? whitemelon Siemens 6 May 16, 2008 11:44


All times are GMT -4. The time now is 10:33.