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

enum

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2016, 01:05
Default enum
  #1
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
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
};
Does someone know how enum works and what it is? Where will the output from my UDF go to for the separation model? I am suspecting I have to use SEPARATION_USER somehow?
hwet is offline   Reply With Quote

Old   April 18, 2016, 19:18
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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;
Note that the last variable SEPARATION_USER is essentially a count of the number of variables.
`e` is offline   Reply With Quote

Old   April 18, 2016, 20:18
Default
  #3
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
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...
hwet is offline   Reply With Quote

Old   April 19, 2016, 22:07
Default
  #4
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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.
`e` is offline   Reply With Quote

Old   April 19, 2016, 23:32
Default
  #5
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
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
hwet is offline   Reply With Quote

Old   April 20, 2016, 19:14
Default
  #6
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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.
`e` 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
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


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