Re: [deal.II] How to access variables in the postprocessor object

2022-12-16 Thread Raúl Aparicio Yuste
Hi Wolfgang, Thank you for pointing that out. I was wrong because I thought that what happens with 1-D is the same as in 2-D, and that’s not true. I will try to think again how I solve the problem and the structures related to it. Thank you for the suggestions!! Best El miércoles, 14 de

Re: [deal.II] How to access variables in the postprocessor object

2022-12-14 Thread Wolfgang Bangerth
Raul: Exactly, I would like to use what my DataPostprocessor computes in other parts of the programme. This is not the right approach. DataPostprocess is used to put derived quantities into output files, not to compute data that can then be used in other parts of the program. For what you

Re: [deal.II] How to access variables in the postprocessor object

2022-12-14 Thread Raúl Aparicio Yuste
Hi Jean-Paul and Wolfgang, Exactly, I would like to use what my DataPostprocessor computes in other parts of the programme. Here my problem: In my postprocessor, I compute stresses and principal stresses for all quadrature points (to give you the context, I am using quad elements with 4

Re: [deal.II] How to access variables in the postprocessor object

2022-12-12 Thread Wolfgang Bangerth
On 12/12/22 08:01, Raúl Aparicio Yuste wrote: These variables are saved on the data_out object, so I use “data_out.write_vtk(output);” and I get them on the vtk file. However, I do not know how to access to these new variables (computed_quantities) from another file different from the one

Re: [deal.II] How to access variables in the postprocessor object

2022-12-12 Thread Jean-Paul Pelteret
Hi Raul, The “input_data” argument to the evaluate_vector_field() function has a method that can be called to retrieve the cell that is currently being processed: https://dealii.org/developer/doxygen/deal.II/structDataPostprocessorInputs_1_1CommonInputs.html#a2bc88342acd8e41314c8c1328bd98a67

[deal.II] How to access variables in the postprocessor object

2022-12-12 Thread Raúl Aparicio Yuste
It is not clear to me how to access an object in the structure “Postprocessor”. The idea is that I compute the solution, but I am also computing secondary variables using the postprocessor structure in this way: dealii::DataOut data_out; data_out.attach_dof_handler(dof_handler);