Search found 21 matches

by C.FLAG.
Fri Oct 11, 2019 8:08 am
Forum: Code_Saturne usage
Topic: How can I get the derivatives of velocity field?
Replies: 10
Views: 728

Re: How can I get the derivatives of velocity field?

Hello, If you take a look at the link provided, you will see some source code such as : call field_gradient_scalar (ivarfl(ivar), 0, imrgra, inc, iccocg, grad) ! - Compute reconstructed value in boundary cells do ifac = 1, nfabor iel = ifabor(ifac) treco(ifac) = cvar_scal(iel) & + diipb(1,ifac)*grad...
by C.FLAG.
Tue Apr 09, 2019 10:29 am
Forum: Code_Saturne usage
Topic: Low value of Turbulent heat fluxes in Natural convection
Replies: 9
Views: 925

Re: Low value of Turbulent heat fluxes in Natural convection

Hello, I have started a case with natural convection under 6.0-beta, Rij-SSG + AFM, the temperature / turbulent heat fluxes have a very high amplitude, 10e50. Switch back to 5.0 if you need results quickly. Otherwise, wait for fixes. P.S.: tests performed with the temperature flagged as buoyant in c...
by C.FLAG.
Tue Oct 30, 2018 2:18 pm
Forum: Code_Saturne usage
Topic: Zero cell porosity in v5.0 => modify array c_solid_flag
Replies: 0
Views: 1777

Zero cell porosity in v5.0 => modify array c_solid_flag

Dear Users, Developers, After some trial and error, I was able to use porosity in Code_Saturne 5.0. If you set the cell porosity to zero in some of the cells (= no fluid), then you will have to modify the array c_solid_flag. It is located in cs_glob_mesh_quantities. It should be zero where fluid exi...
by C.FLAG.
Wed Oct 03, 2018 5:19 pm
Forum: Code_Saturne usage
Topic: Using Matlab to read the Code Saturne result file
Replies: 3
Views: 891

Re: Using Matlab to read the Code Saturne result file

Hello, You might want to check this matlab library https://www.mathworks.com/matlabcentral/fileexchange/40070-load-ensight-gold-file-format The file format is actually not so complicated, and I was able to write some fortran program to read simple Ensight files, see this link for instance: https://r...
by C.FLAG.
Mon Sep 17, 2018 9:07 am
Forum: Installation issues
Topic: Code_Saturne 5.0.8 and Salome 8.5.0
Replies: 4
Views: 1124

Re: Code_Saturne 5.0.8 and Salome 8.5.0

Hello Yvan, I actually want to use Salome's QT library because the package QT5 is colliding with QT4 on this version of Ubuntu, according to my sys admin. Right now I am a bit short on time so I will postpone the compilation of a full Salome_CFD due to the (very!) large number of dependencies visibl...
by C.FLAG.
Fri Sep 14, 2018 8:24 am
Forum: Installation issues
Topic: Code_Saturne 5.0.8 and Salome 8.5.0
Replies: 4
Views: 1124

Re: Code_Saturne 5.0.8 and Salome 8.5.0

Hello Yvan, I took the binaries for ubuntu 16, I run the script 'install_bin.sh', and i modified the script 'env_launch.sh' to point to the 'INSTALL' directory instead of 'BINARIES-UB16.04'. I also modified the script because the environment variable CGNSHOME was not defined and Code_Saturne configu...
by C.FLAG.
Thu Sep 13, 2018 3:00 pm
Forum: Installation issues
Topic: Code_Saturne 5.0.8 and Salome 8.5.0
Replies: 4
Views: 1124

Code_Saturne 5.0.8 and Salome 8.5.0

Dear Users and developers, I was able to compile Code_Saturne 5.0.8 with Salome 8.5.0 on Ubuntu 16.04 using the binaries provided with Salome and the script 'env_launch.sh'. I can run the command code_saturne salome , and the CFD_STUDY module is visible. However, as soon as I click on it and then on...
by C.FLAG.
Wed Sep 12, 2018 1:05 pm
Forum: Code_Saturne usage
Topic: Create a new main restart file outside Code_Saturne
Replies: 7
Views: 1018

Re: Create a new main restart file outside Code_Saturne

Hi, It might be simpler to read the interpolated fields using MED / HDF5 in cs_user_initialisation (.c or .f90). Unfortunately, I don't have any such example at hand. For HDF5, https://support.hdfgroup.org/HDF5/Tutor/rdwt.html might help. Regards, Cédric EDIT: for reading a MED file, http://docs.sal...
by C.FLAG.
Wed Sep 12, 2018 12:35 pm
Forum: Code_Saturne usage
Topic: Source files for particle dispersion tutorial
Replies: 1
Views: 404

Source files for particle dispersion tutorial

Dear Users, developers, I am trying to perform the tutorial on particle dispersion in a turbulent pipe flow available here http://code-saturne.org/cms/sites/default/files/file_attach/Tutorial/version-4.0/06_LagrangianParticles.pdf . However, I am running version 5.0 of the code. Has anyone kept the ...
by C.FLAG.
Fri Mar 02, 2018 1:05 pm
Forum: Code_Saturne usage
Topic: LES for natural convection - chequered fields
Replies: 1
Views: 447

Re: LES for natural convection - chequered fields

Dear Cosimo, If you have the option the use a more recent build of Code_Saturne, you could try to flag your temperature as buoyant (key "is_buoyant") so it will be updated in the Velocity-Pressure loop. Combined with an increased NTERUP, it could potentially improve your results. Can you confirm tha...