CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Folder structure from snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2009, 10:48
Red face Folder structure from snappyHexMesh
  #1
New Member
 
elisenda lopez
Join Date: Dec 2009
Posts: 14
Rep Power: 17
elisenda is on a distinguished road
Hi,

I tried the snappyHexMesh function on the motorBike tutorial. I introduced the following commands:
1) blockMesh
2) snappyHexMesh

The folder structure I obtain from this commands are in the attached file.
If I perform a simpleFoam analysis they appear the following error:

cannot open file

file: /.../motorBike/3/p at line 0.

What I have to do?
May I have to create initial conditions of velocity and pressure? When? Before the snappyHexMesh command? Where? Into the 3 folder? I have to build a 0 folder?

Is there any suggestion?

Thankyou very much in advance,
Elisenda
Attached Images
File Type: jpg structure_directory.jpg (33.7 KB, 142 views)
elisenda is offline   Reply With Quote

Old   December 24, 2009, 04:06
Default
  #2
Member
 
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 17
fijinx is on a distinguished road
It looks to me like you may need to change a parameter in your controlDict file "<case folder>/system/controlDict". Change "startFrom" from "startTime" to "latestTime". Right now it seems it's trying to run from 0 condition, which you have no info for. The snappyhex tool creates the meshes in the folders corresponding to the time interval you have stated in your controlDict file. (oddly enough the controlDict file controls both writing and comptating time). Hope this helps

--James
fijinx is offline   Reply With Quote

Old   January 4, 2010, 05:04
Default
  #3
Member
 
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 17
Wolle is on a distinguished road
Hi,

as far as I understand, Snappy creates the mesh in 3 steps. Those are saved in the folders 1,2,3. You can hav a look at the different meshes with paraview.

I think you have to simply copy the mesh from folder 3 to the folder 0... which should be there and contain the initial conditions if you copied the tutorial correctly (OpenFOAM/OpenFOAM-1.6/tutorials/incompressible/simpleFoam/motorBike contains folders 0, constant and system on my installation). After copying the mesh, delete the folders 1,2,3... they might confuse the solver as they don't represent any timesteps, but just the different steps of mesh generation.

Cheers
Wolle
Wolle is offline   Reply With Quote

Old   January 6, 2010, 04:52
Default sHM
  #4
New Member
 
amgode's Avatar
 
Amol
Join Date: Jul 2009
Location: Limerick, Ireland
Posts: 24
Blog Entries: 2
Rep Power: 17
amgode is on a distinguished road
Try this !!!

1. blockMesh
2. snappyHexMesh -overwrite
- with this you don't need to copy the mesh from the 3/ directory to case/constant as it overwrites the polymesh... (you might wish to have a backup of your blockMeshDict..so do the needful...)
3. pyFoamCreateBoundaryPatches.py --overwrite 0/p
4. pyFoamCreateBoundaryPatches.py --overwrite 0/U
5. make suitable corrections in the boundary fields in the 0/ folder based on your problem.
6. runApplication


The error message you submitted might be due to some problem with the foam header in the 0/p file. You might have missed out a '{' or '}'.

Regards,

Amol
amgode is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] snappyHexMesh runs endless - I need general advise TeresaT OpenFOAM Meshing & Mesh Conversion 5 November 17, 2015 03:50
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? klausb OpenFOAM Meshing & Mesh Conversion 1 March 7, 2015 12:55
[snappyHexMesh] Error in SnappyHexMesh gooya_kabir OpenFOAM Meshing & Mesh Conversion 2 October 23, 2013 05:41
Query on SnappyHexMesh nandiganavishal OpenFOAM Running, Solving & CFD 2 July 15, 2013 22:11
New ANSYS forum structure, what do you think? Peter CFX 5 February 4, 2009 12:59


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