Ansys Learning Forum Forums Discuss Simulation Fluids Need help with: Error: error: wta[1](string) Error Object: () Reply To: Need help with: Error: error: wta[1](string) Error Object: ()

Christian Neuer
Subscriber

 

So you are probably right that it would work with only one mass sink (and do the rest with temperature dependant material properties), but I have to admit I didn’t build the whole model from the ground up. In fact a colleague of mine set it up in the way that there are 2 zones, one that is filled (at the start) with the intumescent in gel form (its mass is updated minus the water-vapor that leaves throgh the outlets and the mass that is generated in the other zone) and the other zone that gets filled with the foam. Even then I have highly temperature dependent values in both zones but a few things are constant, like the gel is always transperant and the foam never. However, no matter how this is realized it shouldn’t have an influence whether I can use multicore or not.

Regarding the other files, they should appear when you click on the links ….. if you aren’t permitted to click on links I wonder why we are allowed to post them. Anyway, here is the UDF:

  1. #include "udf.h"
  2. #include "dynamesh_tools.h"
  3.  
  4. static real velz = 0.0;
  5. real tmax = 0.;
  6. real value =0.;
  7.  
  8.  
  9. DEFINE_CG_MOTION(wall_move_temp_z,dt,vel,omega,time,dtime)
  10. {
  11.     Domain *d;
  12.     real temp;
  13.     int ID = 62532;
  14.     Thread *t;
  15.     cell_t c;
  16.  
  17.     d = Get_Domain(2); /* Get the domain using ANSYS Fluent utility */
  18.     t = Lookup_Thread(d, ID);
  19.     /* Loop over all cell threads in the domain */
  20.  
  21.     begin_c_loop(c,t)
  22.     {
  23.         temp = C_T(c,t); /* get cell temperature */
  24.         if (temp > tmax || tmax == 0.)
  25.         {
  26.         tmax = temp;
  27.         }
  28.     }
  29.     end_c_loop(c,t)
  30.     # if RP_NODE /* Perform node synchronized actions here. Does nothing in Serial */
  31.     tmax = PRF_GRHIGH1(tmax);
  32.     # endif /* RP_NODE */
  33.     Message0("\n  Tmax in K = %g",tmax);
  34.  
  35.    
  36.    
  37.    
  38.    
  39.    
  40.     /* reset velocities */
  41.     NV_S(vel, =, 0.0);
  42.     NV_S(omega, =, 0.0);
  43.    
  44.  
  45.     if(tmax >= 393.15 && value <= 14.0) //starts at 120°C, stops at 14mm
  46.     {
  47.         velz= 0.00002;  //,meter per second -> 1mm in 50s
  48.         value=value+velz*dtime*1000.0;
  49.     }
  50.     else
  51.     {
  52.         velz = 0.0;
  53.     }
  54.     Message(" \n  Expansion in mm = %g", value);
  55.     Message(" \n  Velocity in m/s = %g", velz);
  56.     vel[2]=velz;
  57. }