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

Search Results

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

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: HenrikS
Forum: Fluent UDF and Scheme Programming March 24, 2009, 05:30
Replies: 13
Views: 5,406
Posted By HenrikS
If it is more logical, then it is of course...

If it is more logical, then it is of course possible to switch around

if (temp_avg > 700)
{
time_heat_flux_zero = CURRENT_TIMESTEP + 500.0;
}
if (time_heat_flux_zero > 0.0)
{...
Forum: Fluent UDF and Scheme Programming March 24, 2009, 05:24
Replies: 13
Views: 5,406
Posted By HenrikS
I think I messed it up a little bit. The problem...

I think I messed it up a little bit. The problem is that DEFINE_PROFILE might be called several times in one time step, whereas I believe DEFINE_ADJUST is only called one time. Therefore, change:
...
Forum: Fluent UDF and Scheme Programming March 24, 2009, 03:06
Replies: 13
Views: 5,406
Posted By HenrikS
I was thinking that in the DEFINE_ADJUST-macro,...

I was thinking that in the DEFINE_ADJUST-macro, you check whether the average temperature is > 700 and, if that is the case, set the time_heat_flux_zero-variable to CURRENT_TIME + 500:

if...
Forum: Fluent UDF and Scheme Programming March 23, 2009, 09:32
Replies: 13
Views: 5,406
Posted By HenrikS
I suggest you define yet another global variable...

I suggest you define yet another global variable (outside the DEFINE_ADJUST-macro) that stores the amount of time for which to turn off the heat flux. For example:

real time_heat_flux_zero = 0.0;...
Forum: Fluent UDF and Scheme Programming March 23, 2009, 06:33
Replies: 13
Views: 5,406
Posted By HenrikS
Hi, I think the problem might be that you...

Hi,

I think the problem might be that you are trying to assign a value for "flag" when c and t are not yet defined. Change

real flag = C_UDMI(c,t,0);

to

real flag;
Showing results 1 to 5 of 5

 
Forum Jump

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