CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   local coordinate system for porousZone (http://www.cfd-online.com/Forums/openfoam-programming-development/94411-local-coordinate-system-porouszone.html)

Nico A. November 15, 2011 05:32

local coordinate system for porousZone
 
1 Attachment(s)
Hello FOAMers,

I am working with porous media, simulating the resin flow in laminate systems. In my case the permeability is anisotropic, so depending on the direction of the reinforcement. So far I was able to define some porousZones with different coordinate systems.
But if I have a geometry with radii, I need to define a local coordinate system for each cell (shown in the attachment) in order to define the permeabilities kx, ky, (kz, later for 3d problems). At the moment, I could only define the local coordinate sytems manually in the meshing preprocessor, but that would be time consuming for larger geometries.
So the objective is to define a local coordinate system for each cell automatically and store it in the "/constant/porousZone" file.

Note: the y1, y2, ..., yn axis should be perpendicular to the nearest wall and the x1, x2, ..., xn axis is tangential to the nearest wall.
Up to now I could not find any tool in OpenFOAM solving exactly that problem and I am unfortunatly not a Pro in programming C++. Does anyone have an idea about it?

Thanks in advance for any advice.


All times are GMT -4. The time now is 23:04.