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

[snappyHexMesh] SnappyHexMesh and locationinMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2012, 11:44
Default SnappyHexMesh and locationinMesh
  #1
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 14
aqua is on a distinguished road
Dear all,
I have a problem that i couldn't solve for a long time. It's like this:
as you can see in the attachment, there are block1 and block2. there is also a cube in each block. So, what I will do is, making the two blocks to move passing by each other.the two cubes stand for cars.
The problems is:
if the LocationInMesh is defined inside block1, then after snappyHexMesh, block2 will disappear. Vice versa.
the boundary file is like:
(
inlet
{
type patch;
nFaces 1600;
startFace 5785353;
}
outlet
{
type patch;
nFaces 0;
startFace 5786953;
}
fixedWalls
{
type wall;
nFaces 0;
startFace 5786953;
}
movingwalls
{
type patch;
nFaces 6400;
startFace 5786953;
}
interface1
{
type patch;
nFaces 1600;
startFace 5793353;
}
interface2
{
type patch;
nFaces 0;
startFace 5794953;
}
cubes_ICUBE
{
type wall;
nFaces 98304;
startFace 5794953;
}
ocube_OCUBE
{
type wall;
nFaces 0;
startFace 5893257;
}
)
so you can see, for outlet, fixedwalls, interface2 and ocube-OCUBE, nFaces=0!!!! (locationInMesh is defined in block1)
Can someone help me on this please? Thank you so much!

Aqua
Attached Images
File Type: jpg two blocks with two cubes.jpg (18.7 KB, 197 views)
aqua is offline   Reply With Quote

Old   January 4, 2012, 16:26
Default
  #2
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
Hi Aqua,

I'm just tying-in some loose ends for future readers...
For those reading this thread and wondering about the same question, Aqua also asked about this on another thread and I replied here: http://www.cfd-online.com/Forums/ope...tml#post337890 post #20

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 5, 2012, 05:18
Default
  #3
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 14
aqua is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Aqua,

I'm just tying-in some loose ends for future readers...
For those reading this thread and wondering about the same question, Aqua also asked about this on another thread and I replied here: http://www.cfd-online.com/Forums/ope...tml#post337890 post #20

Best regards,
Bruno
Dear Bruno,
I just looked through the snappymultiRegion case. And I would like to confirm one thing with you: in my case (please have a look at the picture above in my post), I don't need the mesh inside the cubes, which stand for cars. The simulation is aimed to simulat the air flow when the two cubes(cars) pass by each other. So could you please confirm that, the snappymultyRegion case is what i need? Thank you so much!
aqua is offline   Reply With Quote

Old   January 5, 2012, 05:26
Default
  #4
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
Hi Aqua,

Then why do you need the two outer boxes? Why not just one single open space and the two blocks/cars?

Nonetheless, if you do need 2 regions (dynamic mesh motion perhaps?), then you can still use snappyHexMesh and then remove the meshes inside the car blocks. Using setSet might be a good option for removing said cells.

Look here in the forum for my nickname and setSet. Or look for setSet at openfoamwiki.net!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 5, 2012, 05:55
Default
  #5
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 14
aqua is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Aqua,

Then why do you need the two outer boxes? Why not just one single open space and the two blocks/cars?

Nonetheless, if you do need 2 regions (dynamic mesh motion perhaps?), then you can still use snappyHexMesh and then remove the meshes inside the car blocks. Using setSet might be a good option for removing said cells.

Look here in the forum for my nickname and setSet. Or look for setSet at openfoamwiki.net!

Best regards,
Bruno
Dear Bruno,
Thank you so much for your quick reply! and yes, I do need dynamic mesh motion, that's why I have two blocks. Ok, I will try to use the multiRegion case and see whether I can make it.
All the best!
Aqua
aqua is offline   Reply With Quote

Old   January 5, 2012, 08:14
Default
  #6
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 14
aqua is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Aqua,

Then why do you need the two outer boxes? Why not just one single open space and the two blocks/cars?

Nonetheless, if you do need 2 regions (dynamic mesh motion perhaps?), then you can still use snappyHexMesh and then remove the meshes inside the car blocks. Using setSet might be a good option for removing said cells.

Look here in the forum for my nickname and setSet. Or look for setSet at openfoamwiki.net!

Best regards,
Bruno
Dear Bruno,
I got another question. In the snappyMultiRegion case, there is only one block. but what i need is, two blocks containing the cube, moving towards each other...so the blocks will move with GGI interface between them.
I kind of feel confused about how to use the snappyMultiRegion case...
Could you please give me more suggestions?
Thank you so much!!!
aqua is offline   Reply With Quote

Old   January 5, 2012, 16:20
Default
  #7
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
Hi Aqua,

I was assuming that you have the following geometry setup:
  • snappyHexMesh needs an outer bounding box to work with. This outer box will have inside it all other boxes.
    • 1 environment box for car 1
      • 1 box representing the car.
    • another environment box for car 2
      • the other box representing the car 2
This setup should be compatible with the tutorial case that I told you about. You should also look to the other tutorials that use dynamic meshes to get more ideas from them.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 6, 2012, 04:57
Default
  #8
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 14
aqua is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Aqua,

I was assuming that you have the following geometry setup:
  • snappyHexMesh needs an outer bounding box to work with. This outer box will have inside it all other boxes.
    • 1 environment box for car 1
      • 1 box representing the car.
    • another environment box for car 2
      • the other box representing the car 2
This setup should be compatible with the tutorial case that I told you about. You should also look to the other tutorials that use dynamic meshes to get more ideas from them.

Best regards,
Bruno
Dear Bruno,
Thank you so much for your reply, I understand your idea: the two environment boxes will move towards each other, with the two cars inside them, yes? Hopefully I will make it!
Cheers!
Aqua
aqua 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 - surface is not removed vmb OpenFOAM Meshing & Mesh Conversion 0 March 5, 2019 08:24
[snappyHexMesh] snappyHexMesh Parallel bad size error andrewpomeroy OpenFOAM Meshing & Mesh Conversion 2 April 2, 2018 01:08
[snappyHexMesh] problem with snappyHexMesh kanes OpenFOAM Meshing & Mesh Conversion 10 January 26, 2016 06:11
[snappyHexMesh] snappyHexMesh - backward facing step hcl734 OpenFOAM Meshing & Mesh Conversion 4 November 20, 2015 09:57
[snappyHexMesh] Problem with snappyhexMesh: modelling a pore chamber and pore throat model Saideep OpenFOAM Meshing & Mesh Conversion 5 May 10, 2015 14:46


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