On 1/3/25 09:14, subramanya gautam wrote:
I am trying to implement a staggered thermal-elastic solver using the matrix-free multigrid solver approach from step-37. I got an elasticity solver and a thermal solver working and now I am trying to associate the two. I have a shared triangulation, with two separate dof_handlers for the  thermal and stress problems. The question I have is when I do the assembly loop, does the cell refer to the same cell for both the thermal and  elastic problems? So from step-37,  can I just call phi_temp.reinit(cell), and phi_stress.reinit(cell), and have cell refer to the same physical cell in the triangulation?

Yes, the order of cells of DoFHandlers follows the order of the triangulation. So two DoFHandlers using the same triangulation have the same order of cells. step-31, for example, uses this fact.

Best
 Wolfgang

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/


--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/f40ad605-daf4-4347-b4ff-2b589c5b04cb%40colostate.edu.

Reply via email to