Perform test-filtering on a field

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Mohammad
Posts: 114
Joined: Thu Oct 25, 2018 12:18 pm

Perform test-filtering on a field

Post by Mohammad »

Hello,

I want to perform a test-filtering on a field.

It seems that in previous versions there was a subroutine called "cfiltr". (According to this topic: viewtopic.php?t=1133 and ver 4.0 doxygen: cfiltr)

But in current versions there's no subroutine with that name. Is it renamed or changed?

Regards,

Mohammad
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Perform test-filtering on a field

Post by Yvan Fournier »

Hello,

cfiltr has been renamed to cs_les_filter.

Regards,

Yvan
Mohammad
Posts: 114
Joined: Thu Oct 25, 2018 12:18 pm

Re: Perform test-filtering on a field

Post by Mohammad »

Dear Yvan,
Hello and thanks for your reply.

If it is renamed, then why cs_les_filter and cfiltr both exist in version 4.0 doxygen?(link)
While in version 5.0 there is only cs_les_filter.(link)

It seems their inputs are different at least in the number of required elements.

If it is OK, is there an example of cs_les_filter usage? Specially about the first input stride.
For example if I want to filter the velocity field, how can I do that with cs_les_filter? What should I set for stride input?

Regards,

Mohammad
Yvan Fournier
Posts: 4077
Joined: Mon Feb 20, 2012 3:25 pm

Re: Perform test-filtering on a field

Post by Yvan Fournier »

Hello,

In version 4.0, the name of the function and file containing it were different. They have been aligned in 5.0.

To find examples of the use of this function, you need to search for its use in the source code. I am not sure of other examples of its use. You will also need to force the use of the extended neighborhood (modify the "haltyp" function) if you plan to use it for something else than LES with dynamic Smagorinsky filter.

Regards,

Yvan
Mohammad
Posts: 114
Joined: Thu Oct 25, 2018 12:18 pm

Re: Perform test-filtering on a field

Post by Mohammad »

Dear Yvan,

Thank you very much.

Regards,

Mohammad
Post Reply