How to obtain the grid and geometry files for the T Junction tutorial

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Debashis Basu

How to obtain the grid and geometry files for the T Junction

Post by Debashis Basu »

Hello,
I am a new user of SATURNE and I am using SATURNE 1.3.3.
I am trying to do the tutorial on T-Junction.
It will be of great help to me if I know where to get the geometry and grid files for the T junction tutorial problem.
Any help in this regard will be greatly appreciated.
Thanks and Best Regards,
Debashis Basu
James McNaughton

Re: How to obtain the grid and geometry files for the T Junction tutorial

Post by James McNaughton »

In 1.3.3 it should be in your install directory:
Code_Saturne/Noyau/ncs-1.3.3/doc/TUTORIAL/TEST_CASES/STRATIFIED_JUNCTION/MAILLAGE/sn_total.des
James
Debashis Basu

Re: How to obtain the grid and geometry files for the T Junc

Post by Debashis Basu »

Thank You Very much.
Slowly I am trying to do the tutorials in SATURNE.
 
I am in the directory
 
Noyau/ncs-1.3.3/doc/TUTORIAL/TEST_CASES
 
The sub-directories are
 
SIMPLE_JUNCTION
 
FULL_DOMAIN
 
STRATIFIED_JUNCTION
 
Each of these directories have subdirectories such as  CASE2, CASE3, CASE4.
 
There are other directories within CASE2, CASE3, CAS4 which are DATA  FORT  SCRIPTS.
 
My question is, in the directory Noyau/ncs-1.3.3/doc/TUTORIAL/TEST_CASES/FULL_DOMAIN/MAILLAGE
 
I have three files : downcomer.des  fdc.des  pic.des
 
Are these the three grid files. Which file correspond to which case ?
 
How can I see these grid files ?
 
Kindly let know. I am following the tutorial but unable to follow it correctly.
 
How can I have a look at the mesh to see the labels and nature of the domain.
 
Any help from your end will be greatly appreciated ?
 
Regards,
Debashis
 
Yvan Fournier

Re: How to obtain the grid and geometry files for the T Junction tutorial

Post by Yvan Fournier »

Hello,
All 3 files represent different parts of the mesh.
You can see these files by using the GUI's "check mesh" functionality and then post processing the results (in the RESU subfolder) using a tool such as ParaView or EnSight (if you used EnSight format output), or SALOME (if you used MED output format).
In any case, to be able to use the GUI and scripts correctly, you must first create a case (using cree_cas) and place the files in the correct directories (i.e. the ".des" files in the study's MESH directory).
Best regards,
  Yvan
Debashis Basu

Re: How to obtain the grid and geometry files for the T Junc

Post by Debashis Basu »

Hello Yvan,
Thank you very much. In fact on wednesday I have to give a presentation to students on preliminary use of SATURNE. I have to solve one of the tutorial problem from start to finish. One of the first questions people ask how I can see the mesh. I will try to use the GUI's check mesh functionality. But can I see the grids as such in figure before simulations ? How can I see the different zones in the grid ? Could you please suggest which tutorial problem would be the best.
I will surely create a case and place the files in the correct directories.
I have installed EnSight. I also have TECPLOT. Can I use TECPLOT for visualization ? TECPLOT has an option of importing EnSight format. Any thought on that.
Best regards,
Debashis
 
Previously Yvan Fournier wrote:
Hello,
All 3 files represent different parts of the mesh.
You can see these files by using the GUI's "check mesh" functionality and then post processing the results (in the RESU subfolder) using a tool such as ParaView or EnSight (if you used EnSight format output), or SALOME (if you used MED output format).
In any case, to be able to use the GUI and scripts correctly, you must first create a case (using cree_cas) and place the files in the correct directories (i.e. the ".des" files in the study's MESH directory).
Best regards,
  Yvan
Debashis Basu

Re: How to obtain the grid and geometry files for the T Junc

Post by Debashis Basu »

Hello,
In Noyau/ncs-1.3.3/doc/TUTORIAL/TEST_CASES/EXIST_STRATIFIED_JUNCTION/MAILLAGE I see a directory sn_total.des
Kindly suggest a preprocessing tool where I can open this .des file and see.
How I can identify the different zones and name them for Boundary conditions.
Where can I see this grid ?
Kindly suggest.
Regards,
Debashis
 
Brennan Sharp

Re: How to obtain the grid and geometry files for the T Junction tutorial

Post by Brennan Sharp »

The easiest and fastest way to get what you're asking for is to do as Yvan already advised. Checking the mesh(es) does not require a simulation and in the case of tutorial example meshes, the checking process will complete almost instantly on any modern computer.  And then you can use Ensight to view the mesh.
Alternatively, you could consult the part of the user manual that refers to input formats. The most likely source of the .des files is listed, with some URLs.
My advice is to listen to Yvan - always - and do as he has suggested.
 
 
Brennan
Yvan Fournier

Re: How to obtain the grid and geometry files for the T Junction tutorial

Post by Yvan Fournier »

Hello,
The only current tool I know of which can handle .des files (besides Code_Saturne) is Simail, the (old) mesh generator used to build these meshes. You may convert them to a postprocessing output using the "ecs" preprocessor, with a command such as "ecs -sc -m downcomer.des -ensight" to see one mesh at a time, or "ecs -sc -m *.des -join -ensight" to see all, but if you are not already very familiar with the code,I would recommend usign the GUI's mesh checking option to handles this for you.
Do not forget to activate mesh joining inthe GUI as you have 3 meshes (the "-join" in the command-line above is for this).
I know TECPLOT may import EnSight Gold files, but I don't know how good at it it is (can it handle the polyhedral cells that result from mesh joining, and which do not appear inthe preprocessor-generated output, but do appear in the Kernel-generated output ?). If you do try this, do tell us if it works well.
Otherwise, both EnSight and ParaView work fine (use the "extract blocks filter to separate pieces of the mesh in ParaView; in EnSight, parts appear in a tree, so they are obvious).
Best regards,
  Yvan
Debashis Basu

Re: How to obtain the grid and geometry files for the T Junc

Post by Debashis Basu »

Thank you all very much for your helpful suggestions. I hope to learn the tutorials fast so that I can start working on other problems. My first problem will involve flow over a hump (semi-circular) and I intend to do a turbulence study with the LES, the realizable k-epsilon model, and the DES and Hybrid RANS/LES turbulence models. I intend to generate the grid in GAMBIT (because that is what we have here).
Any suggestion on how to set up the different zones for boundary conditions will be greatly helpful.
This forum is one of the most helpful forums and is of great help to me.
Thank you all again.
Best Regards,
Debashis
 
Previously Yvan Fournier wrote:
Hello,
The only current tool I know of which can handle .des files (besides Code_Saturne) is Simail, the (old) mesh generator used to build these meshes. You may convert them to a postprocessing output using the "ecs" preprocessor, with a command such as "ecs -sc -m downcomer.des -ensight" to see one mesh at a time, or "ecs -sc -m *.des -join -ensight" to see all, but if you are not already very familiar with the code,I would recommend usign the GUI's mesh checking option to handles this for you.
Do not forget to activate mesh joining inthe GUI as you have 3 meshes (the "-join" in the command-line above is for this).
I know TECPLOT may import EnSight Gold files, but I don't know how good at it it is (can it handle the polyhedral cells that result from mesh joining, and which do not appear inthe preprocessor-generated output, but do appear in the Kernel-generated output ?). If you do try this, do tell us if it works well.
Otherwise, both EnSight and ParaView work fine (use the "extract blocks filter to separate pieces of the mesh in ParaView; in EnSight, parts appear in a tree, so they are obvious).
Best regards,
  Yvan
Yvan Fournier

Re: How to obtain the grid and geometry files for the T Junction tutorial

Post by Yvan Fournier »

Hello,
When you do move to GAMBIT, choose the "GAMBIT neutral" format when you export the mesh (avoid .unv, which does not allow pyramids, or .msh, which is the FLUENT mesh format, different from Gmsh's .msh format which Code_Saturne handles).
Boundary conditions defined in GAMBIT will appear as groups in Code_Saturne, so you will need to re-specify the types to Code_Saturne, but the names should stay the same (you will then use names in the same way you use numbers with the T-junction tutorial meshes).
Also, I would recommend avoiding white spaces in any boundary condition/group name : Code_Saturne can handle them by enclosing the string in quotes or using escape "\" characters before spaces, but it makes things unnecessarily complicated.
Best regards,
  Yvan
Post Reply