CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF For Electrical Conductivity Not working (https://www.cfd-online.com/Forums/fluent-udf/181163-udf-electrical-conductivity-not-working.html)

rage December 8, 2016 11:39

UDF For Electrical Conductivity Not working
 
Hello All,

I was trying to create a UDF for electrical conductivity in a multiphase MHD simulation using DEFINE_PROPERTY. While the UDF gets compiled and loaded. It gives me an error as soon as I initialize/run or try to plot electrical conductivity.
This is not working even if I give a constant as return in the UDF.
The error I get is , "Error: received a fatal signal (Segmentation fault)."
I am using 17.1.

Thanks in anticipation.

Bruno Machado December 9, 2016 06:16

Quote:

Originally Posted by rage (Post 628817)
Hello All,

I was trying to create a UDF for electrical conductivity in a multiphase MHD simulation using DEFINE_PROPERTY. While the UDF gets compiled and loaded. It gives me an error as soon as I initialize/run or try to plot electrical conductivity.
This is not working even if I give a constant as return in the UDF.
The error I get is , "Error: received a fatal signal (Segmentation fault)."
I am using 17.1.

Thanks in anticipation.

this probably means you are trying to access something that is not available (yet). For example, this happens when you use a gradient in the initialization process.

Check if all the information you use in your UDF is available.

rage December 9, 2016 09:03

Hi,
Thanks for the response. I have checked that. I just tried returning a constant value from UDf but it still did not work.
In fact, the same udf when applied to any other material property is working but not for elec cond.

Quote:

Originally Posted by Bruno Machado (Post 628925)
this probably means you are trying to access something that is not available (yet). For example, this happens when you use a gradient in the initialization process.

Check if all the information you use in your UDF is available.



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