Page 1 of 1

Use of ple_locator

Posted: Mon Dec 05, 2016 6:10 pm
by CTrinca
Hello everyone,

I would like to use PLE to exchange information between Saturne and SYRTHES beside the regular coupling. It is not quite clear to me how this can be done, though. Can someone give me an outline of the actions to be done on both sides? In my understanding, the actual information exchange is done by calling ple_locator_exchange_point_var, but what do I need to do beforehand to establish the communication?
Thanks in advance to anyone replying.
Regards,

Cosimo

Re: Use of ple_locator

Posted: Tue Dec 06, 2016 1:28 am
by Yvan Fournier
Hello,

Which type of data do you need to pass ? Surface data on the same surface as the temperature and heat flux, on another surface, global data, ... ? Depending on the case, you'll simply need to use the locator already used by the coupling, build another one, or simply pass synchronization metadata.

Regards,

Yvan

Re: Use of ple_locator

Posted: Tue Dec 06, 2016 11:11 am
by CTrinca
Hello Yvan,

Thanks for replying. Ideally I would like to pass "volume" data from Saturne to Syrthes and "surface" data from Syrthes to Saturne. Apparently, though, ple_locator_exchange_point_var expect the sent data to be defined on the "receiving" points, so I think I will need to rearrange them before sending them, unless there is a better way. Supposing that I would like to pass the information at the end of the time step, what would be the right way to do the exchange?
Thanks again and regards,

Cosimo

Re: Use of ple_locator

Posted: Tue Dec 06, 2016 12:42 pm
by Yvan Fournier
Hello,

You need a separate locator for this. A good basis would be to activate both the volume and surface couplings for Syrthes, and then change the exchanged valeus if required (modifying src/base/cs_syr4_coupling.c in Code_Saturne, and the matching file in Syrthes).

Regards,

Yvan

Re: Use of ple_locator

Posted: Tue Dec 06, 2016 1:43 pm
by CTrinca
Hello,

Thanks a lot. I will try to do as you suggest, although I also need to be sure that "regular" coupling continues to work since I must use it in other parts of the domain.
Thanks again and regards,

Cosimo