|
[Sponsors] |
UDF : velocity, k and epsilon (radial profile) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2013, 07:02 |
|
#21 |
New Member
Join Date: Jul 2013
Posts: 21
Rep Power: 13 |
It's really strange, I have compiled the udf and the compiler tells me this :
udf_final_velocity_check.c: In function ‘some_func’: udf_final_velocity_check.c:6: warning: excess elements in array initializer udf_final_velocity_check.c:6: warning: (near initialization for ‘r0’) udf_final_velocity_check.c:7: warning: excess elements in array initializer udf_final_velocity_check.c:7: warning: (near initialization for ‘v0’) udf_final_velocity_check.c:5: warning: unused variable ‘vel’ udf_final_velocity_check.c: In function ‘inlet_axial_velocity’: udf_final_velocity_check.c:23: warning: unused variable ‘v’ # Linking libudf.so because of makefile user.udf udf_names.c udf_names.o udf_final_velocity_check.o ld -shared -lm udf_names.o udf_final_velocity_check.o -o libudf.so make[3]: warning: Clock skew detected. Your build may be incomplete. make[3]: Leaving directory `/home/cdiakodi/Desktop/Fluent_fran_fran/maillage_pr_fluent/new_2/lnamd64/3d' make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/home/cdiakodi/Desktop/Fluent_fran_fran/maillage_pr_fluent/new_2/lnamd64/3d' make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/home/cdiakodi/Desktop/Fluent_fran_fran/maillage_pr_fluent/new_2/lnamd64/3d' an idea ? Last edited by cdiako; July 24, 2013 at 07:01. |
|
July 26, 2013, 21:42 |
|
#22 |
Senior Member
|
It happens if you the array initializer has more elements than the array declared
Code:
int r0[3] = {0, 1, 2, 3}; Code:
int r0[] = {0, 1, 2, 3}; |
|
July 29, 2013, 05:44 |
|
#23 |
New Member
Join Date: Jul 2013
Posts: 21
Rep Power: 13 |
You were right, the UDF works now.
Thank you! |
|
July 30, 2013, 09:29 |
|
#24 |
New Member
Join Date: Jul 2013
Posts: 21
Rep Power: 13 |
Just one last question: how can I change the UDF that we have created to add a velocity profile of particles (using DPM)?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for inlet velocity profile | Bollonga | Fluent UDF and Scheme Programming | 4 | June 29, 2021 05:40 |
SimpleFoam k and epsilon bounded | nedved | OpenFOAM Running, Solving & CFD | 16 | March 4, 2017 09:30 |
UDF to define velocity, k, epsilon profiles at velocity-inlet | aerospain | FLUENT | 0 | July 8, 2011 08:14 |
SimpleFoam k and epsilon bounded | nedved | OpenFOAM Running, Solving & CFD | 1 | November 25, 2008 21:21 |
UDF velocity profile problem | Steve | FLUENT | 0 | January 18, 2005 13:11 |