problem with foamMeshToFluent and foamDataToFluent
1 Attachment(s)
Hi,
1,I installed an openfoam for Windows,I need to use foamMeshToFluent.But I get the following error: Quote:
2,I also need to use foamDataToFluent,but I don't know the fluentUnitNumbers of phi,rho,and machnumber like that P U T are 1 2 3. Who can tell how do I write my foamDataToFluentDict? |
I have solved the first problem.And I haven't solved the second problem.
Quote:
|
Quick answer: Check the list given in this file: https://github.com/OpenFOAM/OpenFOAM...nitNumbers.txt
You have it in your installation if you run: Code:
ls -l $FOAM_UTILITIES/postProcessing/dataConversion/foamDataToFluent/fluentUnitNumbers.txt |
Hi,Bruno
I have checked the fluentUnitNumbers.txt. I think the number of phi is: Quote:
And another problem I cannot find the number of Urel in fluentUnitNumbers.txt,could you help me? |
Quick answer: I don't know much about Fluent's file format, but from what I know, it only supports a specific list of fields. It's possible that "Urel" and "phi" simply don't exist in Fluent's format specification.
My suggestion is to check with Fluent support at ANSYS. Or check Fluent's documentation on this topic. |
Hey,
I've added the temperature field to the icoFoam solver and am able to compile and run my case. I'm able to view the temperature and velocity contours in Paraview. No problem there whatsoever. However, when I convert the data to Fluent format (foamDataToFluent & foamMeshToFluent), Fluent is not showing temperature in the list of contours that it can display. I'm able to see the velocity contours. The .dat file in openFOAM and the converted .dat file show the tempertaures at different time steps. I don't know if there's a bug or if I'm doing something wrong. Thanks, Ram |
When you use foamDataToFluent, you should follow the numble list of fluent in foamtofluentdict.
PHP Code:
Quote:
|
Hey Thomas,
Here's my foamDataToFluentDict file. I had added the numbers corresponding to p,U and T. Still I'm not able to see the contours in Fluent. The OpenFOAM .dat file however shows the temperature at different time steps. /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; note "OpenFOAM to Fluent interface control dictionary"; class dictionary; object foamDataToFluentDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // p 1; U 2; T 3; // ************************************************** *********************** // |
In my opinion, your problem isn't caused by OF but Fluent. You can check your fluent case setting, such as you have not turn on energy equation.
Quote:
|
Hey Thomas,
I enabled the energy equation in Fluent and now I'm able to select the temperature field. However, I'm only able to 300K in the contour plot which is my inlet temperature. The velocity plot shows a boundary layer being formed at the walls and is similar to the one displayed in ParaFoam. The temperature contour in ParaFoam shows a thermal boundary layer but in the one shown by Fluent, the temperature is uniform throughout (300 K). I have changed the controlDict file as well such that the startTime is the latestTime. The .dat file generated by OpenFOAM shows that the temperature is varying from 300 K to 330 K (which is the wall temperature of the channel). Sorry am not able to attach the .dat file and .msh file as they exceed 150 MB. Thanks! Ram |
I have the same problem. My outlet temperature isn't uniform, but it appears 300K too in fluent. And it is no problem in paraFoam. I haven't find the solution now. If you solve the problem, please tell me. thanks!
Quote:
|
Hi
I want to CONVERT Openfoam to fluent so I use foamDataToFluent It gives me data for mesh I use foamMeshToFluent but in fluent I should have .cas How can I get .cas thanks |
Just read mesh in fluent. a case will be produced.
|
Hi Thomas
thanks for your reply how can I produce .cas ? thanks |
Quote:
|
I do that but I encounter this error
''Warning: case and data files are inconsistent zone 10[xxxx,xxxx] data [xxxx,xxxxx]" This error is repeated for all zones in the mesh. |
Quote:
|
1 : I prepare the foamDataToFluentDict in system file
2 : I run the openFoam tutorial 3 . I use foamDataToFluent,It gives me data 4 . I use foamMeshToFluent,I can't see .cas. 5 . open the fluent,read meah and data ''Warning: case and data files are inconsistent zone 10[xxxx,xxxx] data [xxxx,xxxxx]" This error is repeated for all zones in the mesh. http://s6.uplod.ir/i/00793/w6qf7md8zvvj.png |
1,foamMeshToFluent, get the .msh file.
2, foamDataToFluent, get the .dat flie. 3, read .msh file in fluent. 4, read .dat file in fluent. That is OK. Don't use the original .msh file. |
what do you mean "Don't use the original .msh file. "
|
All times are GMT -4. The time now is 14:12. |