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/)
-   -   foamDataToFluent (https://www.cfd-online.com/Forums/openfoam-post-processing/131940-foamdatatofluent.html)

1988 March 23, 2014 03:37

foamDataToFluent
 
hello
I need to export OpenFoam 220 data to fluent for plotting axial velocity contours which I can't plot them with Paraview and I followed this instruction

http://www.cfd-online.com/OpenFOAM_D...es/1/1212.html

but It didn't solve my problem and I got this error ::confused:

--> FOAM FATAL IO ERROR:
cannot open file

file: /home/ali/OpenFOAM/ali-2.2.0/run/tutorials/incompressible/icoFoam/u/system/foamDataToFluentDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 87.

I would be so appreciate if someone give me detailed instruction .
thanks

jherb March 25, 2014 16:26

In /OpenFOAM-2.2.2/applications/utilities/postProcessing/dataConversion/foamDataToFluent you can find an exampe (which you have to copy into your case's system directory:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    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;

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

I also used the following additional settings:
Code:

p              1;

U              2;

U.X            111;
U.Y            112;
U.Z            113;

T              3;

h              4;

k              5;

epsilon        6;

gamma          150;


1988 March 30, 2014 00:10

I got it .thanks.
It was really helpful but (.cas) file was not made and I just have (.dat) files for each time step so fluent can't open it and give me an error that (.cas) file in necessary.

jherb March 30, 2014 08:20

If I remember correctly, the .cas file contains the mesh. You can create it with foamMeshToFluent.

Quote:

Originally Posted by 1988 (Post 482814)
I got it .thanks.
It was really helpful but (.cas) file was not made and I just have (.dat) files for each time step so fluent can't open it and give me an error that (.cas) file in necessary.


1988 March 30, 2014 10:08

thanks it works
thanks for your attention and answers.

masoudsh June 21, 2016 08:27

Hi

I use foamDataToFluent and I get the uotput results in openfoam with Suffix .dat
then I bring it to CFD post but encounter to this problem :

cannot get mesh information.look likes mesh file is missing

I don't know how add mesh file to CFD post.
It's enough to put polymesh in folder that .dat existence

thanks
Masoud


All times are GMT -4. The time now is 04:43.