Jump to content
Mr. Tran Quang

Field Function

Recommended Posts

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)
}

 

Share this post


Link to post
Share on other sites

Hi Tran,

 

I guess within STAR-CCM+ there must be a way to hook or compile so called "User Defined Functions (UDF)" as it is the case in ANSYS Fluent. But I believe CAESES forum is not likely the best place to address this question unless you would like to parameterize the velocity definition.

 

Maybe you would be more interested to dig into STAR-CCM+ Forums?

 

Cheers

Ceyhan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...