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

local coordinate system for porousZone

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2011, 04:32
Default local coordinate system for porousZone
  #1
New Member
 
Join Date: Apr 2011
Location: Magdeburg, Germany
Posts: 23
Rep Power: 15
Nico A. is on a distinguished road
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.
Attached Images
File Type: png cells_locCoord.png (18.6 KB, 38 views)
Nico A. is offline   Reply With Quote

Reply

Tags
coordinate system, local, permeability

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 17:07.