CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   a problem of property UDF!I need help (http://www.cfd-online.com/Forums/fluent-udf/106451-problem-property-udf-i-need-help.html)

hw0076 August 29, 2012 10:50

a problem of property UDF!I need help
 
http://photo.renren.com/photo/238119...003a61125b.jpg
Hi,everyone!
Nice to meet you!
I have got a problem about material properties.I have writen a UDF for thermal conduction and viscosity,and i can compile and load the udf,there is no error,but when i edit the property in the material panel,i choose the option "user-defined",and i can see the udf,the problem is that i can't choose it.For check the problem,I write a simple code instead my code,but it has the same problem,I don't know whether my software has problem.
my simple code is below:
#include "udf.h"
DEFINE_PROPERTY(tc,c,t)
{
return 10.0;
}
the same problem i put in the image.
Thanks for everyone,i need your help eagerly,Waiting for reply.
http://www.cfluid.com/bbs/attachment...96&nothumb=yes

hw0076 August 29, 2012 11:06

i don't know how to upload picture,my picture all can't be displayed.

hw0076 August 29, 2012 23:28

Additional,there is another error I think maybe caused by same reason。That is when I compiled and loaded the simple test function above,I choose “define”-"materials"-"user-defined database"-input "1" for database name-ok-new-input "1" for material name-types choose "fluid"-choose one of the available properties,for example,viscosity-then choose viscosity on the right-edit-choose the available properties for "user-defined"-edit properties choose "user-defined"-edit,then,I can't open the "edit" panel,and I got a error notice "Error: FLUENT received a fatal signal (SEGMENTATION VIOLATION).
Error Object: ()".
That's why?
I have been confused for days,I really want the solution.
Thanks.


All times are GMT -4. The time now is 02:40.