Problem with wind velocity vector results- All vectors appear as blue!


#1

Hi everyone,
It’s a while that I have this kind of problem with BF results. As you see in the attached image all vectors appear as blue. I also conducted another test in which i put the test point surface somewhere that it did not have any intersection with the building geometry and it all gets correct. all coloured vectors appear.
I guess it may be a problem with my building geometry ( it is a closed polysurface).
any idea?!


#2

hi @samira
It’s hard to tell without looking at your definition. Please share it and confirm that your rhino units were in meters.


#3

Hi @OlivierDambron
Thankyou for your attention.
Here I put the definitions & yes the units is meters in all files.
1-Case1-1–test 7.gh (71.1 KB)
3-Case1-2–test 1.gh (75.3 KB)


#4

Hi @samira

First I notice that your file contains old butterfly components. please make sure to have them updated and replaced.

Let us know how it goes.


#5

This is how you can update butterfly to the latest version


#6

Hi.
@OlivierDambron thanks alot to you. I updated butterfly succefully and with special thanks to @devang for the great instruction on updating it. It really helped me. Now Much of my problem with vectors is solved although still i have that problem with some of the horizontal analysis surfaces but i’ll try to fix it.
Now I have a new concern. Do you know if I can somehow get the drag coefficient of the building as a number from BF? I tried to find something relevant in previous discussions & all I get is that I think It’s kind of related to function object. Am I right? And How?!


#7

Hi everyone.
Could you please answer me on this? I could use any advice from you
Thankyou
Samira


#8

Hi @samira

You can calculate drag coefficients with an OF function object. It’s not yet developed in BF however, but you can find all the objects here (for example): https://www.openfoam.com/documentation/cpp-guide/html/guide-function-objects.html

I haven’t tried it myself yet so can’t help much at the moment. You can try and searching in the OF tutorials, you can also find those online, can look for drag in the github.

Kind regards,
Theodore.


#9

Hi @TheodorosGalanos
Thank you for your advice. I actually don’t know much about scripting but i just tried to figure out something from what i read in OF & BF documentations. Now I gave :point_down: as the input of function objects component & everything seems to be ok. (Does this script seem reasonable to you?)
And It may be a silly question but i don’t know where to find the outputs( lift & drag quantities). I’ll appreciate any help from you.
Thankyou
Samira

forceCoeffs1
{
type forceCoeffs;
libs ("libforcesFunctionObjects.so");
log yes;
writeTofile yes;
patches (walls);
liftDir (0 1 0);
dragDir (-1 0 0);
pitchAxis (0 0 1);
magUInf 100;
lRef 3.5;
Aref 2.2;
}

#10

Looks good to me, one way to find out :slight_smile :slight_smile: Make sure the ‘walls’ is the actual name of the butterfly geometry or geometries you wish to calculate drag for.

The results should be saved in a postProcessing folder inside your case folder.

Kind regards,
Theodore.