Use of ple_locator

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
CTrinca
Posts: 32
Joined: Mon Mar 30, 2015 9:19 am

Use of ple_locator

Post 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
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Use of ple_locator

Post 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
CTrinca
Posts: 32
Joined: Mon Mar 30, 2015 9:19 am

Re: Use of ple_locator

Post 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
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Use of ple_locator

Post 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
CTrinca
Posts: 32
Joined: Mon Mar 30, 2015 9:19 am

Re: Use of ple_locator

Post 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
Post Reply