CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   import matrix from .txt (http://www.cfd-online.com/Forums/fluent/50398-import-matrix-txt.html)

hbf January 28, 2009 05:47

import matrix from .txt
 
Hello,

i'm a newby in FLUENT and specially in UDFs, so I'm hoping to find some help here.

I need to simulate the flow through a porous medium with different local porosities. This porosities are given as a matrix in a .txt file. For example: 0.8 0.5 0.3 0.2 0.7 0.2 0.1 0.0 0.4 0.1 0.0 0.0

Each porosity should be assigned to a cell in the flow field, which means that the rectangular geometry of the flow field has to be divided exactly in the number of local porosities.

I know I have to use the DEFINE_PROFILE macro for porosities, but besides that I'm clueless. Any help please?

Thanks!


hbf January 28, 2009 05:48

Re: import matrix from .txt
 
Ok, the matrix did not come right. I meant a 3x4 matrix


All times are GMT -4. The time now is 03:45.