After simulating airflow through the openings of a geometry (inlet and outlet have the same area, the geometry is tilted 45deg from the wind direction), I’ve been trying to calculate the Volumetric Flow Rate (and later the ACH) for the indoor volume in 2 ways:
Loading probe values in butterfly, multiplying each vector by the area of the face it’s associated with. I obtain 25 m3/s for the inlet and 18 m3/s for the outlet. Which is incoherent.
On Openfoam directly, creating a file in the system folder called volFlowRateSurface (find further below the content, it refers to the inlet surface stl exported from rhino into /constant/triSurface) and running the command [postProcess -func “volFlowRateSurface” -latestTime]. I obtain -13.834 m3/s for the inlet and 12.990 m3/s for the outlet. Which is roughly equal ( difference should reduce with better meshing) and coherent.
Do you know how to consider these?
Best,
Olivier
/--------------------------------- C++ -----------------------------------**
========= |*
\ / F ield | OpenFOAM: The Open Source CFD Toolbox*
The OF postprocessing is definitely the way to go since it is more accurate and kind of out of the box. I do think however that it will integrate every single velocity vector on the surface without caring much about direction. In this case this is fine, since it’s clear how the wind is moving, in more complex cases there might be some error.
Indeed this leads to what you mention, if through the same openings the air moves in and also out.
In butterfly /grasshopper I used a Dot product to test the vector and dispatch if going in or out.
Have no idea how can OF deal with this. If I find something , I’ll update here.
I forget the name of the function object right now but I think the way to deal with this is to create two faceSets, one slave and one master, one infront of the other, denoting the direction you’re mass flow should be calculated for (master -> slave). It’s been a while since I was looking into this, I’ll try and rediscover the function object that uses those faceSets for calculation.
You have entered the wrong command.
The correct command is postProcess -func 'volFlowRateSurface' -latestTime, not postProcess -'volFlowRateSurface' -latestTime
But I can’t get some results with the correct command.
So, I tried another way which @kinonotofu mentioned.
I set the following comand in “Butterfly_controldict”
Hi Takeru,
Would you mind sharing your definition/gh file with the internalized model? I would also like to calculate the air flow rate in my model but I have no idea how to. I’ve done the butterfly simulation before but only got the result of air velocity and pressure.