CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

DEFINE_DIFFUSIVITY can not read UDMI?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2020, 12:54
Default DEFINE_DIFFUSIVITY can not read UDMI?
  #1
Member
 
Deutschland
Join Date: Jun 2020
Location: https://t.me/pump_upp
Posts: 43
Rep Power: 5
schwaral is on a distinguished road
Send a message via ICQ to schwaral Send a message via AIM to schwaral Send a message via Yahoo to schwaral
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;
	}
schwaral is offline   Reply With Quote

Old   December 12, 2020, 14:25
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
Read more carefully...

The error probably does not say UDMI, but DUMI.
pakk is offline   Reply With Quote

Old   December 12, 2020, 14:27
Default
  #3
Member
 
Deutschland
Join Date: Jun 2020
Location: https://t.me/pump_upp
Posts: 43
Rep Power: 5
schwaral is on a distinguished road
Send a message via ICQ to schwaral Send a message via AIM to schwaral Send a message via Yahoo to schwaral
It does say C_UDMI with the C_ in the error message.
schwaral is offline   Reply With Quote

Old   December 12, 2020, 20:11
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26
pakk will become famous soon enough
But your code does not use UDMI at all...
pakk is offline   Reply With Quote

Old   December 14, 2020, 00:58
Default
  #5
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FLUENT porous zone inputs eishinsnsayshin FLUENT 19 April 17, 2020 04:40
Modelling Combustion in Porous Zone tanjinjack FLUENT 2 September 26, 2016 04:10
how to define a porous media? hoya yaho FLUENT 0 June 23, 2015 08:08
local thermal non equilibrium model in porous media adi.ptb Fluent UDF and Scheme Programming 0 November 1, 2014 15:00
how to use UDF or method to define Boundary condition for Porous media in NLTE hitchenxue FLUENT 0 April 19, 2014 02:40


All times are GMT -4. The time now is 23:07.