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

No response whatever from this udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2019, 03:14
Default No response whatever from this udf
  #1
Member
 
Saurabh Das
Join Date: Jul 2018
Posts: 43
Rep Power: 7
Sorabh is on a distinguished road
I was trying to include the following source term in udf:



This is the code snippet:
Code:
DEFINE_SOURCE(perfusion,c,t,dS,eqn)
{
	real physical_dt,temp_old,temp_now,T_derivative,source;
	physical_dt = RP_Get_Real("physical-time-step");
	if (physical_dt > 0.1)
	{
		temp_old= C_T_M1(c,t);
		temp_now=C_T(c,t);
		T_derivative=(temp_now-temp_old)/physical_dt;
	}
	source = -tq*rho_b*wb*cb*T_derivative;
	dS[eqn]=0;

	return source;
}
However I am not getting any change in my results. What am I doing wrong?
Thanks..
Sorabh is offline   Reply With Quote

Old   May 19, 2019, 22:54
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
most likely problem comes from line
temp_old= C_T_M1(c,t);

from manual
Quote:
Note that data from C_T_M1 is available only if user-defined scalars are defined. It can also
be used with adaptive time stepping.
check waht you get here temp_old= C_T_M1(c,t);

best regards
AlexanderZ is offline   Reply With Quote

Reply


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
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 12:43
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03


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