some advice on UDF
I want to thank the people here and share some of my experience on UDF: 1. Some people met the problem when interprete the UDF file with the error "line 1 parse error". The line 1 is your #include udf.h, if you save your UDF source at the different path with the udf.h, the fluent will not find the file. So you will receive this error.
2.Some people meet the problem like this "Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()" i can tell one reason for this problem: you defined the solid boundary conditions in your domain, and you set the velocity et al to whole domain. 3.Please write all UDF function in a file, if you have more than 2 UDF files. |
I have the same problem,
When I first compiled my udf file, it gave the error of "cannot find stdio.h and math.h". After I got this message, I have put those .h files inside the directory but this time, it gave the parse error for those files. I had a look at those files corresponding lines but I hesitated to change'em because they're long.
How can I solve this problem? If anybody can help me I'll appreciate it. Thanks anyway |
Re: I have the same problem,
parse error comes when there is any space in the path name u have saved. like for ex: if ur path name is say... e:\fluent files\x.cas, then it says parse error. so change the name of the folder and see that there is no space in its name.
|
But there's no any space in the path
nI have no space in the path. The problem must be something else.Because parse error is given for inside of the .h files which are stdio and math.
thanks anyway |
Re: But there's no any space in the path
Hi, if u leave the space into the name of the udf file, like "temperature profile", the problem will appear.
|
All times are GMT -4. The time now is 08:02. |