CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

UDF : velocity, k and epsilon (radial profile)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 23, 2013, 06:02
Default
  #21
New Member
 
Join Date: Jul 2013
Posts: 21
Rep Power: 4
cdiako is on a distinguished road
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 06:01.
cdiako is offline   Reply With Quote

Old   July 26, 2013, 20:42
Default
  #22
Senior Member
 
Join Date: Aug 2011
Posts: 315
Rep Power: 12
blackmask will become famous soon enough
It happens if you the array initializer has more elements than the array declared
Code:
int r0[3] = {0, 1, 2, 3};
In the above example "r0" is an integer array of length three while the initializer has four elements. In my post I wrote it as
Code:
int r0[] = {0, 1, 2, 3};
There should be no warning.
blackmask is offline   Reply With Quote

Old   July 29, 2013, 04:44
Default
  #23
New Member
 
Join Date: Jul 2013
Posts: 21
Rep Power: 4
cdiako is on a distinguished road
You were right, the UDF works now.

Thank you!
cdiako is offline   Reply With Quote

Old   July 30, 2013, 08:29
Default
  #24
New Member
 
Join Date: Jul 2013
Posts: 21
Rep Power: 4
cdiako is on a distinguished road
Just one last question: how can I change the UDF that we have created to add a velocity profile of particles (using DPM)?
cdiako is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SimpleFoam k and epsilon bounded nedved OpenFOAM Running, Solving & CFD 13 November 4, 2013 15:13
UDF for inlet velocity profile Bollonga Fluent UDF and Scheme Programming 0 January 15, 2013 06:22
UDF to define velocity, k, epsilon profiles at velocity-inlet aerospain FLUENT 0 July 8, 2011 07: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


All times are GMT -4. The time now is 03:33.