Listla output file modification

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
frpageot
Posts: 85
Joined: Wed Mar 21, 2012 1:10 pm

Listla output file modification

Post by frpageot »

Hello,

i am working on a particle separator in CS2.0.2, and I would like to have figures on particles deposit on different surfaces. In Listla you can find some interesting information about particles oulet or deposit, but I would like to add some information in this file showing for instance only particle deposit on such or such surface. Is it possible, and can someone give me any information on how to do this ?

Moreover I would like to understand how many particles are passing thru a specific surface (which is not a wall, only a dummy surface created bay partitionning the mesh). I tried to modify the uslast.f90 file using example 3, but I am not sure I totally understand the way it works? Can someone explained me ?

thanks.
Fred
Xubuntu 16.04 / CS5.0
guingo
Posts: 31
Joined: Wed Apr 04, 2012 2:52 pm

Re: Listla output file modification

Post by guingo »

Hello again, sorry I missed this one.

The listla file only provides very general information on the particle behaviour in the whole domain. For your particular purpose, I would rather advocate to implement a new counter in file uslabo.f90 (the routine that is called when a particle crosses a boundary face), and to increment this counter when the particle crosses the particular zone of interest (defined by a particular zone number in the array ifrlag(nfabor)), and then to make your code write the information in a new text file.

To compute the number of particles that crosses a specific (intern) surface, the 3rd example in uslast indeed seems to fit your needs (in the X-direction) by filling a user-defined array with the particle statistical weight tepa(ip,jrpoi). If you only want particle number, just increment a specific counter when the crossing is detected (ie "if ettp(ip,jzp).gt.ZP" in the Z-direction, when ZP the Z-coordinate of the section, for particles going from low to high Z)

Best regards,
Mathieu
Post Reply