Re: [deal.II] RHS function represented by an interpolation

2022-07-18 Thread Wolfgang Bangerth
On 7/18/22 04:21, Alexander Kiselyov wrote: Regarding the mesh, I'm not sure I use the correct terms, but for two solvers I'm going to use the same "starting" mesh but with different refinement (two solvers having their own mesh refinement loops). It seems that in this case

Re: [deal.II] RHS function represented by an interpolation

2022-07-18 Thread Alexander Kiselyov
Thank you very much, Jean-Paul! I have totally forgot that deal.II has a wiki in addition to doxygen documentation! Best regards, Alexander Kiselyov On Fri, 2022-07-15 at 22:51 +0200, Jean-Paul Pelteret wrote: > Hi Alexander, > > The answer that Wolfgang gave is the one that you want to follow.

Re: [deal.II] RHS function represented by an interpolation

2022-07-18 Thread Alexander Kiselyov
Thank you very much for the answer! I was unsure that the cell iteration order is stable, that helps a lot! Regarding the mesh, I'm not sure I use the correct terms, but for two solvers I'm going to use the same "starting" mesh but with different refinement (two solvers having their own mesh

Re: [deal.II] RHS function represented by an interpolation

2022-07-15 Thread Jean-Paul Pelteret
Hi Alexander, The answer that Wolfgang gave is the one that you want to follow. But I can give some input into your one question. > The problem here is the step 3: somehow I need to specify the same geometric > cell for two FEValues with different finite element systems while preserving > the

Re: [deal.II] RHS function represented by an interpolation

2022-07-15 Thread Wolfgang Bangerth
On 7/15/22 08:36, Alexander Kiselyov wrote: Which tools could be used to overcome this problem? Or is my approach deficient in general? Alexander: You want to evaluate the solution obtained on one DoFHandler at quadrature points so that you can form the right hand side for a system that

[deal.II] RHS function represented by an interpolation

2022-07-15 Thread Alexander Kiselyov
Dear deal.II users, I'd like to ask a question concerning the use of RHS function represented by a DoF vector from another solver. I'm trying to build RHS of one solver (A) using solution obtained with another solver (B) , i.e. instead of Function there is a DoF vector. Both solvers have the