Re: [deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2017-08-14 Thread vladislav . dealii
Thank you, Kristjan. Both links are helpful. On Monday, August 14, 2017 at 1:10:36 PM UTC+2, krei wrote: > > Hi Vladislav, > > You can take a look at my project here: > https://github.com/eimrek/dealii-field-currents-heating, perhaps it's > useful. In currents_and_heating.h/.cc files I use

Re: [deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2017-08-14 Thread Kristjan Eimre
Hi Vladislav, You can take a look at my project here: https://github.com/eimrek/dealii-field-currents-heating, perhaps it's useful. In currents_and_heating.h/.cc files I use a map between vacuum and metal face cells to evaluate boundary condition from one domain in the other. Note that in my case

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2017-08-14 Thread vladislav . dealii
Hello, Mike, I have a similar problem like you. I have two PDEs in separate domains coupled through an interface. I have also tried to solve this using step-46.However, my code haven't produced the correct solution in my test case. Thus, I am very interested to try new approaches, especially ho

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-08-23 Thread Michael Harmon
Nice! Good luck with Gmsh! On Tuesday, August 23, 2016 at 11:10:46 AM UTC-4, krei wrote: > > Thanks for the response. I have a more-or-less working version where the > whole thing is solved together by Newton's method, but I bet solving > electric field separately gives a good performance boost

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-08-23 Thread krei
Thanks for the response. I have a more-or-less working version where the whole thing is solved together by Newton's method, but I bet solving electric field separately gives a good performance boost. I will try to fiddle with it, however, generating multiple meshes with matching boundary for te

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-08-23 Thread Michael Harmon
Hey, I had a similar problem: PDES in separate domains that are coupled through an interface as a boundary condition. You can go about it using one triangulation; I attempted to do this at first, but ended up using multiple meshes. The fact you have matching meshes on the boundary is good. Wh

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-08-09 Thread Daniel Arndt
krei, If your emission current boundary conditions do not depend linearly on the electric field, the whole problem becomes non-linear and hence you can't solve the whole problem directly. What you can do is to first solve for the electric field and afterwards for the metal part. In particular,

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-08-09 Thread krei
Hello, I mostly implemented the hp-vector finite element approach (according to step-46), but alas, I think it might not be applicable. (I simplified the boundary condition in original post a bit.) In my case I need to apply an emission current boundary condition to the electric currents in cop

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-07-31 Thread krei
Thanks for the response. I think this is worth a try. However, as the electric field calculation is entirely decoupled from the nonlinear currents & heating part, which need to be solved by newton's method, then wouldn't it be effective to just once calculate the field and then start the newton

[deal.II] Re: Using the solution from one problem as a boundary condition in another problem with matching mesh on the boundary

2016-07-30 Thread Daniel Arndt
krei, If you want to solve different PDEs on different domains that can be discretized by a common mesh, the preferred approach is to use a hp-vector finite element. This means that on each of your subdomains all blocks of your finite element but one are of type FENothing. You might want to hav