CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Very Simple Question

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2013, 08:34
Default Very Simple Question
  #1
New Member
 
Rich
Join Date: Sep 2013
Posts: 3
Rep Power: 12
WK912 is on a distinguished road
I am trying to create a UDF to use as the Inertial resistances of a few porous zones. I've copied everything pretty much exactly from the book with a few minor additions. On my first iteration calculating the solution I get a Divergence error. What am I doing wrong? Thanks in advance for the help!

#include "udf.h"
DEFINE_PROFILE(straightening_screen,t,nv)
{
cell_t c;
real velw;
begin_c_loop(c,t)
C_PROFILE(c,t,nv) = pow(23.0 *(ABS(velw) * 0.0000151) / (3.0 * 0.0000150),-0.321) / 0.356;
end_c_loop(c,t)
}

/**************************************************/

DEFINE_PROFILE(radiator_poro,t,nv)
{
cell_t c;
begin_c_loop(c,t)
C_PROFILE(c,t,nv) = 0.567;
end_c_loop(c,t)
}
WK912 is offline   Reply With Quote

Old   December 14, 2013, 06:30
Default
  #2
Senior Member
 
Join Date: Jan 2010
Location: Germany
Posts: 268
Rep Power: 17
Zaktatir is on a distinguished road
Your Velw is the problem at first
Zaktatir is offline   Reply With Quote

Reply

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
Simple Outlet Question m.nichols19 OpenFOAM 3 June 25, 2010 01:44
Simple Question Regarding Symmetry Planes Atella CFX 3 April 11, 2010 06:44
Simple Question Regarding Symmetry Planes Atella Main CFD Forum 0 April 9, 2010 10:58
Question of Anil Date's SIMPLE method universez Main CFD Forum 0 November 18, 2009 20:12
Simple Question Regarding Continuity Closure RC FLUENT 2 March 25, 2004 05:30


All times are GMT -4. The time now is 11:49.