|
[Sponsors] |
August 28, 2007, 12:23 |
Hi all!
Is it possible to d
|
#1 |
New Member
Dragan Vidovic
Join Date: Mar 2009
Posts: 17
Rep Power: 17 |
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? |
|
August 28, 2007, 12:36 |
Not quite like that: having zo
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
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 |
|
August 28, 2007, 13:01 |
Thanks Hrvoje, this seems to b
|
#3 |
New Member
Dragan Vidovic
Join Date: Mar 2009
Posts: 17
Rep Power: 17 |
Thanks Hrvoje, this seems to be just what I was looking for. I'll give it a try.
Dragan |
|
April 13, 2010, 06:37 |
does this work on runtime as well?
|
#4 |
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21 |
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 |
|
March 25, 2020, 16:07 |
same here...
|
#5 |
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17 |
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?
|
|
|
|
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 |