|
[Sponsors] |
December 13, 2013, 08:34 |
Very Simple Question
|
#1 |
New Member
Rich
Join Date: Sep 2013
Posts: 3
Rep Power: 12 |
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) } |
|
December 14, 2013, 06:30 |
|
#2 |
Senior Member
Join Date: Jan 2010
Location: Germany
Posts: 268
Rep Power: 17 |
Your Velw is the problem at first
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |