Search found 43 matches
- Mon Jul 02, 2018 4:58 pm
- Forum: code_saturne usage
- Topic: Gradient Code_saturne vs Paraview
- Replies: 10
- Views: 6578
Gradient Code_saturne vs Paraview
Hi all, I am simulating a test case of a steady state 3D Flat plate flow. I run the simulation for 500 iterations and for post-processing the results I use Paraview. I am calculating the pressure gradient in Code_saturne with "field_gradient_scalar function", using the cs_user_extra_operat...
- Tue May 29, 2018 10:08 am
- Forum: code_saturne usage
- Topic: access fluid properties, cs_wall_function.h
- Replies: 11
- Views: 6480
Re: access fluid properties, cs_wall_function.h
Thank you very much Yvan, the code is working well now. I want to save the "spg" variable, that I calculate in the cs_user_initialization.f90, in the results file to use it for post processing. How can I do that? Right now the "spg" variable it is present in the results file but ...
- Wed May 23, 2018 12:30 pm
- Forum: code_saturne usage
- Topic: access fluid properties, cs_wall_function.h
- Replies: 11
- Views: 6480
Re: access fluid properties, cs_wall_function.h
Hi, The "spg" variable is defined in cs_user_initialization-spg.f90 file, I attached it. I want to use the values of "spg" variable in the cs_wall_functions.h, in the following part of the code: In the cs_wall_functions.h file I defined the "spg" variable as double. I a...
- Tue May 22, 2018 6:07 pm
- Forum: code_saturne usage
- Topic: access fluid properties, cs_wall_function.h
- Replies: 11
- Views: 6480
Re: access fluid properties, cs_wall_function.h
Thank you Yvan, the code is working now without errors. Now I have two problems: 1. I want to use the "spg" variable in the cs_wall_functions.h file. How can I call the "spg" variable from cs_wall_functions.h file? 2. I saw that if I use 1 CPU core the simulation is fine, but whe...
- Mon May 21, 2018 10:38 am
- Forum: code_saturne usage
- Topic: access fluid properties, cs_wall_function.h
- Replies: 11
- Views: 6480
Re: access fluid properties, cs_wall_function.h
Thank you very much, Yvan. I wrote a code in "cs_user_initialization.f90" for calculating the streamwise pressure gradient. To access the pressure gradient I have used the "field_gradient_scalar" subroutine and seems to work fine. When I try to calculate the magnitude of the velo...
- Thu May 17, 2018 4:49 pm
- Forum: code_saturne usage
- Topic: access fluid properties, cs_wall_function.h
- Replies: 11
- Views: 6480
Re: access fluid properties, cs_wall_function.h
Thank you very much, Yvan, for support. I am thinking that from the field velocity I can calculate a unit vector in the direction of the flow, and based on this unit vector I can determine if the pressure gradient is streamwise or not. The streamwise pressure gradient is not calculated yet in my cod...
- Wed May 16, 2018 9:24 am
- Forum: code_saturne usage
- Topic: access fluid properties, cs_wall_function.h
- Replies: 11
- Views: 6480
access fluid properties, cs_wall_function.h
Hello, I am new to code_saturne, I want to implement a different wall function than the ones that are already available for the k-e turbulence model. From what I understood it is simple just to replace, in cs_wall_functions.h file, the equations for a built-in wall function with the equations requir...
- Thu May 03, 2018 6:13 pm
- Forum: code_saturne usage
- Topic: Icem CFD mesh
- Replies: 0
- Views: 34678
Icem CFD mesh
Hello,
I am using ICEM CFD for preparing my meshes for the simulations.
Does somebody know the quality criteria from ICEM CFD accepted by Code_saturne?
Thank you,
Ionut
I am using ICEM CFD for preparing my meshes for the simulations.
Does somebody know the quality criteria from ICEM CFD accepted by Code_saturne?
Thank you,
Ionut
- Thu May 03, 2018 11:54 am
- Forum: Discussion
- Topic: wall function implementation, k-epsilon
- Replies: 6
- Views: 7274
Re: wall function implementation, k-epsilon
Fluid properties such as dynamic viscosity are already passed as argument to the wallfunctions subroutine and are thus accessible in the "cs_wall_functions.h". I assume you're trying to implement wall functions similar to the UMIST analytical wall functions from Craft et al. (2002) which ...
- Wed May 02, 2018 6:32 pm
- Forum: Discussion
- Topic: wall function implementation, k-epsilon
- Replies: 6
- Views: 7274
Re: wall function implementation, k-epsilon
Thank you very much, Jean-François for the support. Is there a way to access the pressure gradient from inside the "cs_wall_functions.h"? I need it to calculate the streamwise pressure gradient (in the flow direction), and some other variables like wall shear stress, dynamic viscosity, den...