Search found 239 matches

by Luciano Garelli
Tue Dec 04, 2018 1:22 pm
Forum: code_saturne usage
Topic: free surface in paraview
Replies: 3
Views: 1000

Re: free surface in paraview

Hello, Check if in your XML file in the DATA directory there is a block of code like this for the BC_4 <wall field_id="none" label="BC_4"> <ale choice="fixed_boundary"/> </wall> If there exist, remove it, and the run the simulation without saving in the GUI. Other option is to compare the two XML (t...
by Luciano Garelli
Mon Dec 03, 2018 2:22 pm
Forum: code_saturne usage
Topic: free surface not moving
Replies: 21
Views: 9009

Re: free surface not moving

Hello, I'm not sure, but I think that only the use of this BC will not be enough to model waves. You will need a two fluid modelling in order to set as inlet the wave height and lenght. Also, you will need an absorbing BC in order to avoid the reflection of the waves. I couldn find the user subrouti...
by Luciano Garelli
Fri Nov 30, 2018 6:33 pm
Forum: code_saturne usage
Topic: Code Saturne 4.0.6 access boundary face temperature
Replies: 5
Views: 1364

Re: Code Saturne 4.0.6 access boundary face temperature

Hello, If I'm not wrong , in this example an energy (Joule) balance is made, surface(m2)*time(s)*heat_flux(W/m2)=Energy(joule). The surfbn(ifac) gives the surface of the boundary face. In the post_util.f90 the heat boundary flux is compute as bflux(iloc) = (cofafp(ifac) + cofbfp(ifac)*tcel) + convec...
by Luciano Garelli
Fri Nov 30, 2018 3:27 pm
Forum: code_saturne usage
Topic: Mesh not refined enough at the wall
Replies: 2
Views: 1421

Re: Mesh not refined enough at the wall

Hello, I think that the first recommendation is to switch to a newer version of CS, the code has been improved and bug has been corrected. You are running a version of 2013. With respect to your question in the second time step you have a Y+=19 and a Courant of 237. You are running the case with no ...
by Luciano Garelli
Fri Nov 30, 2018 2:56 pm
Forum: code_saturne usage
Topic: Code Saturne 4.0.6 access boundary face temperature
Replies: 5
Views: 1364

Re: Code Saturne 4.0.6 access boundary face temperature

Hello, The user subroutine " cs_user_extra_operations-energy_balance.f90 " has several examples about computing energy fluxes. Also, you can check the subroutine post_boundary_thermal_flux in the post_util.f90 file, where is post-processed the thermal flux. In the post you mention boundary faces, be...
by Luciano Garelli
Wed Nov 28, 2018 3:03 pm
Forum: code_saturne usage
Topic: free surface not moving
Replies: 21
Views: 9009

Re: free surface not moving

Hello

I attach the two case file and the mesh of the previous examples.

Regards,

Luciano
by Luciano Garelli
Tue Nov 27, 2018 9:55 pm
Forum: code_saturne usage
Topic: free surface not moving
Replies: 21
Views: 9009

Re: free surface not moving

Hello Helmut, I was trying to run your case and I think that my previous appreciation about ialtyb(ifac) -> itypfb(ifac) was wrong. I think that maybe can be a bug in the GUI. I create a new case with CS 5.0.8 and after set the free surface and all the BC's, the result was that the free surface does...
by Luciano Garelli
Tue Nov 06, 2018 6:37 pm
Forum: code_saturne usage
Topic: Memory usage
Replies: 2
Views: 781

Re: Memory usage

Hello,

Are you using user functions/subroutines in your simulation? Did you check the memory without the user functions? I have run some test using Valgrind(Massif) and the memory is not increasing during the simulation.

Also you can use Valgrind to try to check any memory leak.

Regards,

Luciano
by Luciano Garelli
Fri Oct 26, 2018 2:05 pm
Forum: code_saturne usage
Topic: About adding boundary layer to the mesh
Replies: 5
Views: 1293

Re: About adding boundary layer to the mesh

Hello,

I have not used this feature, but searching in the source code I found the file cs_user_mesh-modify.c file inside of the example directory.

Inside of this file there is an example "Insert boundary layers on selected zones.", I think that this example can help you.

Regards,

Luciano
by Luciano Garelli
Thu Oct 25, 2018 1:09 pm
Forum: code_saturne usage
Topic: About adding boundary layer to the mesh
Replies: 5
Views: 1293

Re: About adding boundary layer to the mesh

Hello, I just read in the NEWS file of the master branch this " Added boundary layer insertion at selected faces, using a mesh deformation (CDO vertex-based), followed by boundary layer extrusion. ". I have no test this feature. You can download CS from the master branch and test it. Why not use Sal...