CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Solid volume inside computational domain

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 19, 2008, 06:27
Default Hi all, I've just started t
  #1
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Hi all,

I've just started to do one simple mesh which contains a solid volume (solid wall) which will be heated inside the computational domain. But I have some problem here figuring how to do this.

To illustrate what I want to achieve I made a picture of a square solid with a square hole in it. This solid volume is inside the computational domain. My configuration is more complex but let's start with an easy one.



The meshing part with blockmesh is easy for me: I have defined the verticies, edges and the different blocks.

But after, how do I define the solid volume with the hole as a wall to impose an heat flux or a temperature on it ?

I already search on the UserGuide, Wiki and Forum with no success. If you have some suggestions which can help me...

thank you very much.
Best regards
Francois
francois is offline   Reply With Quote

Old   November 19, 2008, 10:27
Default Have you defined patches? Patc
  #2
New Member
 
Juan Fernando Duque Lombana.
Join Date: Mar 2009
Posts: 14
Rep Power: 8
juanduque is on a distinguished road
Have you defined patches? Patches are composed by the boundary faces (See Cavity example blockMeshdict, where they define sets of block faces as different patches, E.G fixedWalls, movingWall, etc...). The Block faces you define must comply with the right hand rule and MUST belong to a block.

After you define patches, you can set the proper boundary conditions (for each field) for using with the solver you've chosen.

Hope that helps,
juanduque is offline   Reply With Quote

Old   November 19, 2008, 10:30
Default Hello Francois, I would rec
  #3
Senior Member
 
santos's Avatar
 
Jose Luis Santos
Join Date: Mar 2009
Location: Portugal
Posts: 213
Rep Power: 9
santos is on a distinguished road
Send a message via Skype™ to santos
Hello Francois,

I would recommend you the new meshing utility introduced in OpenFOAM 1.5: snappyHeshMesh. Read its section in the User Guide for indications on how to use it.

You could export your solid volume with the hole as a STL file, using eg. Salome, then snappyHeshMesh would take care of the rest.

Regards,
Jose Santos
santos is offline   Reply With Quote

Old   November 19, 2008, 11:06
Default Thanks Juan and Jose ! It's n
  #4
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Thanks Juan and Jose !
It's nice from you ...

Jose: Your solution looks very good but I prefer to stay with blockmesh at present time because I have some python scripts which build my blockmesh dict file. Thanks for the advice be sure I will look at your solution when I will have enough time.

Juan: indeed some patches must be defined and my question was how to define those patches in 3D for a solid volume with a hole. I want to do some simulation with coupled heat transfer (take the conduction into account in the solid volume) but don't know where to start or look for.

So if I understand you correctly, I must define a patch (call it square_hole) with all the faces which surround the solid volume. That's all ? After that how can I specify which inner cells belong to the solid volume and which cells are in the fluid region ?

Hope I'm clear and you can understand me.
Anyway thanks for your help and if you have more advices ... they will make me happy !

Thanks again
Regards
francois
francois is offline   Reply With Quote

Old   November 19, 2008, 12:06
Default Francois: As I understand y
  #5
New Member
 
Juan Fernando Duque Lombana.
Join Date: Mar 2009
Posts: 14
Rep Power: 8
juanduque is on a distinguished road
Francois:

As I understand your square-donut is the CFD domain you're trying to analyze. The walls that bound it are the interphase with a solid, am I right?

Yes, to define a patch you must use the faces that define the blocks of your blockmesh (remember, right hand rule is to be applied).

Which solver are you using for the coupled heat transfer problem?

Good luck!
juanduque is offline   Reply With Quote

Old   November 19, 2008, 15:05
Default Hi Juan, Not exactly: the s
  #6
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Hi Juan,

Not exactly: the square-donut in gray in the solid volume and the cube around it, the fluid region.

I just tried to define a patch with all the faces which surround the solid volume in gray and I'm in trouble here because the faces which are selected are internal faces. See error message below after blockMesh:

Trying to specify a boundary face 4(16 17 21 20) on the face on cell 8 which is either an internal face or already belongs to some other patch.

Don't know what can be done to define such patch/region ??

For the solver I will use for the coupled heat transfer, I saw some posts here on the forum on such a solver perhaps on sourceforge. Don't konow if it's available in OpenFOAM 1.5
francois is offline   Reply With Quote

Old   November 19, 2008, 15:18
Default can you post your blockMeshDic
  #7
New Member
 
Juan Fernando Duque Lombana.
Join Date: Mar 2009
Posts: 14
Rep Power: 8
juanduque is on a distinguished road
can you post your blockMeshDict?
juanduque is offline   Reply With Quote

Old   November 19, 2008, 17:11
Default Yes of course The blockMeshDi
  #8
Senior Member
 
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 133
Rep Power: 8
francois is on a distinguished road
Yes of course
The blockMeshDict I'm working on is with a different geometry: cylindric plate with a hole inside a cylinder. But the problem is the same one.

See picture below



The blockMeshDict is just here:

blockMeshDict
francois is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
surfaces inside a volume (domain) Johannes CFX 1 December 22, 2008 11:17
Solid inside fluid volume JP FLUENT 5 December 5, 2008 13:51
Computational domain over a cylinder Prashanth FLUENT 1 November 17, 2008 15:08
How to create a fluid volume inside a solid volume sanin FLUENT 4 November 13, 2008 16:17
Howto Sphere solid as a subdomain inside a domain? jakjak CFX 0 October 24, 2007 23:31


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