CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] plot3DToFoam: converting backstep grids from NASA's website (https://www.cfd-online.com/Forums/openfoam-meshing/125918-plot3dtofoam-converting-backstep-grids-nasas-website.html)

samiam1000 November 4, 2013 06:39

plot3DToFoam: converting backstep grids from NASA's website
 
Dear All,

I am trying to convert some Plot3D meshes into the OpenFOAM format. What I am doing is to download some meshes from, for example,
HTML Code:

http://turbmodels.larc.nasa.gov/backstep_grids.html
and to convert them using

Code:

plot3dToFoam name-of-the-mesh
But I get this error:

Code:

zampini@pc-zampini:~/Documenti/PhD/corsi/physicsAndNumericalModellingOfTurbulentFlows/test$ plot3dToFoam  backstep5_1levdn.p2dfmt
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0
Exec  : plot3dToFoam backstep5_1levdn.p2dfmt
Date  : Nov 04 2013
Time  : 12:30:12
Host  : "pc-zampini"
PID    : 22448
Case  : /home/zampini/Documenti/PhD/corsi/physicsAndNumericalModellingOfTurbulentFlows/test
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Reading 4 blocks
block 0 nx:257 ny:257 nz:97
block 1 nx:257 ny:385 nz:449


--> FOAM FATAL IO ERROR:
wrong token type - expected int, found on line 4 the doubleScalar -130

file: backstep5_1levdn.p2dfmt at line 4.

    From function operator>>(Istream&, int&)
    in file primitives/ints/int/intIO.C at line 68.

FOAM exiting

zampini@pc-zampini:~/Documenti/PhD/corsi/physicsAndNumericalModellingOfTurbulentFlows/test$

or this one:
Code:

zampini@pc-zampini:~/Documenti/PhD/corsi/physicsAndNumericalModellingOfTurbulentFlows/test$ plot3dToFoam backstep5_0levdn.p2dfmt
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.0
Exec  : plot3dToFoam backstep5_0levdn.p2dfmt
Date  : Nov 04 2013
Time  : 12:25:43
Host  : "pc-zampini"
PID    : 22264
Case  : /home/zampini/Documenti/PhD/corsi/physicsAndNumericalModellingOfTurbulentFlows/test
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Reading 4 blocks
block 0 nx:513 ny:513 nz:193
block 1 nx:513 ny:769 nz:897
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
Annullato
zampini@pc-zampini:~/Documenti/PhD/corsi/physicsAndNumericalModellingOfTurbulentFlows/test$

Could anyone help, please?

Thanks a lot,
Samuele

adoledin December 18, 2014 16:04

Hi Samuele,

Did you solve the problem?

samiam1000 January 2, 2015 16:51

Dear Adoledin,

indeed, what I did was to generate a new mesh similar to the one available in the link I post in my first message.

Sorry!


All times are GMT -4. The time now is 05:44.