pavankonchada123
Subscriber
  1. Maximum diameter is particle tracks tab is still the value in injection0 tab
  2. Should we really mention particle diameter in injection0 tab as it will be overwritten with diameter present in UDF
  3. When I activate stochastic collision, coalesce and break up model all the particle which are nucleating are getting aborted
  4. below is the glimpse of udf 
  5. loop(p,I->p)  /* Standard ANSYS FLUENT Looping Macro to get particle
                      streams in an Injection */
     {
      cell = PP_CELL(p);
      cthread = PP_CELL_THREAD(p);
    satpress = H2O_Saturation_Pressure(C_T(cell,cthread));
    parpress = parpressure(cell,cthread);
    supersatratio = parpress/satpress;
    if((parpress/satpress)>1)
    {
    val =log(supersatratio);
    criticalradius= (2*0.072)/(998*461.52*C_T(cell,cthread)*(val));
      mix = THREAD_MATERIAL(cthread);
      mixture_species_loop(mix,sp,i)
      {
       mw[i] = MATERIAL_PROP(sp,PROP_mwi);
       yi[i] = C_YI(cell,cthread,i);
      }
      real val1=exp((-0.301*criticalradius*criticalradius)/(1.38e-23*C_T(cell,cthread)));
      nucl=4.15e34*0.001*val1*C_VOLUME(cell,cthread)*C_R(cell,cthread)*C_R(cell,cthread);
    if(4.15e34*val1*saturatedvapordensity(C_T(cell,cthread))*saturatedvapordensity(C_T(cell,cthread)) >10e12)
     {
    PP_RHO(p) = 998;  
      PP_FLOW_RATE(p) = nucl*(PP_RHO(p)*M_PI/6*pow((2*criticalradius),3))/0.001;
      PP_INIT_DIAM(p) = 2*criticalradius;
     PP_DIAM(p) = 2*criticalradius;  
    //Message("Diameter %f\n",PP_DIAM(p)*10e6);  
     PP_VEL(p)[0] = C_U(cell,cthread);
    PP_VEL(p)[1] =C_V(cell,cthread);
    PP_VEL(p)[2] = C_W(cell,cthread);//C_VOLUME(cell,c_thread)*C_YI(cell,cthread,0)
    PP_T(p) = C_T(cell,cthread);
    PP_INIT_MASS(p) = PP_RHO(p)*M_PI/6*pow(PP_DIAM(p),3);  
    PP_MASS(p) = PP_RHO(p)*M_PI/6*pow(PP_DIAM(p),3); 
     }
     else
     {
       PP_FLOW_RATE(p) = 0.0;
        PP_MASS(p) = 0;
    PP_DIAM(p) = 0;
    }
     }
     else
     {
       PP_FLOW_RATE(p) = 0.0;
        PP_MASS(p) = 0;
    PP_DIAM(p) = 0;
     }
     }