Page 1 of 1

Some question about particle tracking in version4.0.2

Posted: Mon Nov 30, 2015 11:14 am
by yhuang
Hi,every one
Here I have some question about particle tracking in version4.0.2:

Question 1 : what can I do if I want to delete a particle. I make the particle ipepa(jisor,ip)=0 in version 2.0.6,and then this particle will be deleted. But I do it in version4.0.2 by same ways, I found it did not work. Can you tell the correct method?

Question 2 : How can I do if I want save the message of particles every 100 steps.

PS: I use code_saturne4.0.2 with no GUI, so I can not solve above questions with GUI.

Thank you very much!

Re: Some question about particle tracking in version4.0.2

Posted: Mon Nov 30, 2015 10:27 pm
by Yvan Fournier
Hello,

In what routine are you changing the value for ipepa(jisor,ip) ?

This should work to remove particles.

As for particles the log frequency, the associated keyword seems not to be documented, except in the GUI.

Is there a reason you cannot use the GUI (combining it with more advanced user subroutines) ?.

Regards,

Yvan

Re: Some question about particle tracking in version4.0.2

Posted: Tue Dec 01, 2015 10:53 am
by yhuang
Yvan Fournier wrote:Hello,

In what routine are you changing the value for ipepa(jisor,ip) ?

This should work to remove particles.

As for particles the log frequency, the associated keyword seems not to be documented, except in the GUI.

Is there a reason you cannot use the GUI (combining it with more advanced user subroutines) ?.

Regards,

Yvan


Thank you for your help, I make ipepa(jisor,ip)=0 after lagent.f90. It always stop at subroutines lagcou. Can you tell me how can I do if I want to remove the particles?
Thank you very much!

Re: Some question about particle tracking in version4.0.2

Posted: Tue Dec 01, 2015 7:07 pm
by Yvan Fournier
Hello,

I need to check how things are organized. I know the particle tracking (cs_lagr_tracking.c) stage relatively well, and lagent a bit, but am less familiar with the other stages.

Entering "lagdep" in cs_lagr_tracking.c, particles with ipepa(jisor,ip) should be removed.

For the rest, I'll get back to you after I check (or you can try to check the code an modify ipepa(jisor,ip) in the user subroutine called closest before lagdep...)

Regards,

Yvan