CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > CONVERGE

make udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2019, 04:16
Default make udf
  #1
Member
 
liyong
Join Date: Feb 2017
Posts: 66
Rep Power: 9
luckyboy is on a distinguished road
I had compiled a udf file(.dll), when I copy it to work directory and run the case with udf_flag open, the error appeared showed as attachment. who can tell me the reason? Thank you very much.
Attached Images
File Type: jpg 11.jpg (147.5 KB, 34 views)
luckyboy is offline   Reply With Quote

Old   January 13, 2019, 03:01
Default
  #2
Member
 
mohsin
Join Date: Dec 2018
Posts: 52
Rep Power: 7
mohsinmkhan is on a distinguished road
try it with V2.4
mohsinmkhan is offline   Reply With Quote

Old   January 14, 2019, 09:48
Default
  #3
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Greetings,

In order to diagnose the issue you are facing, additional information would be required. What udf(s) have you used/enabled (Please list the flags enabled in udf.in and the *.c used/altered to compile the udfs)? Does the case run without udf enabled?

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   January 15, 2019, 22:50
Default
  #4
Member
 
liyong
Join Date: Feb 2017
Posts: 66
Rep Power: 9
luckyboy is on a distinguished road
Quote:
Originally Posted by ksrivast View Post
Greetings,

In order to diagnose the issue you are facing, additional information would be required. What udf(s) have you used/enabled (Please list the flags enabled in udf.in and the *.c used/altered to compile the udfs)? Does the case run without udf enabled?

Sincerely,
I have used user_post and user_point(user_post_flag=1 and user_point_flag=1 ; user_post.c and user_points.c are used to compile the udfs), the case can run both without udf enable and with other .dll. the attachment is my user_post.c, and predefined user_points.c is used without modification
Attached Files
File Type: c user_post.c (2.2 KB, 7 views)
luckyboy is offline   Reply With Quote

Old   January 16, 2019, 17:46
Default
  #5
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
Greetings,

When using user_point_flag, ensure user_points_data.c is always being used along with user_points.c to compile the udf. Also ensure that the user_dynamic_routines.c and the *.h headers are obtained from the same version as the solver (2.3.10) for this case.

Could you clarify if the case stops with that error right before the first iteration of the simulation, or in the middle of the simulation? Are you using a profile for max_cfl_u in inputs.in?

Try the following :
1. Add #include "parsing.h" at the header of your user_post.c, user_points.c and user_points_data.c files. Re-compile the udfs.
2. If you are running with a profile for max_cfl_u, switch to a single,constant value to see if the case runs. This will help diagnose the issue.
3. We always recommend switching to a recent version of CONVERGE. v2.3.10 is very old . We are currently at v2.3.35.

Hope this helps,

Sincerely,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Old   January 17, 2019, 05:50
Default
  #6
Member
 
liyong
Join Date: Feb 2017
Posts: 66
Rep Power: 9
luckyboy is on a distinguished road
Quote:
Originally Posted by ksrivast View Post
Greetings,

When using user_point_flag, ensure user_points_data.c is always being used along with user_points.c to compile the udf. Also ensure that the user_dynamic_routines.c and the *.h headers are obtained from the same version as the solver (2.3.10) for this case.

Could you clarify if the case stops with that error right before the first iteration of the simulation, or in the middle of the simulation? Are you using a profile for max_cfl_u in inputs.in?

Try the following :
1. Add #include "parsing.h" at the header of your user_post.c, user_points.c and user_points_data.c files. Re-compile the udfs.
2. If you are running with a profile for max_cfl_u, switch to a single,constant value to see if the case runs. This will help diagnose the issue.
3. We always recommend switching to a recent version of CONVERGE. v2.3.10 is very old . We are currently at v2.3.35.

Hope this helps,

Sincerely,
Thank you! I'll check the case according to you suggestions.
luckyboy 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
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
How to make a UDF to have a velocity profile in a square channel Gigis Fluent UDF and Scheme Programming 8 January 13, 2013 22:20
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
problem to make a UDF parallel, the "hello world version" pilou Fluent UDF and Scheme Programming 0 March 10, 2011 08:19
problem to make a UDF parallel pilou Fluent UDF and Scheme Programming 0 March 9, 2011 06:35


All times are GMT -4. The time now is 13:35.