Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-25 Thread Daniel Wheeler
On Tue, Oct 25, 2016 at 12:59 PM, Zhekai Deng wrote: > Thanks for the tip. Right now, my code looks like following, where > Outlet_BC_value_new is being updated every time, so does the > Outlet_BC_value. It is my understanding that every timestep, > Outlet_BC_value_new is being over-write with ne

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-25 Thread Zhekai Deng
Thanks for the tip. Right now, my code looks like following, where Outlet_BC_value_new is being updated every time, so does the Outlet_BC_value. It is my understanding that every timestep, Outlet_BC_value_new is being over-write with new interpolated value, and being assign to the Variable, which

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-25 Thread Daniel Wheeler
On Tue, Oct 25, 2016 at 12:34 PM, Zhekai Deng wrote: > Thank you. I implemented as you suggested and it works very good now. This > approach seems also applicable for the mesh that are not aligned in the > interface. Exactly. One thing though, it is probably a good idea to cache the mapping from

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-25 Thread Zhekai Deng
Thank you. I implemented as you suggested and it works very good now. This approach seems also applicable for the mesh that are not aligned in the interface. Best, Zhekai On Mon, Oct 24, 2016 at 9:00 AM, Daniel Wheeler wrote: > On Mon, Oct 24, 2016 at 12:20 AM, Zhekai Deng > wrote: > > > > Th

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-24 Thread Daniel Wheeler
On Mon, Oct 24, 2016 at 12:20 AM, Zhekai Deng wrote: > > This is not a issue if mesh system is 1D, and boundary cell is just 1. Or > maybe on the rectangular mesh system. However, does any one has any idea to > how to transfer it properly ? Hi Zhekai; I haven't read through everything but I would

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-23 Thread Zhekai Deng
Sorry, I accidentally hit the "send" button. So I am just going to continue with previous email. The problem with above approach is that while it transfer the data successfully, the data is not in the right spatial position. This could be because the order which fipy name in mesh_1 is different fro

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-23 Thread Zhekai Deng
Hi All, I tried to implement this approach in my problem, and encountered some problems. To keep this post more general, I posted the pseudo code, and point out the problem. I could also send the actual code in private if someone is willing to take a look at it. Basically, I have two 2D gmsh crea

Re: FW: how to set up data transfer between two adjacent nonuniform meshs

2016-10-12 Thread Zhekai Deng
I see. Thanks for clarifying it ! I will implement this over the weekend and to see how it works out. Thank you. Best, Zhekai On Wed, Oct 12, 2016 at 8:15 AM, Campbell, Ian wrote: > Dear Zhekai, > > > > My October 11th post to this list affects my recommendation to you from > October 4th. You’