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

Subdomain

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 28, 2007, 11:23
Default Hi all! Is it possible to d
  #1
New Member
 
Dragan Vidovic
Join Date: Mar 2009
Posts: 17
Rep Power: 9
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, 11:36
Default Not quite like that: having zo
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,781
Rep Power: 22
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, 12:01
Default Thanks Hrvoje, this seems to b
  #3
New Member
 
Dragan Vidovic
Join Date: Mar 2009
Posts: 17
Rep Power: 9
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, 05:37
Default does this work on runtime as well?
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 366
Rep Power: 12
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

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
Initilization at subdomain Jaho CFX 3 March 30, 2009 00:58
could ccm+ refine a subdomain? Kevin CD-adapco 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 08:54
subdomain in CAD2Mesh Alex CFX 1 December 11, 2003 06:30


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