Re: [deal.II] automatic differentiation:

2022-07-18 Thread Jean-Paul Pelteret
Hi Simon, Unfortunately I don’t have the time at this moment to give you a full explanation as to why the logic of your code is wrong, but in essence you have the sequence of operations inverted. You need to compute your energy based on the “sensitive” DoF values that would come from the reinit

Re: [deal.II] Upward connectivities between mesh entities

2022-07-18 Thread Wolfgang Bangerth
On 7/18/22 10:25, Olivier Jamond wrote: I started looking and playing with the classes of this module, but at this time I couldn't find a way to get upward adjacencies between mes entities, i.e. topological connections from lower dimentionnal entities to higher ones (vertex->faces, face->cell

[deal.II] Upward connectivities between mesh entities

2022-07-18 Thread Olivier Jamond
Hello deal.II users, I am considering using deal.II "triangulation" module as a mesh backend handling distributed meshes with AMR functionnalities in the software I am working on for the french Alternative Energies and Atomic Energy Commission. I started looking and playing with the classes of

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 VectorTools::interpola

[deal.II] Re: Changing time step

2022-07-18 Thread BBah
Alright guys i was able to solve this. Thanks BBah schrieb am Montag, 18. Juli 2022 um 11:00:56 UTC+2: > Hello everybody, > > i am trying to change my timestep after few simulations steps but i am > getting a kink into my solution once i reduce my timestep. > I did this actually simple by adjus

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 refin

[deal.II] Changing time step

2022-07-18 Thread BBah
Hello everybody, i am trying to change my timestep after few simulations steps but i am getting a kink into my solution once i reduce my timestep. I did this actually simple by adjusting my timestep once a certain time is reached when i apply the dirichlet boundary conditions: if(ti