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

Warnings on Fluent 15

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By beer
  • 1 Post By Kokemoor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2015, 08:28
Default Warnings on Fluent 15
  #1
Member
 
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12
Rui_27 is on a distinguished road
Hello,

I'm receiving these two warnings on Fluent 15.0.0:

1- udf_names.c(56) : warning C4113: 'void (*)()' differs in parameter lists from 'void (*)(void)'
2- warning: mass diffusivity: invalid (zero) diffusivity

The first occurs during compilation and started just after I changed from version 14.5.7 to 15.0.0. In the process I had to change from VS2013 to VS2012 because VS2013 was not working with version 15.0.0.
The second appeared when I replaced the mass diffusivity (before was a constant value) by this formula:

D_eff = D*(porosity*(1-water_volume_fraction))^1.5

This is an expression for effective diffusivity on porous media that accounts for the effect of liquid water (typically used in PEM fuel cells modeling).

It seems both warnings do not affect my results, but I might be missing something...

Does anyone know what this warnings really mean and if they have implications on the results?

Regards,
Rui
Rui_27 is offline   Reply With Quote

Old   January 16, 2015, 10:27
Default
  #2
Member
 
Join Date: Dec 2012
Posts: 92
Rep Power: 14
beer is on a distinguished road
Hi

I have no idea about the first question, but I can try to say something to 2.

For numerical codes diffusivity of 0 is a problem. The problem you have is that the matrix can become singular. This is not a problem for transient simulations, but in steady state ones in regions with very small velocities the coefficients in the matrix become 0 (or close to 0), which can make your simulation crash.
Plus for a poisson equation a zero or negative diffusion crashes the simulation immediately.

You can easily fix the problem by changing the D_eff to something like
D_eff = max(D_eff, 1e-20)

Regards
yijecho likes this.
beer is offline   Reply With Quote

Old   January 16, 2015, 17:10
Default
  #3
Member
 
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12
Rui_27 is on a distinguished road
Thanks Marcus.

You are right, for transient simulations there is no problem, but when I try steady-state cases, the simualtion diverges unexpectedly, without an increase in the residuals.

I will follow your advice and set a minimum value for D_eff.

Regards
Rui_27 is offline   Reply With Quote

Old   January 19, 2015, 11:35
Default
  #4
Senior Member
 
Andrew Kokemoor
Join Date: Aug 2013
Posts: 122
Rep Power: 14
Kokemoor is on a distinguished road
For the first warning, I'll just say that I always get these in my UDFs, and it's never caused any problems. I use Visual Studio 2010, and got these warnings both in 14.5.0 and 15.0.0.
sooraj546 likes this.
Kokemoor is offline   Reply With Quote

Old   January 19, 2015, 16:29
Default
  #5
Member
 
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12
Rui_27 is on a distinguished road
Thanks Andrew,

I also couldn't find any problems so far.

Good to know that you got this error also with VS2010. I was planning to try it instead of VS2012 to check if this warning would disappear. I see it wouldn't work.
So thanks, you save some time

Regards
Rui_27 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
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 7 March 23, 2018 04:22
heat transfer with RANS wall function, over a flat plate (validation with fluent) bruce OpenFOAM Running, Solving & CFD 6 January 20, 2017 07:22
Alias problem when starting FLUENT from command line batch_error FLUENT 0 May 24, 2012 09:20
Fluent 12.0 is worst then Fluent 6.2 herntan FLUENT 5 December 14, 2009 03:57
Problems in lauching FLUENT Lourival FLUENT 3 January 16, 2008 17:48


All times are GMT -4. The time now is 19:13.