CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   problem with foamMeshToFluent and foamDataToFluent (https://www.cfd-online.com/Forums/openfoam-post-processing/161747-problem-foammeshtofluent-foamdatatofluent.html)

Thomas pan October 27, 2015 22:31

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:

/opt/OpenFOAM/OpenFOAM-2.3.x/platforms/cygwin64mingw-w64DPOpt/bin/foamMeshToFluent.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
I think it doesn't have the problem in Ubuntu, does it?

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?

Thomas pan October 28, 2015 03:10

I have solved the first problem.And I haven't solved the second problem.
Quote:

p 1;
U 2;
T 3;
rho 101;
MaU 59;
phi 18;
Is that right?

wyldckat October 31, 2015 10:03

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

Thomas pan November 3, 2015 21:57

Hi,Bruno

I have checked the fluentUnitNumbers.txt. I think the number of phi is:
Quote:

XF_RF_DATA_MASS_FLUX=18,
But it doesn't work.

And another problem I cannot find the number of Urel in fluentUnitNumbers.txt,could you help me?

wyldckat November 7, 2015 12:00

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.

Scram_1 March 14, 2016 15:24

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

Thomas pan March 14, 2016 20:32

When you use foamDataToFluent, you should follow the numble list of fluent in foamtofluentdict.
PHP Code:

p 1;
U 2;
T 3

Quote:

Originally Posted by Scram_1 (Post 589655)
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


Scram_1 March 14, 2016 20:57

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;

// ************************************************** *********************** //

Thomas pan March 15, 2016 01:57

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:

Originally Posted by Scram_1 (Post 589684)
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;

// ************************************************** *********************** //


Scram_1 March 15, 2016 10:50

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

Thomas pan March 15, 2016 20:33

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:

Originally Posted by Scram_1 (Post 589859)
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


masoudsh June 26, 2016 06:51

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

Thomas pan June 26, 2016 11:52

Just read mesh in fluent. a case will be produced.

masoudsh June 26, 2016 13:14

Hi Thomas
thanks for your reply
how can I produce .cas ?

thanks

Thomas pan June 26, 2016 22:59

Quote:

Originally Posted by masoudsh (Post 606654)
Hi Thomas
thanks for your reply
how can I produce .cas ?

thanks

Read the .msh in fluent and then you can read the datafile. In a word, the .msh is the .cas.

masoudsh June 27, 2016 06:08

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.

Thomas pan June 27, 2016 07:21

Quote:

Originally Posted by masoudsh (Post 606723)
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.

Does your‘s mesh provided by foamMeshToFluent? Tell me how do you do by step and show the errors.

masoudsh June 27, 2016 07:36

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

Thomas pan June 27, 2016 11:15

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.

masoudsh June 27, 2016 15:08

what do you mean "Don't use the original .msh file. "


All times are GMT -4. The time now is 14:12.