free surface not moving

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
HelmutZhang
Posts: 15
Joined: Wed Oct 25, 2017 1:51 am

Re: free surface not moving

Post by HelmutZhang »

Hello,Luciano

Whether Code_Saturne can be achieved wo fluid modelling? The attachment is the user subroutine I mentioned earlier. I hope you can give me valuable advice.

Best wishes,

Helmut
Attachments
cs_user_boundary_conditions_ale001.f90
(7.48 KiB) Downloaded 154 times
alelav.f90
(8.77 KiB) Downloaded 148 times
Luciano Garelli
Posts: 282
Joined: Fri Dec 04, 2015 1:42 pm

Re: free surface not moving

Post by Luciano Garelli »

Hello,

In the "cs_user_boundary_conditions_ale001.f90" file you define "itypfb(ifac,ilelt) = ientre" and you fill all the icodcl and rcodcl arrays. As it is mentioned in the user documentation
In the case of standard boundary conditions (see §6.4.1), it is sufficient to complete itypfb(ifac)
and parts of the array rcodcl; the array icodcl and most of rcodcl are filled automatically. For
non-standard boundary conditions (see §6.4.2), the arrays icodcl and rcodcl must be fully completed.
So, you get an error during the execution. If you comment the line "itypfb(ifac,ilelt) = ientre", the BC is imposed correctly.

I attach a case using this subroutine, I modify the values of some variables in order to used an existing mesh.
Wave_case.zip
(40.79 KiB) Downloaded 174 times
Results.
https://drive.google.com/open?id=1uxvG4 ... QmGDsKiFnZ

About multiphase flow, EDF has a specif solver called NEPTUNE, you can check the information in the code saturne web page. UPDATE(

Regards,

Luciano


UPDATE
You can check the following presentation
https://www.code-saturne.org/cms/sites/ ... covitz.pdf
Post Reply