Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Syntax used in UDF for Granular Temperature

    • manish.pd
      Subscriber

      Hi, 

      Please share the syntax used in UDF for the granular temperature. I am simulating the blood flow through veins using Euler-Euler approach. For the RCB flow, I am using granular temperature model with PDE option. For writing UDFs to define static pressure and bulk viscosity, I need to call the granular temperature. I have tried many syntax suggestions provided by chatbots. None of these is working. Please share the actual syntax for granular temperature. The syntaxes I have already tried are: 

      1. SV_GRANULAR_TEMPERATURE
      2. SV_GT
      3. SV_GRAN_TEMP
      4. SV_GRANULAR_TEMPERATURE_P
      5. SV_GRANULAR_TEMP_AP

      Thank you 

    • khalidbinwaleed97
      Subscriber

      #include "udf.h"

      DEFINE_PROFILE(static_pressure_profile, thread, position)
      {
          face_t f;
          real granular_temp;
          
          begin_f_loop(f, thread)
          {
              granular_temp = C_GRANULAR_TEMPERATURE(f, thread);
              
              /* Your calculations using granular_temp */
              F_PROFILE(f, thread, position) = /* your expression */;
          }
          end_f_loop(f, thread)
      }

Viewing 1 reply thread
  • You must be logged in to reply to this topic.