CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

problem with foamMeshToFluent and foamDataToFluent

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 27, 2015, 23:31
Default problem with foamMeshToFluent and foamDataToFluent
  #1
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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?
Attached Files
File Type: zip foamDataToFluentDict.zip (2.5 KB, 12 views)
Thomas pan is offline   Reply With Quote

Old   October 28, 2015, 04:10
Default
  #2
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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?
Thomas pan is offline   Reply With Quote

Old   October 31, 2015, 11:03
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,820
Blog Entries: 39
Rep Power: 108
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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
wyldckat is offline   Reply With Quote

Old   November 3, 2015, 22:57
Default
  #4
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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?
Thomas pan is offline   Reply With Quote

Old   November 7, 2015, 13:00
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,820
Blog Entries: 39
Rep Power: 108
wyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of lightwyldckat is a glorious beacon of light
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.
wyldckat is offline   Reply With Quote

Old   March 14, 2016, 16:24
Default
  #6
Member
 
Ram
Join Date: Oct 2015
Posts: 34
Rep Power: 3
Scram_1 is on a distinguished road
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 is offline   Reply With Quote

Old   March 14, 2016, 21:32
Default
  #7
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   March 14, 2016, 21:57
Default
  #8
Member
 
Ram
Join Date: Oct 2015
Posts: 34
Rep Power: 3
Scram_1 is on a distinguished road
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 is offline   Reply With Quote

Old   March 15, 2016, 02:57
Default
  #9
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   March 15, 2016, 11:50
Default
  #10
Member
 
Ram
Join Date: Oct 2015
Posts: 34
Rep Power: 3
Scram_1 is on a distinguished road
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
Scram_1 is offline   Reply With Quote

Old   March 15, 2016, 21:33
Default
  #11
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   June 26, 2016, 06:51
Default
  #12
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 3
masoudsh is on a distinguished road
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
masoudsh is offline   Reply With Quote

Old   June 26, 2016, 11:52
Default
  #13
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
Just read mesh in fluent. a case will be produced.
Thomas pan is offline   Reply With Quote

Old   June 26, 2016, 13:14
Default
  #14
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 3
masoudsh is on a distinguished road
Hi Thomas
thanks for your reply
how can I produce .cas ?

thanks
masoudsh is offline   Reply With Quote

Old   June 26, 2016, 22:59
Default
  #15
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
Quote:
Originally Posted by masoudsh View Post
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.
Thomas pan is offline   Reply With Quote

Old   June 27, 2016, 06:08
Default
  #16
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 3
masoudsh is on a distinguished road
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.
masoudsh is offline   Reply With Quote

Old   June 27, 2016, 07:21
Default
  #17
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
Quote:
Originally Posted by masoudsh View Post
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.
Thomas pan is offline   Reply With Quote

Old   June 27, 2016, 07:36
Default
  #18
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 3
masoudsh is on a distinguished road
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

Last edited by masoudsh; June 27, 2016 at 09:16.
masoudsh is offline   Reply With Quote

Old   June 27, 2016, 11:15
Default
  #19
Member
 
pan
Join Date: May 2015
Posts: 30
Rep Power: 3
Thomas pan is on a distinguished road
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.
Thomas pan is offline   Reply With Quote

Old   June 27, 2016, 15:08
Default
  #20
Member
 
Join Date: Oct 2015
Posts: 48
Rep Power: 3
masoudsh is on a distinguished road
what do you mean "Don't use the original .msh file. "
masoudsh is offline   Reply With Quote

Reply

Tags
foamdatatofluent, foammeshtofluent

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
FoamDataToFluent dnomdec OpenFOAM Post-Processing 8 July 31, 2013 11:07
Suse10 FoamX problem frank178 OpenFOAM Installation 6 January 14, 2010 05:18
FoamDataToFluent Problem aganesan OpenFOAM Post-Processing 8 June 4, 2008 17:15


All times are GMT -4. The time now is 13:58.