CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

import matrix from .txt

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 28, 2009, 05:47
Default import matrix from .txt
  #1
hbf
Guest
 
Posts: n/a
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!

  Reply With Quote

Old   January 28, 2009, 05:48
Default Re: import matrix from .txt
  #2
hbf
Guest
 
Posts: n/a
Ok, the matrix did not come right. I meant a 3x4 matrix
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Addressing matrix element and reuse of system matrix marziolettich OpenFOAM Running, Solving & CFD 2 February 19, 2008 06:04
Matrix shuo OpenFOAM Running, Solving & CFD 4 October 23, 2006 03:09
Roe matrix srinath Main CFD Forum 2 March 26, 2003 11:39
about Roe matrix ! Root Willow Main CFD Forum 2 October 15, 2002 04:26
Elemtary matrix to CSR global matrix xueying Main CFD Forum 2 September 24, 2002 09:44


All times are GMT -4. The time now is 01:27.