Search found 32 matches
- Mon Jan 06, 2020 11:42 am
- Forum: code_saturne usage
- Topic: Change restart file from studymanager
- Replies: 2
- Views: 2553
Change restart file from studymanager
Dear users, developers, I would like to change the restart file when using the studymanager (the xml file is set for a restart). I speculate it can be done with a python script. However, I would like to know which variable has to be changed / function has to be called ? Some of the modules already i...
- Fri Oct 11, 2019 8:08 am
- Forum: code_saturne usage
- Topic: How can I get the derivatives of velocity field?
- Replies: 10
- Views: 6065
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)*...
- Tue Apr 09, 2019 10:29 am
- Forum: code_saturne usage
- Topic: Low value of Turbulent heat fluxes in Natural convection
- Replies: 9
- Views: 5293
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...
- 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: 37667
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...
- Wed Oct 03, 2018 5:19 pm
- Forum: code_saturne usage
- Topic: Using Matlab to read the Code Saturne result file
- Replies: 3
- Views: 2567
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...
- Mon Sep 17, 2018 9:07 am
- Forum: Installation issues
- Topic: Code_Saturne 5.0.8 and Salome 8.5.0
- Replies: 4
- Views: 4464
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...
- Fri Sep 14, 2018 8:24 am
- Forum: Installation issues
- Topic: Code_Saturne 5.0.8 and Salome 8.5.0
- Replies: 4
- Views: 4464
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...
- Thu Sep 13, 2018 3:00 pm
- Forum: Installation issues
- Topic: Code_Saturne 5.0.8 and Salome 8.5.0
- Replies: 4
- Views: 4464
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...
- Wed Sep 12, 2018 1:05 pm
- Forum: code_saturne usage
- Topic: Create a new main restart file outside Code_Saturne
- Replies: 7
- Views: 3443
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...
- Wed Sep 12, 2018 12:35 pm
- Forum: code_saturne usage
- Topic: Source files for particle dispersion tutorial
- Replies: 1
- Views: 1618
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 ...