<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 15, 2014 at 12:09 PM, Xiao, Jianjun (IKET) <span dir="ltr"><<a href="mailto:jianjun.xiao@kit.edu" target="_blank">jianjun.xiao@kit.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Barry,<br>
<br>
Yes, I have structured grid.<br>
<br>
Say, we totally have one million cells (100*100*100). 100,000 cells are solid cells, and the shape of the solid is irregular. The other cells are fluid cells.<br>
<br>
In principle, we could use one DMDA. And give the property to each cell. It means the code knows which cell is solid and which is fluid. Then the problem of load balancing occurs: if all the solid cells accumulates, say at a corner, the work load will not be balanced.<br>
</blockquote><div><br></div><div>Why would it not be balanced? You divide cells equally, and compute whatever equations you need on each cell.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Maybe you have some other good ideas. Thank you<br>
<br>
JJ<br>
________________________________________<br>
From: Barry Smith [<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>]<br>
Sent: Tuesday, April 15, 2014 6:30 PM<br>
To: Xiao, Jianjun (IKET)<br>
Cc: <a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a><br>
Subject: Re: [petsc-users] Two DMDAs for conjugate heat transfer<br>
<div class="HOEnZb"><div class="h5"><br>
DMDA are for structured grids. That is each DMDA represents a structured grid. Do you have fluid everywhere and solid everywhere or are some cells fluid and some cells solid?<br>
<br>
Barry<br>
<br>
<br>
<br>
On Apr 15, 2014, at 11:12 AM, Xiao, Jianjun (IKET) <<a href="mailto:jianjun.xiao@kit.edu">jianjun.xiao@kit.edu</a>> wrote:<br>
<br>
> Dear developers,<br>
><br>
> I am writing a CFD code to simulate the conjugate heat transfer. I would like to use two DMDAs: one is for the fluid cells, and the other one is for the solid cells.<br>
><br>
> Here are the questions:<br>
><br>
> 1. Is it possible to have two different DMDAs for such a purpose? How the data in these two DMDAs communicate with each other? Are there any similar examples?<br>
><br>
> 2. How to deal with the load balancing if DMDA is used? Or it is simply impossible?<br>
><br>
> Thank you.<br>
><br>
> Best regards<br>
> JJ<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>