CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

setFields after snappyHexMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2015, 04:41
Question setFields after snappyHexMesh
  #1
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 10
mo.houssami is on a distinguished road
Dear foamers, I have been trying to do the following

blockMesh
surfaceFeatureExtract
cp system/snappyHexMeshDict.stl system/snappyHexMeshDict
snappyHexMesh -overwrite //no error
topoSet
createPatch -overwrite
extrudeMesh // going from 3D to 2D
checkMesh // mesh ok!
setFields
decomposePar

I noticed that even though setFields doesn't show any error message, I find that there's nothing changed in 0/

I also get this error message after decomposePar:
--> FOAM FATAL IO ERROR:
size 2369124 is not equal to the given value of 82122

file: /scratch/mhoussami/job/foam1/PostFMG/2Dmesh/0/ccx from line 18 to line 2377264.

From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
in file /home/mhoussami/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C at line 236.

FOAM exiting

I guess it's because after doing extrudeMesh, the number of cells is not the same anymore.

Why doesn't setFields do anything? how can I decomposePar?

Thank you
mo.houssami is offline   Reply With Quote

Old   May 12, 2015, 13:31
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,263
Blog Entries: 1
Rep Power: 20
nimasam is on a distinguished road
remove Cxx and Cyy and so on
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog in Persian(http://openfoam.blogfa.com/)
My Personal Website (http://nimasamkhaniani.ir/)
nimasam is offline   Reply With Quote

Old   May 12, 2015, 13:47
Default
  #3
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 10
mo.houssami is on a distinguished road
Hi NimaSam,

Thank you for your quick answer, actually I have done that before, but I wasn't sure it was the right way.
I had to remove cc*, pointLevel.gz and cellLevel.gz in 0/ and then decomposePar runs with no error message.

The only problem remaining is that I still don't see the effect of setFields. The log file from setFields shows no problem at all, but clearly no region values are added in 0/

Any experience with that?
Thanks

Mo
mo.houssami is offline   Reply With Quote

Old   May 12, 2015, 17:42
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,263
Blog Entries: 1
Rep Power: 20
nimasam is on a distinguished road
Play with setFields, order of commands is correct
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog in Persian(http://openfoam.blogfa.com/)
My Personal Website (http://nimasamkhaniani.ir/)
nimasam is offline   Reply With Quote

Old   May 13, 2015, 12:44
Default
  #5
New Member
 
mo houssami
Join Date: May 2011
Posts: 14
Rep Power: 10
mo.houssami is on a distinguished road
Yes, my problem was in one of the coordinates (zmin zmax) which apparently was too small.

Now it works, thanks!
mo.houssami 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] 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
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
[snappyHexMesh] SnappyHexMesh not generate mesh first time mavimo OpenFOAM Meshing & Mesh Conversion 4 August 26, 2008 08:08


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