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

cell distiction

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 11, 2006, 16:27
Default cell distiction
  #1
Daniel
Guest
 
Posts: n/a
Hi, im working with open chanel flow, my problem is,

i created a variable called ALT, is defined by multiplying rho*1000 in non porous zones and rho*900 in porous media, how can i make that distiction? ive tried with this ground code

IF((IX.LT.15).AND.(IX.GT.14))THEN

CALL FN0(LBNAME('ALT'), LBNAME('DEN1'))

CALL FN25(LBNAME('ALT'), 0.001)

ELSE

CALL FN0(LBNAME('ALT'), LBNAME('DEN1'))

CALL FN25(LBNAME('ALT'), 0.0009)

ENDIF

The problem is that the condition if is not working, all the domain goes directly to else, why? ix is the cell number in X direction right? help please
  Reply With Quote

Old   January 12, 2006, 03:52
Default Re: cell distiction
  #2
Rami
Guest
 
Posts: n/a
Simply because the condition 14<ix<15 is never true for integer ix...
  Reply With Quote

Old   January 12, 2006, 03:54
Default Re: cell distiction
  #3
Rami
Guest
 
Posts: n/a
Simply because the condition 14 < ix < 15 is never true for integer ix...
  Reply With Quote

Old   January 12, 2006, 13:20
Default Re: cell distiction
  #4
Daniel
Guest
 
Posts: n/a
Rami, thatks for your answer, buti misstyped, instead of 14 is 34, what i want to know is that if is correct to use ix for that calculation, or what integer should i use

IF((IX.LT.15).AND.(IX.GT.34))THEN

CALL FN0(LBNAME('ALT'), LBNAME('DEN1'))

CALL FN25(LBNAME('ALT'), 0.001)

ELSE

CALL FN0(LBNAME('ALT'), LBNAME('DEN1'))

CALL FN25(LBNAME('ALT'), 0.0009)

ENDIF
  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
How to identify boundary cell and internal cell dbxmcf OpenFOAM Running, Solving & CFD 1 August 25, 2008 21:59
cell velocity U and its cell face area Chinayu CD-adapco 0 May 6, 2006 22:44
unsturcture cell & cylinder cell Difference~ lenson CD-adapco 1 January 9, 2006 06:32
Cell vertex FV vs Cell centered FV peter.zhao Main CFD Forum 1 September 15, 2004 09:26
Cell-vertex and cell-centered finite volume method Praveen Main CFD Forum 4 September 8, 2003 23:58


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