Some time ago I was working with other CFD software in a simulation with fan, so it is very interesting for me too.
I was following the comments of Yvan, I added the "cs_fan.c" to my 4.2.1 version and also have to add "cs_math.c" and "cs_math.h" because the functions cs_math_3_cross_product() and cs_math_3_norm() where not defined. Also I have to comment a pair of lines in cs_fan.c where is used
Code: Select all
cell_fan_id
Code: Select all
/* Store the cell_fan_id in the postprocessing field */
// cs_field_t *fans_ids = cs_field_by_name("fans_ids");
//for (cs_lnum_t cell_id = 0; cell_id < n_ext_cells; cell_id++)
// fans_ids->val[cell_id] = (cs_real_t)cell_fan_id[cell_id];
I have run the example (no turbulence model) with your curve and with the used in the template of cs_user_parameters-fan.c without problem. I don't understand very well the definition of "axial_torque" but it is a relation between the axial and radial velocities.
If you want I can upload the case
Regards.