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

Multiple zones in the domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2005, 09:17
Default In Fluent code, there is a pos
  #1
New Member
 
Rachid bannari
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 12
Rep Power: 17
bannari is on a distinguished road
In Fluent code, there is a possibility to recover the number of a zone of the domain (Zone_ID) with (THREAD_ID(t)=number of zone).
I will Know if ther's a function which makes the same thing in OPENFOAM?
if No, How can I do this?
thanks a lot
bannari is offline   Reply With Quote

Old   July 11, 2005, 15:36
Default it is possible to have plus th
  #2
New Member
 
Rachid bannari
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 12
Rep Power: 17
bannari is on a distinguished road
it is possible to have plus than one zone in the domain with different properties?
and how can I recover the pointer addressed to each zone ?
bannari is offline   Reply With Quote

Old   July 11, 2005, 17:54
Default No there is no standard way of
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
No there is no standard way of having different zones in a mesh. You'll have to program it yourself.
mattijs is offline   Reply With Quote

Old   July 11, 2005, 18:02
Default ... the idea being that each "
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
... the idea being that each "zone" is in fact a mesh itself and you then deal with mesh to mesh coupling instead of chopping up a perfectly good mesh you started from.

If you just want to have different properties in various part of your domain but still solve the same equations everywhere, you can specify a spatially varying properties without using zones.

Enjoy,

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

Old   July 12, 2005, 00:09
Default thanks for you, but I dont so
  #5
New Member
 
Rachid bannari
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 12
Rep Power: 17
bannari is on a distinguished road
thanks for you,
but I dont solve the same equations in the different regions.
So I will tried to program this...
bannari is offline   Reply With Quote

Old   July 12, 2005, 00:12
Default thanks for you, but I dont so
  #6
New Member
 
Rachid bannari
Join Date: Mar 2009
Location: Quebec, Canada
Posts: 12
Rep Power: 17
bannari is on a distinguished road
thanks for you,
but I dont solve the same equations in the different regions.
So I will try to program this...
bannari is offline   Reply With Quote

Old   July 12, 2005, 03:43
Default look in the tread 'Heat transf
  #7
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
look in the tread 'Heat transfer with solid elements (conduction)'

you may find some ideas

Daniele
panara is offline   Reply With Quote

Old   July 8, 2006, 04:46
Default At first, sorry for the very l
  #8
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18
fra76 is on a distinguished road
At first, sorry for the very long post, but I'd like to explain my problem clearly.

I've developed a model for porous media within OpenFOAM 1.3, paying attention to respect the programming conventions used in the code. It's based on Brinkman's equation, with the inverse porosity tensor defined as tensor::zero outside the porous media, and with a value defined by the user using a new dictionary file.
I can specify an arbitrary number of porous "boxes" within the mesh, each one with its own properties. And that's very fine!

The equation I solve is derived from the standard simpleFoam:


tmp<fvvectormatrix> UEqn
(
fvm::div(phi, U)
+ turbulence->divR(U)
+ (G & U)*nu
);

UEqn().relax();

solve(UEqn() == -fvc::grad(p));


This works quite well, but I have to choose very low underrelaxation factors to reach convergence, when the values of G are high (The eigenvalues of G, derived measuring the pressure lost between the inlet and the outlet of the porous media and comparing it with experimental data, are about 1.e+8 m^-2, for a velocity of about 10 m/s).
Keeping underrelaxation factor so low (even 0.001 or less) requires too much computational time, of course.
I guess the instability problem is produced by the discontinuity of the [G] field between the porous region and the outside.

So, I'd like to solve this equation only within the porous region and the standard Navier-Stokes for the flow outside it, coupling somehow (explicitly or implicitly) the regions.

In the thread named "Heat transfer with solid elements (conduction)" Henry Weller gave some hints on the way to do something like this, like transfering boundary condition explicitly between the two zones.
Mattijs Jansen posted a twoMeshes version of simpleFoam, which I'm studying to learn how to threat two different meshes.

The questions are:
How can I define two ore more different meshes within one case? I mean, while creating the mesh and importing it in OpenFOAM.

How can I couple the regions within the SIMPLE loop?

Thanks a lot for your patience!
Francesco.
fra76 is offline   Reply With Quote

Old   August 10, 2006, 10:08
Default Hi Francesco, I wouldn't be a
  #9
Member
 
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17
melanie is on a distinguished road
Hi Francesco,
I wouldn't be able to help you improve your solution, but I would be very interested if you share your code or explain a little bit more how you implemented it... I'd like to develop a model for heat exchangers, and I'm quite sure that your porous media is close to what I'd need !
thanks
melanie
melanie 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
Large domain: split zones and import BCs Dothan FLUENT 0 May 9, 2008 08:36
Multiple Fluid Zones Naghman Khan FLUENT 3 August 3, 2007 07:23
initial conditions in multiple zones Ryan FLUENT 0 July 21, 2006 13:46
How to set multiple zones profile in UDF? jis3 FLUENT 2 April 25, 2004 15:03
Gambit tutorial for Multiple Fluid Zones ? bete FLUENT 1 July 9, 2001 03:32


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