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

[snappyHexMesh] Problem with snappyHexMesh overwrite

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2017, 01:19
Default Problem with snappyHexMesh overwrite
  #1
New Member
 
Manideep Reddy
Join Date: Aug 2017
Posts: 7
Rep Power: 9
Manideep Reddy is on a distinguished road
Hii all,

I have a very simple problem. When I run the command '' snappyHexMesh -overwrite '' after blockMesh and surfaceFeatureExtract, the boundary file in constant/polymesh folder is not showing all the patches of my geometry. Infact if I just run ''snappyHexMesh'' and copy the latest time mesh's polymesh folder, everything is working fine. What could have been the problem..?

Regards,
Manideep Reddy.
Manideep Reddy is offline   Reply With Quote

Old   September 11, 2017, 01:44
Default
  #2
New Member
 
Frederik
Join Date: Dec 2015
Location: Germany
Posts: 25
Rep Power: 11
a_slow_old_man is on a distinguished road
Depending on your OF version, you should use

"snappyHexMesh -constant"

for the effect you want.

The -overwrite flag overwrites the current timestep on which you are running SHM.

The -constant flag overwrites the case/constant/polymesh files.

You can always use the -help flag to see an explanation for the utility.

Code:
<User:> snappyHexMesh -help

Usage: snappyHexMesh [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -checkGeometry    check all surface geometry for quality
  -constant         Output mesh to constant
  -noFunctionObjects
                    do not execute functionObjects
  -overwrite        overwrite existing mesh/results files
  -parallel         run in parallel
  -region <word>    Create a mesh region
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -time <scalar>    Output mesh to specified time
  -writeDict        Write out mesh dictionary file
  -writeLevel       write pointLevel and cellLevel postprocessing files
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage
a_slow_old_man is offline   Reply With Quote

Old   September 12, 2017, 00:26
Default Solved my problem.
  #3
New Member
 
Manideep Reddy
Join Date: Aug 2017
Posts: 7
Rep Power: 9
Manideep Reddy is on a distinguished road
Thanks all .. I solved my problem. There was a problem with dimensions of the geometry. The dimensions in STL file are very large compared to bock mesh dict. So the problem arises..
Manideep Reddy is offline   Reply With Quote

Old   December 3, 2018, 13:30
Default
  #4
New Member
 
Sarath
Join Date: Mar 2017
Location: Spain
Posts: 22
Rep Power: 9
sk11 is on a distinguished road
From version 5.0, There is no option like -constant. And however I have a similar issue while using the overwrite flag. Does anyone else encountered similar issues or solution for this?
sk11 is offline   Reply With Quote

Old   March 28, 2019, 05:55
Default
  #5
New Member
 
Join Date: Oct 2018
Location: Germany
Posts: 5
Rep Power: 8
Goddi is on a distinguished road
Quote:
Originally Posted by sk11 View Post
From version 5.0, There is no option like -constant. And however I have a similar issue while using the overwrite flag. Does anyone else encountered similar issues or solution for this?

simmilar issue - no solution yet. Did you find anything?


Edit*: my current work arount is using ext-3.1 for mesh generation. There -overwrite still edits polymesh/boundary

Last edited by Goddi; March 28, 2019 at 07:06.
Goddi is offline   Reply With Quote

Old   March 28, 2019, 06:12
Default
  #6
New Member
 
Sarath
Join Date: Mar 2017
Location: Spain
Posts: 22
Rep Power: 9
sk11 is on a distinguished road
Quote:
Originally Posted by Goddi View Post
simmilar issue - no solution yet. Did you find anything?
I used -overwrite flag and the problem I had was reconstructing because I was using reconstructPar instead of reconstructParMesh. If I remember correctly this solved the problem I had.
sk11 is offline   Reply With Quote

Old   July 29, 2023, 02:05
Default
  #7
Member
 
Join Date: Jul 2023
Location: India
Posts: 30
Rep Power: 3
Amirthaa is on a distinguished road
It would be helpful if you could try and clarify certain doubts which are seemingly simple but for which I have not been able to find clear answers yet.

1) How to run in openFOAM simultaneously while visualising in paraFoam?
2) What files to execute in openFOAM before viewing in paraFoam an already run program?
Amirthaa 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] Problem with decomposePar, snappyHexMesh luca1992 OpenFOAM Meshing & Mesh Conversion 12 August 23, 2017 20:06
[snappyHexMesh] snappyHexMesh problem cfdsolver1 OpenFOAM Meshing & Mesh Conversion 0 June 23, 2016 11:09
[snappyHexMesh] Problem handling with subdictionary in SnappyHexMesh Lorenzo92 OpenFOAM Meshing & Mesh Conversion 0 November 21, 2015 14:57
[snappyHexMesh] Problem with snappyhexMesh: modelling a pore chamber and pore throat model Saideep OpenFOAM Meshing & Mesh Conversion 5 May 10, 2015 15:46
[snappyHexMesh] snappyHexMesh - problem using *.obj file inf.vish OpenFOAM Meshing & Mesh Conversion 4 October 7, 2013 04:54


All times are GMT -4. The time now is 11:00.