CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CONVERGE (https://www.cfd-online.com/Forums/converge/)
-   -   make udf (https://www.cfd-online.com/Forums/converge/213731-make-udf.html)

luckyboy January 7, 2019 04:16

make udf
 
1 Attachment(s)
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.

mohsinmkhan January 13, 2019 03:01

try it with V2.4

ksrivast January 14, 2019 09:48

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,

luckyboy January 15, 2019 22:50

1 Attachment(s)
Quote:

Originally Posted by ksrivast (Post 721900)
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

ksrivast January 16, 2019 17:46

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,

luckyboy January 17, 2019 05:50

Quote:

Originally Posted by ksrivast (Post 722159)
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.


All times are GMT -4. The time now is 06:46.