|
[Sponsors] |
April 18, 2016, 01:05 |
enum
|
#1 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
Hi All
Particle stripping from the wall film in fluent can be modeled with the foucart, orourke or friedrich models which are builtin and select-able from the GUI. Each calculates the diameter of the particle stripping from the film and injects it as discrete phase. Has someone ever used a user separation law? I have experimental data on which I want to base my separation rather than using the above models. This is from the file sg_film.h Code:
enum { SEPARATION_FOUCART = 0, SEPARATION_OROURKE, /* O'Rourke & Amsden, SAE 961961 */ SEPARATION_FRIEDRICH, /* Friedrich ASME May 2008 Vol 051301-1. */ SEPARATION_USER }; |
|
April 18, 2016, 19:18 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
enum simply enumerates the variables as integers, for example in your code an equivalent segment could be:
Code:
int SEPARATION_FOUCART = 0; int SEPARATION_OROURKE = 1; int SEPARATION_FRIEDRICH = 2; int SEPARATION_USER = 3; |
|
April 18, 2016, 20:18 |
|
#3 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
OK,so why is it even provided in the header file?
I fail to understand the starting point of a wall film UDF. There are no examples in the UDF manual, and there has to be a way to not use the standard fluent separation models for the wall film separation and use a UDF instead? Nowhere to hook a wall film UDF either in the GUI... |
|
April 19, 2016, 22:07 |
|
#4 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Fluent is closed source, therefore we can't see the source files to determine where or why these variables are enumerated. I'm not familiar with the wall film models, perhaps you could achieve a similar model using different hooks/UDFs.
|
|
April 19, 2016, 23:32 |
|
#5 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
Thanks for that. I read on Ansys 17 upgrades that the exact same model I want ed to put in as a UDF for wall film has been included and a new tab in GUI to hook such UDF's is shown in the manual screenshot representing Fluent 17.
But that tab is not actually available in Fluent 17 |
|
April 20, 2016, 19:14 |
|
#6 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Perhaps another model or option needs to be first enabled before the wall film model is shown? They occasionally move options around but if you're reading the current version of the manual then it should be accurate.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what's mean enum in udf | zhu | FLUENT | 3 | May 6, 2024 04:24 |
[OpenFOAM] failed to load vboxvideo | gux290 | ParaView | 12 | April 4, 2015 09:32 |
enum | MASOUD | Fluent UDF and Scheme Programming | 0 | June 5, 2010 01:49 |