|
[Sponsors] |
January 16, 2015, 08:28 |
Warnings on Fluent 15
|
#1 |
Member
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12 |
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 |
|
January 16, 2015, 10:27 |
|
#2 |
Member
Join Date: Dec 2012
Posts: 92
Rep Power: 14 |
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 |
|
January 16, 2015, 17:10 |
|
#3 |
Member
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12 |
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 |
|
January 19, 2015, 11:35 |
|
#4 |
Senior Member
Andrew Kokemoor
Join Date: Aug 2013
Posts: 122
Rep Power: 14 |
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.
|
|
January 19, 2015, 16:29 |
|
#5 |
Member
Join Date: Jul 2014
Location: Portugal
Posts: 36
Rep Power: 12 |
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 |
|
|
|
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 |