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

init_tracked_particle error too few arguments

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By ghost82
  • 1 Post By rw511
  • 1 Post By obscureed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2017, 09:46
Default init_tracked_particle error too few arguments
  #1
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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
chaitanyaarige likes this.
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   January 20, 2017, 10:16
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
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
My best (and only) advise is have a look in the patch notes from version 17.2 to 18.0. Maybe there is a information related to this.
Bruno Machado is offline   Reply With Quote

Old   January 22, 2017, 11:10
Default
  #3
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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!
ghost82 is offline   Reply With Quote

Old   March 1, 2017, 07:16
Default
  #4
New Member
 
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15
rw511 is on a distinguished road
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
chaitanyaarige likes this.
rw511 is offline   Reply With Quote

Old   January 22, 2018, 07:47
Default
  #5
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
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!
ghost82 is offline   Reply With Quote

Old   January 22, 2018, 13:59
Default
  #6
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 12
obscureed is on a distinguished road
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);
So it looks like the new argument comes before the final ",FALSE,FALSE)"; it's an integer; and it's something to do with migrants (probably from partition to partition in parallel).

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
ghost82 likes this.
obscureed is offline   Reply With Quote

Old   February 1, 2018, 12:11
Default
  #7
New Member
 
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15
rw511 is on a distinguished road
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.
rw511 is offline   Reply With Quote

Old   February 9, 2018, 05:58
Default
  #8
New Member
 
Richard
Join Date: May 2011
Posts: 10
Rep Power: 15
rw511 is on a distinguished road
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.
rw511 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
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


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