Search found 10 matches

by Kevin
Thu Dec 31, 2020 10:48 pm
Forum: code_saturne usage
Topic: Find the neighbour cell in specific direction
Replies: 9
Views: 3697

Re: Find the neighbour cell in specific direction

Hi & thanks.

I need adjacency with common edge.
Sorry, I don't know what is CDO.
by Kevin
Tue Dec 29, 2020 2:00 pm
Forum: code_saturne usage
Topic: Find the neighbour cell in specific direction
Replies: 9
Views: 3697

Re: Find the neighbour cell in specific direction

Hi. Thanks admin. That solved it! Now i wanna ask you two more questions. 1_ Is there any function to get the adjacent or connected boundary face to an interior face? 2_ Is there any function to get the adjacent faces on a boundary face just like cs_glob_mesh_adjacencies which gives the adjacent cel...
by Kevin
Sat Dec 05, 2020 4:03 pm
Forum: code_saturne usage
Topic: Find the neighbour cell in specific direction
Replies: 9
Views: 3697

Re: Find the neighbour cell in specific direction

Thanks admin. I have a mesh which is generated by extruding a 2d grid in z direction with 20 layers with equal spacing in z direction. So it has cubic cells and also is homogeneous in that direction. I found cs_glob_mesh->i_face_cells which gives the two cells that are adjacent by their common inter...
by Kevin
Mon Nov 30, 2020 6:29 pm
Forum: code_saturne usage
Topic: Find the neighbour cell in specific direction
Replies: 9
Views: 3697

Re: Find the neighbour cell in specific direction

Thank you mr.Fournier,
I just want to calculate DX+ & DZ+which needs the distances between two neighbour cells.
Is this available in cs or i shoud use cs_glob_mesh_adjacencies() and some loops?
For example, how does the cs calculate CFL number itself which needs the DX?
by Kevin
Sat Nov 28, 2020 5:20 pm
Forum: code_saturne usage
Topic: Find the neighbour cell in specific direction
Replies: 9
Views: 3697

Find the neighbour cell in specific direction

Hi there!
Is there a way to find the neighbor of a cell in a desired direction in cs? Example: i have cell #1 and i wanna find it's neighbour cell in z or y direction.
I found cs_geom_closest_point() but has no options for selecting in the desired direction.
Thanks
by Kevin
Mon Aug 31, 2020 3:19 am
Forum: code_saturne usage
Topic: get the velocity of previous and next cells
Replies: 3
Views: 2107

Re: get the velocity of previous and next cells

Thanks admin.
My grid is structured then hence the solver is unstructured you mean i have to get the values of left hand side -. right hand side by the coordinates of the cell and the distance between centers? That will be reallly time consuming and inaccurate
by Kevin
Sun Aug 30, 2020 8:34 am
Forum: code_saturne usage
Topic: get the velocity of previous and next cells
Replies: 3
Views: 2107

get the velocity of previous and next cells

Hi guys. I wanna get the velocity of the previous and next cells and multiply them e.g:


is it possible in this code? thanks :)
by Kevin
Sun Aug 30, 2020 8:25 am
Forum: code_saturne usage
Topic: coupling meshes at their interface
Replies: 4
Views: 2589

Re: coupling meshes at their interface

Hi admin. i think i'm not very expert in codesaturne to test this coupling! by the way thank you.
by Kevin
Thu Aug 20, 2020 10:43 am
Forum: code_saturne usage
Topic: coupling meshes at their interface
Replies: 4
Views: 2589

Re: coupling meshes at their interface

Hello Thank you much! I think it's now much easier in code saturne than ANSYS FLUENT :mrgreen: It's working now. Two more question: 1. Can I set up two different models for these two parts? For example Laminar + LES? 2. Code saturne is about ten times faster than ANSYS FLUENT while the solver precis...
by Kevin
Thu Aug 20, 2020 8:27 am
Forum: code_saturne usage
Topic: coupling meshes at their interface
Replies: 4
Views: 2589

coupling meshes at their interface

Hi guys! We have a mesh which contains two parts. The first part has 50 elements in z direction while the second part has 10 elements in that direction this is done to save the number of elements in the region where the flow is supposed to be inviscid and not turbulent. Also the length is equal in z...