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

gmshToFoam problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2013, 20:05
Default gmshToFoam problem
  #1
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 13
DineshramBalaji is on a distinguished road
Hi eveyone,

I built a model using gmsh and used the gmshToFoam command to overwrite the copy of the hot room tutorial in buoyantBoussinesqPimpleFoam. the boundaries have been overwritten with new boundaries, but the patch seems to be empty and the start face remains the same for all the boundaries.

Can anyone suggest on this problem?
DineshramBalaji is offline   Reply With Quote

Old   July 28, 2013, 11:33
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road

i never import a file from gmsh , but if it imports all patch names correctly, then you can assign your patch type manually in polyMesh/boundary file
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   July 29, 2013, 03:06
Default
  #3
New Member
 
Vishal
Join Date: Feb 2013
Posts: 28
Rep Power: 13
vishal3 is on a distinguished road
Hi
I agree Nima Sam. What you have to do is just go to>>Constant>>polymesh>>boundary and manually edit your patch type.

THAT'S IT!!!
vishal3 is offline   Reply With Quote

Old   July 31, 2013, 15:26
Default
  #4
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 13
DineshramBalaji is on a distinguished road
Hi,

Thanks for the response. But the problem is not with the type of the patch. The nFaces of the patch remains empty. It is a structured mesh. There seems to be a similar problem

http://www.cfd-online.com/Forums/ope...tml#post203581

But it is quite complicated.
DineshramBalaji is offline   Reply With Quote

Old   August 5, 2013, 00:58
Default
  #5
New Member
 
Vishal
Join Date: Feb 2013
Posts: 28
Rep Power: 13
vishal3 is on a distinguished road
Hi,

Have you created a volume while adding physical groups? This might solve your problem.
You have to add a physical group to all the volumes in your geometry as an internal.
Check whether it works or not.
vishal3 is offline   Reply With Quote

Old   August 5, 2013, 14:51
Default
  #6
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 13
DineshramBalaji is on a distinguished road
Hi Vishal,

I have used internal volume and still the nFaces remain zero. it's a structured mesh and is there something that can be done with the grouping of the mesh parts.
when I did the checkMesh, I got the following error


Checking patch topology for multiply connected surfaces...
Patch Faces Points Surface topology Bounding box
Tiles 0 0 ok (empty)
Inlet 0 ok (empty)
RackWall 0 0 ok (empty)
Chassis 0 ok (empty)




#0 Foam::error:rintStack(Foam::Ostream&) in "/home/bluesim/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc46DPOpt/lib/libOpenFOAM.so"
#1 Foam::sigSegv::sigHandler(int) in "/home/bluesim/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc46DPOpt/lib/libOpenFOAM.so"
#2 in "/lib/libc.so.6"
#3 Foam:olyMeshTetDecomposition::checkFaceTets(Foam :olyMesh const&, double, bool, Foam::HashSet<int, Foam::Hash<int> >*) in "/home/bluesim/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc46DPOpt/lib/libOpenFOAM.so"
#4
in "/home/bluesim/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc46DPOpt/bin/checkMesh"
#5
in "/home/bluesim/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc46DPOpt/bin/checkMesh"
#6 __libc_start_main in "/lib/libc.so.6"
#7
in "/home/bluesim/OpenFOAM/OpenFOAM-2.2.0/platforms/linux64Gcc46DPOpt/bin/checkMesh"
Segmentation fault
DineshramBalaji is offline   Reply With Quote

Old   August 5, 2013, 23:33
Default
  #7
New Member
 
Vishal
Join Date: Feb 2013
Posts: 28
Rep Power: 13
vishal3 is on a distinguished road
hi Dinesh

Can you send me your .geo file of the geometry? So that I can try that here.
vishal3 is offline   Reply With Quote

Old   August 6, 2013, 05:36
Default
  #8
Member
 
Dinesh Balaji
Join Date: Oct 2012
Posts: 43
Rep Power: 13
DineshramBalaji is on a distinguished road
Yeah sure.

Thanks for the help.
Attached Files
File Type: zip IO_D2.geo.zip (33.8 KB, 10 views)
DineshramBalaji is offline   Reply With Quote

Old   August 17, 2013, 09:49
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 to all!

@Dinesh: I've never used much gmsh, so I'm not familiar with it. I used the same tutorial case as base; the geo file you provided I used as follows:
Code:
gmsh -3 IO_D2.geo
When it was done, I used the command:
Code:
gmshToFoam IO_D2.msh  > log
When I had a look into the "log" file, it indicates that surfaces have names such as:
Code:
Chassis20_100_-y_0.245_2000.0_0.0_0.0_NaN_0.0_0.0
The "NaN" is a clear indication of Not-a-Number: http://en.wikipedia.org/wiki/NaN

Further down in the "log" file, there are several occurrences like these:
Code:
Finding faces of patch 0
--> FOAM Warning : Not using gmsh face 4(65139 65145 65146 65140) since zero vertex is not on boundary of polyMesh
This is the main symptom as to why the patches have 0 faces assigned to them.

I then opened the geo file on gmsh and it looks like you did not define a proper geometry, but I could be wrong. My advice is to step back a bit and try creating first a simpler and similar geometry, and then gradually make it more complex, until you can figure out how it's used.
For more information, I suggest you check the official user guide: http://geuz.org/gmsh/doc/texinfo/gmsh.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 19, 2013, 03:43
Default
  #10
New Member
 
Vishal
Join Date: Feb 2013
Posts: 28
Rep Power: 13
vishal3 is on a distinguished road
Hi dinesh
Will you please provide the details of your case?
vishal3 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
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 10 February 7, 2024 21:50
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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