[deal.II] Re: Storing additional information at the DOF unrelated to the system you are solving

2019-06-29 Thread Daniel Arndt
Bruno, Hello everyone, I hope you are well. > I have a quick question which I cannot seem to wrap my hear around. I > think it will sound confused, but anyway. > Let's say I am solving for a scalar equation. I would have a > triangulation, then a DoFHandler and a FESystem with a multiplicity of

[deal.II] Re: Storing additional information at the DOF unrelated to the system you are solving

2019-07-01 Thread Bruno Blais
Dear Daniel, I am sorry, my question truly was unclear. Let's say I solve a first equation for Velocity, and I would like to use this velocity in another equation for advection-diffusion of say Temperature. I would first set-up my DOF and FE system for my velocity equation and solve it and set-u

[deal.II] Re: Storing additional information at the DOF unrelated to the system you are solving

2019-07-01 Thread Daniel Arndt
Bruno. Let's say I solve a first equation for Velocity, and I would like to use > this velocity in another equation for advection-diffusion of say > Temperature. > I would first set-up my DOF and FE system for my velocity equation and > solve it and set-up by DOF and FE system for my Temperatur

[deal.II] Re: Storing additional information at the DOF unrelated to the system you are solving

2019-07-01 Thread Bruno Blais
Dear Daniel, I understand, it perfectly makes sense. I had not thought about using two different FEValues when looping over the cells. Thank you very much! Best Bruno On Monday, July 1, 2019 at 8:52:46 AM UTC-4, Daniel Arndt wrote: > > Bruno. > > Let's say I solve a first equation for Velocity,

Re: [deal.II] Re: Storing additional information at the DOF unrelated to the system you are solving

2019-07-01 Thread Wolfgang Bangerth
Bruno, another option is to just pack all of your variables into one FESystem and DoFHandler, and solve the linear systems related to each variable one at a time. That's basically the difference between step-31 and step-32: The former has two DoFHandlers, one for the flow variables and one for