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/)
-   -   DEFINE_DIFFUSIVITY can not read UDMI? (https://www.cfd-online.com/Forums/fluent-udf/232404-define_diffusivity-can-not-read-udmi.html)

schwaral December 12, 2020 12:54

DEFINE_DIFFUSIVITY can not read UDMI?
 
Hi I have this short Code but it seems like I can not access the C_UDMI. Error: Not known Symbol "C_UDMI"

I have activated 3 CUDMs and I also compile the udf.

Code:

DEFINE_DIFFUSIVITY(mydiff, c, t, i)
{
        if (C_DUMI(c, t, 2) == 1.0)
        {
                return 1.0e-10;
        }
        else
        {
                return 2.95255e-05;
        }


pakk December 12, 2020 14:25

Read more carefully...

The error probably does not say UDMI, but DUMI.

schwaral December 12, 2020 14:27

It does say C_UDMI with the C_ in the error message.

pakk December 12, 2020 20:11

But your code does not use UDMI at all...

AlexanderZ December 14, 2020 00:58

there should be no problem with code
Code:

#include "udf.h"
DEFINE_DIFFUSIVITY(mydiff, c, t, i)
{
        if (C_UDMI(c, t, 2) == 1.0)
        {
                return 1.0e-10;
        }
        else
        {
                return 2.95255e-05;
        }
}

if you still have, probably it comes from somewhere else


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