Code_Saturne cells coupling by PLE library

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
yang
Posts: 15
Joined: Thu Jul 14, 2022 3:39 pm

Code_Saturne cells coupling by PLE library

Post by yang »

Hi team,

I am working on coupling simulation with Code_Saturne v7.0.2 with corresponding PLE library.

I have achieved such coupling simulation: Code_Saturne receives data and places on it boundary face centre by the function cs_syr_coupling_define[https://github.com/code-saturne/code_sa ... -syrthes.c].

Now, I'd like to achieve cell coupling. Like in the figureImage, Code_Saturne receives corresponding data and place in cell centre (#a, #b ... #h). I found the second term of function (cs_syr_coupling_define) only act on the boundary criteria. I'd like to know how to replace data in Code_Saturne cells.

Best wishes,
yang

Code: Select all

    cs_syr_coupling_define("SYRTHES_02",
                           "Wall",            /* boundary criteria */
                           NULL,              /* volume_criteria */
                           'z',               /* projection_axis */
                           allow_nonmatching,
                           tolerance,
                           verbosity,
                           plot);

  }
Attachments
cell_coupling.png
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: Code_Saturne cells coupling by PLE library

Post by Yvan Fournier »

Hello,

Actually, in the Syrthes exemple, using a volume criteria, you can also have volume coupling, so you may want to look at that code path (in the case, we only use P0 interpolation, but you can use Taylor expansion here also).

To find other examples of mixed boundary/volume coupling, you can look at the code_saturne/code_saturne coupling code, but is is still an old combination of C and Fortran layers, so maybe not as easy to follow (whereas the Syrthes coupling is not really simpler, but at least has almost everything in the same file).

Best regards,

Yvan
Post Reply