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:


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?

I guess that “domain coupling” means what we call “volume coupling”. This is generally possible with the OpenFOAM adapter, no clue whether this works with HOS:

Hi @Ya_Squall
My question is: Have you successfully achieved the bidirectional coupling between HOS and openfoam? So far, what has been the progress of your research? Are there any papers available for me to refer to?
Thanks

An efficient two-way coupling approach for viscous and potential flows in free-surface hydrodynamic simulations,
Ocean Engineering,
Volume 354, Part 1,
2026,
124878,
ISSN 0029-8018,
https://doi.org/10.1016/j.oceaneng.2026.124878.
(https://www.sciencedirect.com/science/article/pii/S0029801826007122)

@yuanz Have you successfully achieved the bidirectional coupling between HOS and openfoam? So far, what has been the progress of your research? Are there any papers available for me to refer to?
Thanks

Thank you for your reply!

Hi @Ya_Squall
In your previous reply, you mentioned that you have developed a set of codes for coupling HOS with openfoam and have made them open-source. Could you please provide the specific web link?

@Chenye_Xi to my understanding, @Ya_Squall et al. have a follow-up paper in the pipeline and will publish the code alongside the paper.

@Ya_Squall please correct me if I am wrong.