Export streamlines from Fluent to Gambit
I would like to realize a meshing with the streamlines. So, I would like to know how can i export the streamlines from Fluent to Gambit.
You can do the following for inviscid flow. It also works for, say, k-epsilon, however I'm not sure it would be correct in that case.
display > contours: velocity, stream function
this will show streamlines; adjust range and choose the value of stream function for the streamline you want
surface > iso-surface: velocity, streamfunction, from zones: fluid
enter the stream function value
plot > xy-plot: grid, y-coordinate, surfaces: the new iso-surface
now write this to a file
Finally, adjust the file header such that you can read it as icem input in gambit
Thank you for your help, I just have a last trouble. When I try to import the file to Gambit, I receive this message " Error : Error reading number of points per curve and number of curves". I do not know what I have to do. Maybe I make a mistake on the plot XY part.
Hi, unfortunatly you will have to adjust the file and it's extension. To do so, open the file in a text editor. You will see some lines of text followed by an array of coordinates:
(labels "Position" "Y-Coordinate")
Replace the lines of text with the number of coordinates per streamline, followed by the number of streamlines:
-3 0.0488679 0
-2.8 0.0488681 0
-2.6 0.0488685 0
Here I have also added zeros for z-coordinate. This might be necessary for gambit, you'll have to try.
Finally, the file extension should be ".dat".
Now you can import it as icem in gambit.
I hope this is helpfull, it's a bit of a detour but it should do the job.
Hope it works, good luck!
That works !!! Thank you so much.
|All times are GMT -4. The time now is 11:05.|