Re: [deal.II] How to create the magnitude of my solution in a new Vector?

2022-12-13 Thread Abbas
I figured it out. I need to use history variables as in step 18. On Tuesday, December 13, 2022 at 9:18:27 AM UTC+2 Abbas wrote: > EXACTLY. > However, it is not clear to me how can I store that value, so that in the > next iteration I would be able to compare it with the current value at the

Re: [deal.II] How to create the magnitude of my solution in a new Vector?

2022-12-12 Thread Abbas
EXACTLY. However, it is not clear to me how can I store that value, so that in the next iteration I would be able to compare it with the current value at the q-point, and take the maximum between the two ,and then store that for the next iteration and so on. On Tuesday, December 13, 2022

Re: [deal.II] How to create the magnitude of my solution in a new Vector?

2022-12-12 Thread Wolfgang Bangerth
On 12/12/22 05:41, Abbas wrote: I am solving a vector problem similar to step-8. I have aVector solution with u_x and u_y at each dof. I would like to have another Vector magnitude which stores the magnitude \sqrt(u_x^2+u_y^2) at each dof. Now it is clear that solution has double the size of

[deal.II] How to create the magnitude of my solution in a new Vector?

2022-12-12 Thread Abbas
Hello, This might be a simple question but I am stuck. I am solving a vector problem similar to step-8. I have a Vector solution with u_x and u_y at each dof. I would like to have another Vector magnitude which stores the magnitude \sqrt(u_x^2+u_y^2) at each dof. Now it is clear that