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

UDF : velocity, k and epsilon (radial profile)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2013, 07:02
Default
  #21
New Member
 
Join Date: Jul 2013
Posts: 21
Rep Power: 13
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 07:01.
cdiako is offline   Reply With Quote

Old   July 26, 2013, 21:42
Default
  #22
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
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, 05:44
Default
  #23
New Member
 
Join Date: Jul 2013
Posts: 21
Rep Power: 13
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, 09:29
Default
  #24
New Member
 
Join Date: Jul 2013
Posts: 21
Rep Power: 13
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


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:47.