CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   polyMesh problem (http://www.cfd-online.com/Forums/openfoam/87129-polymesh-problem.html)

Arenio April 12, 2011 07:44

polyMesh problem
 
cavity tutorial:
I tipped blockMesh and following occured:

Failed writing polyMesh.
From function blockMesh
in file genBlockMesh.C at line 303.

Thanks

kirubhakaran January 3, 2012 23:46

polymesh writing failed
 
i cant able to create the blockmesh in OPENFOAM it showing like polymesh cant be written i made display the error in which is displayed in the terminal
. actually i tried with a tutorial problem were i cant able to find the solution of it. actually i tried it in openFoam/tut/incompressible/iofoam/cavity only.


Creating block mesh from
"/opt/openfoam201/tutorials/incompressible/icoFoam/cavity/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Creating block mesh topology

Check topology

Basic statistics
Number of internal faces : 0
Number of boundary faces : 6
Number of defined boundary faces : 6
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 0.1

Writing polyMesh


--> FOAM FATAL ERROR:
Failed writing polyMesh.

From function blockMesh
in file blockMeshApp.C at line 336.

FOAM exiting

Bernhard January 4, 2012 02:01

Do you have root permissions on this system? I.e. do you have write access in /opt?

Prash March 8, 2012 11:17

I tried same for bubbleFOAM got the same error message

--> FOAM FATAL ERROR:
FAILED writing polymesh.

I do have access to /opt directory. I am trying to run from there itself.

calim_cfd March 8, 2012 11:30

Quote:

Originally Posted by Prash (Post 348395)
I tried same for bubbleFOAM got the same error message

--> FOAM FATAL ERROR:
FAILED writing polymesh.

I do have access to /opt directory. I am trying to run from there itself.

i prolly shouldnt say this but.... type this at terminal
Code:

cd /opt/
chmod -Rf 777 opemfoam201/

then try again.. it will work..


but you shouldn't do this..thou it works.. you should do this (if you installed of properly)
Code:

mkdir -p $FOAM_RUN
cp -r $FOAM_TUTORIALS $FOAM_RUN

and try this
Code:

cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity  (or just type the alias: run)
blockMesh
icoFoam
paraFoam

it should work.. at least one of the options above

Prash March 8, 2012 11:33

Hey thanks,

I was using OF 1.7.1 , it worked if I copied tutorials to my home directory.
Thanks a ton.

Best wishes
Prashant


All times are GMT -4. The time now is 20:26.