Thanks for the example script, it;s useful. So after calling the two functions:
call field_get_key_int(ivarfl(ivar), kimasf, iflmas)
call field_get_val_s(iflmas, imasfl)
if ifac is the id of the internal face, I can access to the mass flow of this face by:
imasfl(ifac)
is it correct? Thanks!
Search found 106 matches
- Tue Dec 12, 2017 6:45 pm
- Forum: code_saturne usage
- Topic: How to access to the mass flow of a cross section?
- Replies: 17
- Views: 6936
- Tue Dec 12, 2017 12:15 pm
- Forum: code_saturne usage
- Topic: How to access to the mass flow of a cross section?
- Replies: 17
- Views: 6936
How to access to the mass flow of a cross section?
Hi Code Saturne develop team: In one of my script, I need to visit the mass flow of a cross section of the fluid channel. From the cs_field API, I can only get access to the variables stored in cells. How can I get the mass flow of a cross section (a certain layer of internal faces)? Thank you! Rega...
- Mon Oct 23, 2017 8:14 pm
- Forum: code_saturne usage
- Topic: Visit cell coordinate when define the physical properties
- Replies: 1
- Views: 1419
Visit cell coordinate when define the physical properties
Hi all: I have a simple question. When I use Code Saturne, I use the GUI and define the fluid conductivity as variable, and I need to input the expression in the Mathematical expression editor. Can I visit the cell coordinate if I need to define the local conductivity at some special positions? Many...
- Thu Jun 29, 2017 6:54 pm
- Forum: Syrthes related questions
- Topic: Temperature dependence thermal conductivity in Syrthes
- Replies: 1
- Views: 5441
Temperature dependence thermal conductivity in Syrthes
Hi, I have a question about Syrthes, but since there is no Syrthes forum, I can only ask here. In the user condition subroutine, I need to define the thermal conductivity of the solid by temperature of the element: for (i=0;i<physol.kiso.nelem;i++) { ng=physol.kiso.ele /* Global number of the elemen...
- Thu May 25, 2017 10:18 am
- Forum: code_saturne usage
- Topic: The boundary faces of the mesh contain isolated faces
- Replies: 3
- Views: 2376
Re: The boundary faces of the mesh contain isolated faces
Hi:
I've found the problem, prism is allowed in an hexahedral(i,j,k) algorithm, which is not the problem. The problem is that I have two solid sharing one face, and the mapping mesh of this face in the two solid is not match, which cause the error.
Thanks!
I've found the problem, prism is allowed in an hexahedral(i,j,k) algorithm, which is not the problem. The problem is that I have two solid sharing one face, and the mapping mesh of this face in the two solid is not match, which cause the error.
Thanks!
- Mon May 22, 2017 12:00 pm
- Forum: code_saturne usage
- Topic: The boundary faces of the mesh contain isolated faces
- Replies: 3
- Views: 2376
Re: The boundary faces of the mesh contain isolated faces
And in Salome, when I check the mesh information of the "annulus_bot_face" that has some isolated faces, it seems all right. It includes 16145 faces, with 16120 quadrangles and 25 triangles. But when the mesh is export as .med file and read in code saturne, there appears to be some isolate...
- Mon May 22, 2017 11:40 am
- Forum: code_saturne usage
- Topic: The boundary faces of the mesh contain isolated faces
- Replies: 3
- Views: 2376
The boundary faces of the mesh contain isolated faces
Hi I've generated a mesh, and when I use code saturne to check the mesh, it says that in some of my boundary face groups there are some isolated faces, like: Family 2 Group "annulus_bot_face" Number of boundary faces : 750 Number of isolated faces : 15395 In Salome, when I generate my mesh...
- Fri May 05, 2017 11:04 am
- Forum: code_saturne usage
- Topic: k omega model converge problem
- Replies: 8
- Views: 6178
Re: k omega model converge problem
Thanks for the advise, now I can make the simulation converge. It seems that the outlet head loss is not necessary for the simulation, and yes I have a mass source in different vertical positions. About the thermal roughness and dynamic roughness, when I use the scalable wall function, the near wall...
- Wed May 03, 2017 11:27 am
- Forum: code_saturne usage
- Topic: k omega model converge problem
- Replies: 8
- Views: 6178
Re: k omega model converge problem
Sorry, for the last post, I already switch from k omega SST to k epsilon, with the impose of the wall function. I guess the effect of the roughness is to modify the wall function near the rough wall. And I don't understand the thermal roughness, and don't know why I get a low friction thermal scalar...
- Wed May 03, 2017 11:21 am
- Forum: code_saturne usage
- Topic: k omega model converge problem
- Replies: 8
- Views: 6178
Re: k omega model converge problem
Hi: when my simulation includes wall roughness, the simulation crush due to a very low friction thermal scalar (tstar) at the rough wall, but when I lower the thermal roughness but only use a normal dynamic roughness, the simulation can run and converge well. My question is, what is the definition o...