CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   extrudeMesh from patch (http://www.cfd-online.com/Forums/openfoam/80261-extrudemesh-patch.html)

Lodda September 21, 2010 03:23

extrudeMesh from patch
 
Hi once again,

i have problem by using the extrudeMesh utility. I want to extrude a mesh from existing patch. I have set up the extrudeProperties file in the constant directory and get following error message:

Selecting extrudeModel wedge
Extruding patch front on mesh "/home/wittek/OpenFOAM/wittek-1.7.0/run/mesh/basics"



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/wittek/OpenFOAM/wittek-1.7.0/run/mesh/basics/system/controlDict at line 0.

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

FOAM exiting

I use OpenFoam version 1.7.0. The controlDict file is in the system directory but in
file: /home/wittek/OpenFoam/wittek-1.7.0/run/tutorials/mesh/basics/system/

What is extrudeMesh needing the controlDict file for ?

Should i add something to controlDict ?

Best regards

Lodda

case July 18, 2011 08:33

Hi
I'm also trying to use extrudeMesh to extrude a patch and getting exactly the same error message. Realise the post is very old, but did you ever manage to find out what the problem was?
Also not sure why it needs to read controlDict...
Thanks
Case

Rebecca513 August 11, 2011 20:53

Hello there,

I also got the same error message. Do you know what I should do to fix this?

Thank you so much!

case August 12, 2011 03:27

Hi
I finally found the way around that problem.
What you need to do is essentially make two separate jobs - one where you create the initial mesh and patch, in my case using snappyHexMesh, and the other where you do the extrudemesh and run the job.
First make the mesh as usual in the one job - the change directories to the other job, and run extrudeMesh making sure that the extrudeDict is pointing to the 1st job directory.
Have a look at the wingMotion tutorial for a good example. Afraid I'm on a Windows machine at the moment and can't remember the exact location of the tutorial but just search for it. Follow the order of the allrun script to see how it's run. Notice that the controldict file in the 1st job calls snappyhexmesh, and the 2nd job folder doesn't contain any mesh information in the constant folder apart from the extrudeDict before it's run, as extrudeMesh makes all that.

Case

Rebecca513 August 15, 2011 10:35

Hello Case,

That is very helpful!

Thank you so much!!!

Best,

Hang


All times are GMT -4. The time now is 17:01.