<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>CFD Online Discussion Forums - Fluent UDF and Scheme Programming</title>
		<link>http://www.cfd-online.com/Forums/</link>
		<description />
		<language>en</language>
		<lastBuildDate>Wed, 08 Sep 2010 12:35:33 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.cfd-online.com/Forums/images/misc/rss.jpg</url>
			<title>CFD Online Discussion Forums - Fluent UDF and Scheme Programming</title>
			<link>http://www.cfd-online.com/Forums/</link>
		</image>
		<item>
			<title>Nv-s ?? Nv-d ?? Help!!!</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79904-nv-s-nv-d-help.html</link>
			<pubDate>Wed, 08 Sep 2010 10:33:26 GMT</pubDate>
			<description><![CDATA[---Quote--- 
#include "udf.h" 
DEFINE_GRID_MOTION(plate,domain,dt,time,dtime) 
{ 
 Thread *tf = DT_THREAD(dt); 
 face_t f; 
 Node *v; 
 real...]]></description>
			<content:encoded><![CDATA[<div><div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="7" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				#include &quot;udf.h&quot;<br />
DEFINE_GRID_MOTION(plate,domain,dt,time,dtime)<br />
{<br />
 Thread *tf = DT_THREAD(dt);<br />
 face_t f;<br />
 Node *v;<br />
 real NV_VEC(omega), NV_VEC(axis), NV_VEC(dx);<br />
 real NV_VEC(origin), NV_VEC(rvec);<br />
 real sign;<br />
 int n;<br />
/* set deforming flag on adjacent cell zone */<br />
 SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));<br />
 sign = -5.0 * sin (26.178 * time);<br />
 Message (&quot;time = %f, omega = %f\n&quot;, time, sign);<br />
 <b><i><font color="navy">NV_S(omega, =, 0.0);<br />
 NV_D(axis, =, 0.0, 1.0, 0.0);<br />
 NV_D(origin, =, 0.0, 0.0, 0.152);</font></i></b><br />
 begin_f_loop(f,tf)<br />
  {<br />
   f_node_loop(f,tf,n)<br />
    {<br />
     v = F_NODE(f,tf,n);<br />
/* update node if x position is greater than 0.02<br />
and that the current node has not been previously<br />
visited when looping through previous faces */<br />
     if (NODE_X(v) &gt; 0.020 &amp;&amp; NODE_POS_NEED_UPDATE (v))<br />
      {<br />
/* indicate that node position has been update<br />
so that it’s not updated more than once */<br />
      NODE_POS_UPDATED(v);<br />
      omega[1] = sign * pow (NODE_X(v)/0.230, 0.5);<br />
      NV_VV(rvec, =, NODE_COORD(v), -, origin);<br />
      NV_CROSS(dx, omega, rvec);<br />
      NV_S(dx, *=, dtime);<br />
      NV_V(NODE_COORD(v), +=, dx);<br />
      }<br />
    }<br />
  }<br />
 end_f_loop(f,tf);<br />
}
			
			<hr />
		</td>
	</tr>
	</table>
</div>I don't know that means. I didn't find a whole day in google and UDF manual.<br />
 <br />
please explain to me..</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>oilsok</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79904-nv-s-nv-d-help.html</guid>
		</item>
		<item>
			<title>Heat generation is depend on x value and time.</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79820-heat-generation-depend-x-value-time.html</link>
			<pubDate>Sun, 05 Sep 2010 17:17:55 GMT</pubDate>
			<description><![CDATA[Hi, 
 
Heat generation is depend on x value and time in my simulation. 
How to add x variation below code? 
 
#include "udf.h"...]]></description>
			<content:encoded><![CDATA[<div><font face="Calibri"><font size="3">Hi,</font></font><br />
<br />
<font face="Calibri"><font size="3">Heat generation is depend on x value and time in my simulation.</font></font><br />
<font face="Calibri"><font size="3">How to add x variation below code?</font></font><br />
<br />
<font face="Calibri"><font size="3">#include &quot;udf.h&quot;</font></font><br />
<font face="Calibri"><font size="3">DEFINE_SOURCE(heat_gen_time,cell,thread,dS,eqn)</font></font><br />
<font face="Calibri"><font size="3">{</font></font><br />
<font face="Calibri"><font size="3">real source;</font></font><br />
<font face="Calibri"><font size="3">real time;</font></font><br />
<font face="Calibri"><font size="3">time = CURRENT_TIME;</font></font><br />
<font face="Calibri"><font size="3">source = 86.44*pow(time,-.3); </font></font><br />
<font face="Calibri"><font size="3">dS[eqn] = -25.932*pow(time,-1.3);</font></font><br />
<font face="Calibri"><font size="3">return source;</font></font><br />
<font face="Calibri"><font size="3">}</font></font></div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>omurakbayir</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79820-heat-generation-depend-x-value-time.html</guid>
		</item>
		<item>
			<title>ACCESS_VIOLATION error for tempreture jump boundary condition</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79799-access_violation-error-tempreture-jump-boundary-condition.html</link>
			<pubDate>Sat, 04 Sep 2010 12:22:10 GMT</pubDate>
			<description>hi all 
  
I am trying to simulate heat transfer between parallel plates with tempreture jump boundary condition. 
  
this is my udf: 
  
#include...</description>
			<content:encoded><![CDATA[<div>hi all<br />
 <br />
I am trying to simulate heat transfer between parallel plates with tempreture jump boundary condition.<br />
 <br />
this is my udf:<br />
 <br />
#include &quot;udf.h&quot;<br />
#define TMAC               1<br />
#define meanfreepath       6.8e-8<br />
#define underrlx           0.02<br />
#define SPHR               1.4<br />
#define THAC               1                 <br />
#define prandtl            0.707<br />
DEFINE_PROFILE(temprature_jump_top,f_thread,index)<br />
 { <br />
face_t f;<br />
 <br />
cell_t c; <br />
Thread *cell_thread;<br />
real gamma;<br />
real temp;<br />
begin_f_loop(f,f_thread) <br />
{ <br />
c=F_C0(f,f_thread);<br />
 <br />
cell_thread=THREAD_T0(f_thread); <br />
gamma=(2*SPHR)/(SPHR+1); <br />
temp=(-2+THAC)/(THAC)*gamma*meanfreepath/prandtl*(C_T_G(c,cell_thread)[1]); <br />
temp=(1-underrlx)*F_T(f,f_thread)+(underrlx*temp);<br />
F_PROFILE(f,f_thread,index)=temp;<br />
 }<br />
  end_f_loop(face,f_thread)<br />
  }<br />
 <br />
 <br />
but when i want to use them as a boundary condition,or when i want to iterate it,this error will be appear:<br />
 <br />
Error: <br />
FLUENT received fatal signal (ACCESS_VIOLATION)<br />
1. Note exact events leading to error.<br />
2. Save case/data under new name.<br />
3. Exit program and restart to continue.<br />
4. Report error to your distributor.<br />
Error Object: ()<br />
 <br />
how can i solve this error?:(<br />
 <br />
I appreciate for any help</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>eeman</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79799-access_violation-error-tempreture-jump-boundary-condition.html</guid>
		</item>
		<item>
			<title>Use flow fild, but calculate only UDS</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79604-use-flow-fild-but-calculate-only-uds.html</link>
			<pubDate>Sat, 28 Aug 2010 10:11:19 GMT</pubDate>
			<description>Is it possible to solve equations for UDS by UDF without flow calculation 
but with flow field from previous FLUENT solution (with scaled mesh)?</description>
			<content:encoded><![CDATA[<div>Is it possible to solve equations for UDS by UDF without flow calculation<br />
but with flow field from previous FLUENT solution (with scaled mesh)?</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>teop</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79604-use-flow-fild-but-calculate-only-uds.html</guid>
		</item>
		<item>
			<title>error while running  the udf</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79551-error-while-running-udf.html</link>
			<pubDate>Thu, 26 Aug 2010 19:29:23 GMT</pubDate>
			<description>hello everyone.... 
now the udf is compiling and loading without error... 
but while running the simulation at the bigining itself giving error, says...</description>
			<content:encoded><![CDATA[<div>hello everyone....<br />
now the udf is compiling and loading without error...<br />
but while running the simulation at the bigining itself giving error, says<br />
Absolute pressure Limited to 1.0000e+00 in zone 2<br />
Error:&gt; (Greater-than) : invalid argument [2] : wrong type [not a number]<br />
Error object : nan<br />
what it means.. where should i correct..<br />
<br />
thanks<br />
sugu</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>sugumaran</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79551-error-while-running-udf.html</guid>
		</item>
		<item>
			<title>Problems with hooking UDF</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79526-problems-hooking-udf.html</link>
			<pubDate>Thu, 26 Aug 2010 09:31:42 GMT</pubDate>
			<description>Hello, 
I cant seem to hook my UDF onto my model, I can interept my code into Fluent with no problems but when trying to hook my UDF then my source...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
I cant seem to hook my UDF onto my model, I can interept my code into Fluent with no problems but when trying to hook my UDF then my source terms do not appear as extra options and when I do hook any of the functions then I get a ACCESS_VIOLATION error. <br />
Does anyone know why my source terms would not be available for hooking?<br />
Thanks for any help</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>whelk123</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79526-problems-hooking-udf.html</guid>
		</item>
		<item>
			<title>UDF for Boundary layer at inlet for cavity study</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79525-udf-boundary-layer-inlet-cavity-study.html</link>
			<pubDate>Thu, 26 Aug 2010 09:22:46 GMT</pubDate>
			<description><![CDATA[hii.. m' working on cavity flow study.. i need a boundary layer of 5mm in front of the cavity. i need the equation of boundary layer velocity profile...]]></description>
			<content:encoded><![CDATA[<div>hii.. m' working on cavity flow study.. i need a boundary layer of 5mm in front of the cavity. i need the equation of boundary layer velocity profile for the UDF n also i want to know the macro to be used for compressible fluid where pressure inlet boundary is given at inlet instead of velocity inlet... plzz sme1 guide me<br />
thank u</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>vasuaero1988</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79525-udf-boundary-layer-inlet-cavity-study.html</guid>
		</item>
		<item>
			<title>Ramp BC per Iteration</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79494-ramp-bc-per-iteration.html</link>
			<pubDate>Wed, 25 Aug 2010 15:21:30 GMT</pubDate>
			<description>I have a converged Steady State solution. I am running a family of solutions with slightly different boundary conditions. In this case I am varying...</description>
			<content:encoded><![CDATA[<div>I have a converged Steady State solution. I am running a family of solutions with slightly different boundary conditions. In this case I am varying the swirl at an inlet. For low values of swirl I find that I can use the existing solution simply change the values and keep running. As the absolute value gets large, I find that the amount of change the solution can absorb without diverging gets small. Even with signifcant relaxation and a small CFL number.<br />
 <br />
I think it would be simplest to define a UDF which ramps the swirl from one value to the next over some number of iterations. I understand how to define the profile, but not how to access the iteration number in an UDF.<br />
 <br />
Any help is appreciated<br />
Thanks<br />
- Andy R</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>AndyR</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79494-ramp-bc-per-iteration.html</guid>
		</item>
		<item>
			<title>ACCESS_VIOLATION error</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79479-access_violation-error.html</link>
			<pubDate>Wed, 25 Aug 2010 09:10:16 GMT</pubDate>
			<description>Hello, I am trying to model the heat transfer within a hydrogen fuel cell and I keep getting the message ACCESS_VIOLATION when I try applying my UDF....</description>
			<content:encoded><![CDATA[<div>Hello, I am trying to model the heat transfer within a hydrogen fuel cell and I keep getting the message ACCESS_VIOLATION when I try applying my UDF.<br />
<font color="blue"><font face="Courier New">#include</font></font><font face="Courier New"> <font color="#a31515">&quot;udf.h&quot;</font> </font><br />
<font face="Courier New">DEFINE_INIT(init_func,d) </font><br />
<font face="Courier New">{</font><br />
<font face="Courier New">Domain *d;</font><br />
<font face="Courier New">Thread *t;</font><br />
<font face="Courier New">real sum_diss=0.;</font><br />
<font face="Courier New">cell_t c;</font><br />
<font face="Courier New">d = Get_Domain(1); </font><br />
<font face="Courier New">}</font><br />
<font face="Courier New">DEFINE_SOURCE(sink_mass, c, t, dS, eqn)</font><br />
<font face="Courier New">{</font><br />
<font face="Courier New">real sink_mass; </font><br />
<font face="Courier New">sink_mass=-C_UDMI(c,t,0)*rau0*0.0166*(1-poros); </font><br />
<font face="Courier New"><font color="blue">return</font> sink_mass; </font><br />
<br />
<font face="Courier New">} </font><br />
<font face="Courier New">DEFINE_SOURCE(energy_source, c, t, dS, eqn)</font><br />
<font face="Courier New">{</font><br />
<font face="Courier New">real energy_source; </font><br />
<font face="Courier New">energy_source=-C_UDMI(c,t,0)*rau0*0.0166*(1-poros)*deltah/mh2;</font><br />
<font face="Courier New"><font color="blue">return</font> energy_source; </font><br />
<font face="Courier New">}</font><br />
<font face="Courier New">DEFINE_EXECUTE_AT_END(execute_at_end) </font><br />
<font face="Courier New">{</font><br />
<font face="Courier New">real step =RP_Get_Real(<font color="#a31515">&quot;physical-time-step&quot;</font>); </font><br />
<font face="Courier New">Domain *domain = Get_Domain(1);</font><br />
<font face="Courier New"><font color="blue">int</font> ID=2; </font><br />
<font face="Courier New">Thread *t =Lookup_Thread(domain, ID); </font><br />
<font face="Courier New">cell_t c; </font><br />
<font face="Courier New">begin_c_loop(c,t) </font><br />
<font face="Courier New">{</font><br />
<font face="Courier New"><font color="blue">double</font> temper,P,hsmp,lnpeq,Peq, dxdt; </font><br />
<font face="Courier New">temper=C_T(c,t); </font><br />
<font face="Courier New">P=(C_R(c,t)*rgp*C_T(c,t)/mh2)*0.00001; </font><br />
<br />
<br />
<font face="Courier New">hsmp= C_UDMI(c,t, 1 )*(HsMmaxprim-hsurm)+hsurm; </font><br />
<font face="Courier New">lnpeq=A-B/temper+C*hsmp+D*pow(tan(pi*hsmp/2.0/HsMmaxprim),n)+E*pow(tan(pi*hsmp/2.0/HsMmaxprim),(-m)); </font><br />
<font face="Courier New">Peq=exp(lnpeq);</font><br />
<font face="Courier New">C_UDMI(c,t,0)=mh2*Ca*exp(Ea/(rgp*temper))*log(P/Peq)/0.0166; </font><br />
<font face="Courier New">C_UDMI(c,t,1 )=C_UDMI(c,t,1 )+C_UDMI(c,t,0)*step; </font><br />
<font face="Courier New">}</font><br />
<font face="Courier New">end_c_loop(c,t)</font><br />
<font face="Courier New">} </font><br />
<br />
<font face="Calibri"><font size="3">I have defined things but didnt think that was important. Can anyone please tell me what is wrong with this code!! It is fairly urgent!</font></font><br />
<font face="Calibri"><font size="3">Thank you for any help</font></font></div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>whelk123</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79479-access_violation-error.html</guid>
		</item>
		<item>
			<title>error in compiling udf</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79463-error-compiling-udf.html</link>
			<pubDate>Tue, 24 Aug 2010 18:54:37 GMT</pubDate>
			<description><![CDATA[hello everyone... 
i wrote my udf for real gas model... while compiling i got error message like this,, 
1 file(s) copied. 
(system "copy...]]></description>
			<content:encoded><![CDATA[<div>hello everyone...<br />
i wrote my udf for real gas model... while compiling i got error message like this,,<br />
1 file(s) copied.<br />
(system &quot;copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2d\makefile&quot;)<br />
        1 file(s) copied.<br />
(chdir &quot;libudf&quot;)()<br />
(chdir &quot;ntx86\2d&quot;)()<br />
'nmake' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
'nmake' is not recognized as an internal or external command,<br />
operable program or batch file.<br />
<br />
Done.<br />
&quot;e:/sugu/vt/2d cases/gambit files/mesh files&quot;<br />
<br />
Opening library &quot;libudf&quot;...<br />
Error: open_udf_library: The system cannot find the file specified.<br />
<br />
Error Object: ()<br />
this udf file is just example given in fluent manual only... still i m getting probs....<br />
please help me...</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>sugumaran</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79463-error-compiling-udf.html</guid>
		</item>
		<item>
			<title>Boundary conditions by UDF</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79418-boundary-conditions-udf.html</link>
			<pubDate>Mon, 23 Aug 2010 15:30:55 GMT</pubDate>
			<description>Dear all, 
 
I am new in CFD world. I want to write UDF for boundary conditions. My boundary conditions are as following: 
 
at interface :...</description>
			<content:encoded><![CDATA[<div>Dear all,<br />
<br />
I am new in CFD world. I want to write UDF for boundary conditions. My boundary conditions are as following:<br />
<br />
at interface : Temperature fluid 1 = Temperature fluid 2<br />
also for mass transfer : Relative humidity fluid 1= Relative Humidity fluid 2<br />
<br />
I do not know, how can explain this relation by C program in UDF.<br />
<br />
I appreciate if you kindly help me. please write or send me some examples.<br />
<br />
Samaneh</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>s.sami</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79418-boundary-conditions-udf.html</guid>
		</item>
		<item>
			<title>Errors when interpreting UDF</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79408-errors-when-interpreting-udf.html</link>
			<pubDate>Mon, 23 Aug 2010 12:27:42 GMT</pubDate>
			<description><![CDATA[I wrote a udf for thermal conductivity dependent on a temperature. 
#include "udf.h" 
DEFINE_PROPERTY(cell_thermalconductivity,cell,thread) 
{ 
real...]]></description>
			<content:encoded><![CDATA[<div>I wrote a udf for thermal conductivity dependent on a temperature.<br />
#include &quot;udf.h&quot;<br />
DEFINE_PROPERTY(cell_thermalconductivity,cell,thre  ad)<br />
{<br />
real ktc;<br />
real temp = C_T(cell,thread);<br />
ktc=(0.6*(1+(0.023*((pow(temp,1.2321))/(pow(10,(363.94/(temp-140))))))));<br />
}<br />
when I run fluent,I see this error:<br />
Error: Floating point error: invalid number<br />
Error Object: ()<br />
could you help me?<br />
thanks</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>elah599</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79408-errors-when-interpreting-udf.html</guid>
		</item>
		<item>
			<title>1/7 prandtle velocity profile</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79358-1-7-prandtle-velocity-profile.html</link>
			<pubDate>Sat, 21 Aug 2010 10:44:14 GMT</pubDate>
			<description>i need profile 1/7 prandtle for inlet rectangular surface for pressure inlet boundary condition. 
is it possible set top udf(1/7 prandtle velocity...</description>
			<content:encoded><![CDATA[<div>i need profile 1/7 prandtle for inlet rectangular surface for pressure inlet boundary condition.<br />
is it possible set top udf(1/7 prandtle velocity profile) on pressure inletboundarycondition?<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>behnam87</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79358-1-7-prandtle-velocity-profile.html</guid>
		</item>
		<item>
			<title>How to get the gradient of species mass fraction?</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79318-how-get-gradient-species-mass-fraction.html</link>
			<pubDate>Thu, 19 Aug 2010 16:47:26 GMT</pubDate>
			<description>Dear my friends. 
 
I want to get access to the gradient of species mass fractions. The manual said that the macro C_YI_G(c,t,i) can be used only in...</description>
			<content:encoded><![CDATA[<div>Dear my friends.<br />
<br />
I want to get access to the gradient of species mass fractions. The manual said that the macro C_YI_G(c,t,i) can be used only in the density-based solver. To use this in the pressure-based solver, <font color="Red">you will need to set the rpvar 'species/save-gradients? to #t.</font> What does that means? How can I set the &quot;rpvar&quot;?  Since I know nothing about the scheming languages, can someone give me an example of how to set the rpval in my UDFs? <br />
<br />
Thanks a lot.</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>legendyxg</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79318-how-get-gradient-species-mass-fraction.html</guid>
		</item>
		<item>
			<title>where is the mistake?</title>
			<link>http://www.cfd-online.com/Forums/fluent-udf/79304-where-mistake.html</link>
			<pubDate>Thu, 19 Aug 2010 10:43:46 GMT</pubDate>
			<description><![CDATA[Hello, 
 
I want to have a static pressure profile at the outlet for a 2D calculation. For the boundary "outlet" there is y=const. when I use the...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I want to have a static pressure profile at the outlet for a 2D calculation. For the boundary &quot;outlet&quot; there is y=const. when I use the following UDF, I do get a parabolic profile. But the problem is, at starting point (x=0) and end point, I don't have p=0. so that is not the exact curve I am expecting. I always check through &quot;xy plot&quot; afte initializing over inlet.<br />
<br />
So, does anybody know where the problem is?<br />
<br />
#include &quot;udf.h&quot;<br />
<br />
DEFINE_PROFILE(pressure_profile,t,i)<br />
{<br />
    real x[ND_ND];<br />
    real a;<br />
    face_t f;<br />
    <br />
    begin_f_loop(f,t)<br />
    {<br />
        <br />
        F_CENTROID(x,f,t);<br />
        a = x[0];<br />
        F_PROFILE(f,t,i) = 2.435e5 - (a-0.025)*(a-0.025)/(0.025*0.025)*2.435e5;<br />
    }<br />
    end_f_loop(f,t)<br />
}</div>

]]></content:encoded>
			<category domain="http://www.cfd-online.com/Forums/fluent-udf/">Fluent UDF and Scheme Programming</category>
			<dc:creator>mehendis</dc:creator>
			<guid isPermaLink="true">http://www.cfd-online.com/Forums/fluent-udf/79304-where-mistake.html</guid>
		</item>
	</channel>
</rss>
