Search found 12 matches

by kkumar20
Mon Jan 03, 2022 2:28 pm
Forum: code_saturne usage
Topic: Modifying the turbulent viscosity in k-epsilon models
Replies: 3
Views: 1134

Re: Modifying the turbulent viscosity in k-epsilon models

Thanks very much Yvan! This is enough for me now.
by kkumar20
Sun Jan 02, 2022 2:38 pm
Forum: code_saturne usage
Topic: Modifying the turbulent viscosity in k-epsilon models
Replies: 3
Views: 1134

Re: Modifying the turbulent viscosity in k-epsilon models

Just forgot to add that the above function cs_turb_update_k_eps(....) is in the file src/cdo/cs_cdo_turbulence.c
by kkumar20
Sun Jan 02, 2022 2:36 pm
Forum: code_saturne usage
Topic: Modifying the turbulent viscosity in k-epsilon models
Replies: 3
Views: 1134

Modifying the turbulent viscosity in k-epsilon models

Hello, I need to make a light modification to the prescription for turbulent viscosity in the k-epsilon model. The new formula should be used for the calculation of total viscosity in Navier-Stokes and k-epsilon in every time step. It is just a minor change to the existing formula; However, I am not...
by kkumar20
Wed Jul 28, 2021 11:15 pm
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Hello Yvan, Thanks for your comments! I changed the order of library appearance as you suggested to: EXE_LIBS = \ -lfiniteVolume \ -lmeshTools \ -ldynamicMesh \ -L/home/kumar/Code_Saturne/7.0.0/med-4.1.0/arch/Linux_x86_64/lib -lmedC Now the compilation works without errors: g++ -std=c++11 -m64 -Dlin...
by kkumar20
Wed Jul 28, 2021 8:05 pm
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Hi Ruonan, I tried to compile foamMeshToMED utility using OpenFOAM versions 7 and 8 - it is really amazing that it compiles with both versions 7 and 8 with some minor changes in the code. However there is a glitch while linking with the library and I'm not able to resolve the issue. I have code_satu...
by kkumar20
Tue Feb 16, 2021 9:33 am
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Hello Ruonan, Thanks for your input! I tried that first but cs was not able to recognize the cgns mesh saved by Paraview. It always results in read errors and applying adf2hdf or hdf2adf converters doesn't resolve the problems. I think the problem comes from the Paraview cgns writer. However I suppo...
by kkumar20
Mon Feb 15, 2021 7:10 pm
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Hello Yvan, As far as I see, snappyHexMesh makes polyhedral cells close to the boundry which generates some polygonal boundry faces at some locations. The decompose polyhedra doesn't do a good job at certain such locations. I was just taking the easy way out and haven't tried the foamMeshToMed tool....
by kkumar20
Sun Feb 14, 2021 12:48 pm
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Hello Yvan, I repeated the exercise for a few OpenFOAM meshes after upgrading both Paraview (5.6.0) and Salome (9.5.0) but was not really successful. Here are the sequence of steps I performed: (1) open the mesh in Paraview (internalMesh + all the boundary patches) with the decompose Polyhedra optio...
by kkumar20
Fri Feb 05, 2021 8:58 am
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Hello Luciano,

Thanks for your reply. I have only OF 7 and 8 and if this tool compiles with 4.x, may be there is a chance that it will compile with 7 as well with minimal changes. I will give it a shot.

Kumar
by kkumar20
Fri Feb 05, 2021 8:52 am
Forum: code_saturne usage
Topic: import meshes from OpenFOAM
Replies: 24
Views: 14637

Re: import meshes from OpenFOAM

Thank you Yvan for your prompt explanation! I haven't tried the foamMeshToMED utility as I thought it is fairly old and will not compile with the newest OF version I have (7 and 8). However I will give it a try. There is also another tool foamToCGNS as described here but that may as well be not usab...