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

[snappyHexMesh] snappyHexMesh running

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2014, 12:35
Default snappyHexMesh running
  #1
New Member
 
Join Date: Jun 2014
Posts: 6
Rep Power: 11
lguillem is on a distinguished road
Hello,

I'm trying to solve cfd problem using snappyHexMesh. The program works quite well but only for the mesh and it stops then. I don't find any internet help to find out what is the problem.

The problem seems to come from the running file. What is the best runApplication to make it works. I've tried some like :

runApplication snappyHexMesh

runApplication snappyHexMesh -overwrite

runApplication decomposePar
runApplication foamJob -parallel -screen snappyHexMesh
runApplication reconstructParMesh -latestTime

Has any body have ever had such a problem? Could you help me for it?

Cheers
lguillem is offline   Reply With Quote

Old   June 9, 2014, 14:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings lguillem and welcome to the forum!

There is a very simple reason why snappyHexMesh doesn't work as a solver: it's only a mesher!!

For more information about snappyHexMesh, have a look here: http://openfoamwiki.net/index.php/SnappyHexMesh

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 10, 2014, 05:47
Default
  #3
New Member
 
Join Date: Jun 2014
Posts: 6
Rep Power: 11
lguillem is on a distinguished road
Hi Bruno,

Thank you for your answer, but there is something I don't understand.
When I don't put the snapptHexMeshDict in the system file and when I run the code, calculations are made. I mean I have folders which are created (0, 0.1, 0.2...).
And when I put the snappyHexMeshDict in the system file and when I put "runApplication snappyHexMesh" in the "Allrun", those folders doesn't appear.

Would you know why ?
Thanks again for your answer.

Cheers,
Louise.
lguillem is offline   Reply With Quote

Old   June 10, 2014, 10:54
Default
  #4
New Member
 
Join Date: Jun 2014
Posts: 6
Rep Power: 11
lguillem is on a distinguished road
In fact snappyHexMesh create the folder 0.01 0.02 and 0.03.
And then, interDymFoam is not able to calculate because it doesn't find the 0 folder.

How can I resolve this problem ?

Cheers,
Louise.
lguillem is offline   Reply With Quote

Old   June 10, 2014, 10:59
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Louise,

You're not looking at the bigger picture. From your description, my guess is that when you don't use snappyHexMesh, you still have the base mesh that was created with blockMesh. Therefore, there is a mesh available and the solver might be able to run with it.
But when you run snappyHexMesh, the resulting mesh is of very poor quality and the solver crashes soon enough.

Whenever you use the function "runApplication" in the Allrun scripts, it will create a log file with the log.name file, with the name of the application that is executed. For example, you will get "log.blockMesh" and "log.snappyHexMesh" files, when the respective applications are used. Open those log files with a text editor and you will then be able to see if things went well or not.

Furthermore, if feels like you're not familiar/comfortable with the shell/command line. Therefore, I suggest that you look for tutorials on this topic. For example: http://linuxcommand.org/learning_the_shell.php


edit: If you don't give more information about which tutorial case you're trying to run, then it gets rather complicated to help you .

Best regards,
Bruno
__________________

Last edited by wyldckat; June 10, 2014 at 11:07. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   June 10, 2014, 12:14
Default
  #6
New Member
 
Join Date: Jun 2014
Posts: 6
Rep Power: 11
lguillem is on a distinguished road
Thank again for your answer.

I will try to explain more my problem. Sorry for my english, I am french.

I want to use the tutorial floatingObject (using interdymfoam).
I want to create a snappyHexMeshDict to create a sphere inside a tank.
The snappyHexMesh seems to be working, because there is no fatal error in log.snappyhexmesh and folders 0.01, 0.02, 0.03 are created.
On the contrary, there are fatal errors in the log.interdymfoam. It is written ;


Create time

Create mesh for time = 0.03

Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: displacementLaplacian


--> FOAM FATAL IO ERROR:
cannot find file

file: /home/RN2/LouiseCode/floatingObject/0.03/pointDisplacement at line 0.

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

FOAM exiting



Am I clear ?

Best,
Louise.
lguillem is offline   Reply With Quote

Old   June 11, 2014, 16:11
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Louise,

OK, that makes it a lot easier to understand what is happening in your case!

The problem is that since you did not use the option "-overwrite" with snappyHexMesh, it created those additional time folders, one per mesh stage (castellated, snapped, with layers).

For example:
Code:
snappyHexMesh -overwrite
After the mesh is complete and the only time folder available is "0", then in that folder should be the initial fields for the simulation to work as intended.

Best regards,
Bruno
music_of_emotion likes this.
wyldckat is offline   Reply With Quote

Old   June 13, 2014, 12:28
Default
  #8
New Member
 
Join Date: Jun 2014
Posts: 6
Rep Power: 11
lguillem is on a distinguished road
Hi Bruno,

Thank you very much for your answer and for the time you've put into it !

Best regards,
Louise.
lguillem is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] Parallelize snappyHexMesh optimally? Antimony OpenFOAM Meshing & Mesh Conversion 1 May 25, 2016 01:01
Running parallel case after parallel meshing with snappyHexMesh? Adam Persson OpenFOAM Running, Solving & CFD 0 August 31, 2015 23:04
Something weird encountered when running OpenFOAM in parallel on multiple nodes xpqiu OpenFOAM Running, Solving & CFD 2 May 2, 2013 05:59
Strange Results With snappyHexMesh calebamiles OpenFOAM Running, Solving & CFD 0 August 14, 2011 17:02
[snappyHexMesh] stitchMesh and snappyHexMesh gdbaldw OpenFOAM Meshing & Mesh Conversion 0 December 23, 2009 03:09


All times are GMT -4. The time now is 10:28.