Jump to content

Mr. Tran Quang

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by Mr. Tran Quang


  1. Hi everybody, I'm from Vietnam. I'm an CFD engineer.Previous I used ANSYS Fluent to simulate but now, I'm using Star CCM+ software to simulate for HVAC project. because of I just used this software in few weeks. So I have a problem. I hope that everybody help me.

    I want to hook C language code (similar ANSYS Fluent) into STAR CCM+ to wind speed calculate. I don't know how to do. This is my code. Please help me

    #include "udf.h"

    DEFINE_PROFILE(log_velocity,thread,index)
    {
    real y[ND_ND];
    real z;
    face_t f;

    begin_f_loop(f,thread)
    {
    F_CENTROID(y,f,thread);
        z = y[1];
        F_PROFILE(f,thread,index) = 3.7*log(z/0.6)/log(10.0/0.6);
    }
    end_f_loop(f,thread)
    }

     

×
×
  • Create New...