|
[Sponsors] |
init_tracked_particle error too few arguments |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 20, 2017, 09:46 |
init_tracked_particle error too few arguments
|
#1 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Hello,
I have some code to compile, which is not written by me. The code compiled good in fluent 17.2, not with the newest 18.0. I have error in this line: init_tracked_particle(tp, pp, dpm_par.unsteady_tracking, FALSE, FALSE); The error when compiling is too few arguments. I cannot find any usefull info about init_tracked_particle. Can anybody point me in the right direction? Thank you
__________________
Google is your friend and the same for the search button! |
|
January 20, 2017, 10:16 |
|
#2 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
|
||
January 22, 2017, 11:10 |
|
#3 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Thank you Bruno, I can see there are several changes in the dpm calculations, however no specific information about the init function.
Thank you anyaway!
__________________
Google is your friend and the same for the search button! |
|
March 1, 2017, 07:16 |
|
#4 |
New Member
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15 |
Did you ever find the reason behind this? I've just discovered the exact same issue.
The odd thing is my UDF still compiles fine for Fluent 17.2 on both Windows and Linux, it's OK for fluent 18.0 on Windows, it's only on Linux with Fluent 18.0 that I get the init_tracked_particle error. Richard |
|
January 22, 2018, 07:47 |
|
#5 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
No, but it seems in the newest fluent 19.0 init_tracked_particle is back to 5 arguments...
Did you find the meaning (or some documentation) of these arguments?
__________________
Google is your friend and the same for the search button! |
|
January 22, 2018, 13:59 |
|
#6 |
Senior Member
Join Date: Sep 2017
Posts: 246
Rep Power: 12 |
Hi ghost 82,
In any installation, Windows or Linux, you will be provided with header files containing macro definitions and prototypes for the available built-in functions. In Windows, they are typically somewhere like "C:\Program Files\ANSYS Inc\v180\fluent\fluent18.0.0\src" (then subdirectories such as "dpm"). So, you can grep for the function you want. Sometimes the prototype will show you only the types of the arguments, but in this case the developers have done the kind and rational thing and supplied typical variable names as well: for 18.0 on Windows: Code:
FLUENT_EXPORT void init_tracked_particle(Tracked_Particle *tp, Particle *p, cxboolean unsteady_tracking,int tracking_migrants, cxboolean update, cxboolean need_cphase); Now comes the guesswork. Is it a numerical parameter ("maximum number of transitions per particle")? Or is it a selection ("0 = default model, 1 = new model, 2 = bad model")? I have no idea. This is the beginning and the end of the available "documentation" at this level of UDF programming. (You can search the ANSYS Customer Portal -- I did in this case, and was not surprised when I found nothing.) If ANSYS have a justification for this very low level of documentation, I guess it might be that the expense of maintaining full documentation would be considerable, and would not be of any value to most users. However, I think they might (and certainly should) give you an answer if you send in a support query. If you could share the answer here, that would be helpful. You might as well ask about 18.x and 19.x simultaneously. I don't understand why Windows and Linux would be different in rw511's case (18.0, in 2017), unless one of the compilers is dangerously flexible. Cheers, Ed |
|
February 1, 2018, 12:11 |
|
#7 |
New Member
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15 |
I never did find much information on this but I've just got new errors with too many arguments in my call now, so as you say Bruno, back to five we go.
If I find anything, I'll let you know. |
|
February 9, 2018, 05:58 |
|
#8 |
New Member
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15 |
Hi All,
I was able to get the following information about init_tracked_particle: the parameters for init_tracked_particle are as follows: Tracked_Particle *tp, /* tracked particle struct to be initialized */ Particle *pp, /* pointer to particle which should be used to fill the tracked particle */ cxboolean unsteady_tracking, /* is the simulation using unsteady particle tracking? */ cxboolean update, /* shall the particle positions be updated as at the end of a flow time step? */ cxboolean need_cphase, /* shall the continuous phase property information filled to compute drag, etc? */ And the parameter that appeared in 18.0 was removed in 18.1 related to parallel tracking. Hope it's of some use. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with if statement | CHARLES | OpenFOAM Programming & Development | 17 | August 22, 2021 04:14 |
How to read freestream velocity vector in a new boundary condition? | robyTKD | OpenFOAM Programming & Development | 5 | April 24, 2013 10:43 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |