CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Relaxation between two load steps (https://www.cfd-online.com/Forums/fluent/200776-relaxation-between-two-load-steps.html)

kaufparkangucker April 12, 2018 10:08

Relaxation between two load steps
 
Hello community,


maybe you can help me further. I have two load steps. The first step is a heating step of 0.01 seconds. The second step is a 0.01 second cooling step. Between these two steps, the system should "relax", so no more heat to be entered. How can I specify this in the udf?
My previous code looks like this:
Code:

#include "udf.h"
DEFINE_PROFILE(unsteady_temperature, thread, position)
{
 face_t f;
 real a;
 real m = 700;
 begin_f_loop(f, thread)
 {
  t = CURRENT_TIME;
if                  ( t > 0.0 && t <= 0.01 )        { F_PROFILE(f, thread, position) = ( m * t )+293.15 ; }  // linear heating
else if        ( t > 1.01 && t <= 1.02 )    { F_PROFILE(f, thread, position) = ( m * t )+1000.15 ; } // linear cooling
else { Do nothing and relax???????? }
 }
 end_f_loop(f, thread)
}

Greetings Kauf


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