Sampling air passing through multiple windows
Hi,
I have a model of a building which has open windows on each side. Inside I have several sources of CO2. What I need to do is predict the air velocity and total concentration of CO2 passing through the windows, both in and out of the building. Ideally I would like the field values for every cell within a plane along the centre of the windows. I am using openFOAM v8 running buoyantSimpleFoam. Does anyone know the best method for achieving this? I have tried including a surfaces file in my controlDict where i tried to create a separate cuttingPlane for each window. But this resulted in the output files containing data for every cell along the x or y plane depending on the window location. Kind regards, Ben Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
more information
1 Attachment(s)
To better explain the issue see the image attached.
As you can see the cuttingPlane is currently extending across the entire x and y axis. What I need is the plane to be located and the same size as the windows. It may be that the cuttingPlane isn't designed to do what I want but I am assuming that there must be a way of getting the same data as the cuttingPlane but just for the cells in the centre of the windows. Kind regards, Ben |
Hi Ben,
I have not tested, but maybe you can create faceZones for each window with topoSet, and then use these zones as input. Best, Jan |
Hi Jan,
Thank you for your reply. Previously I have tried to set up faceZones within the windows and then use them as the inputs. Unfortunately I was unable to get it working in a satisfactory way. I am sure it can be fixed this way, but I have instead found a solution by keeping the set up as it is, where by the surface provides the field values for all cells along the cuttingPlane. Then I have created a python script to strip out the cells that are within the windows based on their location. Regards, Ben |
All times are GMT -4. The time now is 21:30. |