Is it possible to couple OpenFOAM with High-Order-Spectral method base on preCICE?

I’m working on the coupled method between OpenFOAM and High-Order-Spectral method. I used the open source software HOS-Ocean (GitHub - LHEEA/HOS-ocean: This project has migrated to GitLab: https://gitlab.com/lheea/HOS-Ocean). The communication between these two method is velocity and surface elevation.

I have achieved one-way coupling from HOS to OpenFOAM. However, I want to do two-way coupling between these two software. Is it possible to utilize preCICE to do this coupling? Is there any suggestion if it is possible to do this work?

Hi @yuanz,

any simulation code that works on a mesh should be technically compatible with preCICE. I have not worked with spectral methods, but I understand that you could couple a spectral method based code with a finite volume based code. Of course, you will not have the high order of the spectral method on the complete coupled domain then.

As far as I know, nobody has yet coupled HOS-ocean. You can try coupling it yourself:

Check this out, it is the coupling between OpenFOAM and HOS:


1 Like

Hi Ya_Squall,

Is this coupling available for public use, possibly with a tutorial folder? Also with a publication to cite?

Thanks

Hi, Hydronautica

At this moment the code is still under testing and yet open to the public. The publication is also under review.

Thanks

@Ya_Squall thanks for directly answering here! I did not remember that you were also using this code.

What is the conclusion from the preCICE perspective? I understand that you have already coupled this code, and that this also covers floating objects. Correct?

Please do update this topic with your publication and code, once available. You could also share the case in Community projects - preCICE Forum on Discourse

Thanks for sharing your work on preCICE. I have a question about coupling OF with HOS, as far as I know the coupling in preCICE is interface coupling. However, I think you use domain coupling (or I think HOS needs to coupled with OF in domain). How dose it work?