CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Subdomain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2007, 12:23
Default Hi all! Is it possible to d
  #1
New Member
 
Dragan Vidovic
Join Date: Mar 2009
Posts: 17
Rep Power: 17
vitke is on a distinguished road
Hi all!

Is it possible to define a field on a subdomain of the whole domain (mesh), and to solve an equation on such a subdomain? I need to solve some flow in a porous medium where there is no gas–solid thermal equilibrium, so I must solve a separate energy equation for the solid. The porous medium does not cover the whole domain, and I cannot define a temperature of the solid where there is no solid, so a state function could not work. I could use cell zones or blocks as defined in blockMeshDict, if I could limit the domain of the solid energy equation to a cell zone. Or do I have to have two meshes and ignore the fact that one is a subset of the other?
vitke is offline   Reply With Quote

Old   August 28, 2007, 12:36
Default Not quite like that: having zo
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Not quite like that: having zones would mess up a lot of efficiency.

What you can do is to create an fvMeshSubset by selecting the cells you want to work on. This will give you boundaries and all other goodies you need to properly define your system + give you sufficient mapping data to move the fields you need forward and back between the original mesh and the subset.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 28, 2007, 13:01
Default Thanks Hrvoje, this seems to b
  #3
New Member
 
Dragan Vidovic
Join Date: Mar 2009
Posts: 17
Rep Power: 17
vitke is on a distinguished road
Thanks Hrvoje, this seems to be just what I was looking for. I'll give it a try.

Dragan
vitke is offline   Reply With Quote

Old   April 13, 2010, 06:37
Default does this work on runtime as well?
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21
romant is on a distinguished road
this fvMeshSubset, does it work on runtime as well, meaning selecting cells on runtime, applying boundary conditions and then solving fields on this mesh, instead of the whole mesh?
__________________
~roman
romant is offline   Reply With Quote

Old   March 25, 2020, 16:07
Default same here...
  #5
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
Hi, I know this is an vey old thread, but I am faced withthe same issue:solving an equation of a volScalarField (convection+diffusion type) only on a subMesh asociated with a cellSet(Zone) within the "mother" mesh. Any code example available?
r2d2 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
Initilization at subdomain Jaho CFX 3 March 30, 2009 01:58
could ccm+ refine a subdomain? Kevin Siemens 3 March 22, 2008 11:26
subdomain or multidomain Susan CFX 0 December 4, 2007 06:03
set the pressure on a whole subdomain nicolas CFX 1 May 18, 2006 09:54
subdomain in CAD2Mesh Alex CFX 1 December 11, 2003 06:30


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