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 where I declare the functions.

The function evaluate_vector_field is a virtual function, and it is declared as const override. I do not know how to export the variables computed_quantities or modify them, because it is only allowed to read them since the function is declared as constant. Is there any way to access the structure postprocessor? Something like:

postprocessor.getVariables(xxxxxxxx)

Or an example where I can see how to implement it. Thank you very much in 
advance


Raul -- in addition to J-P's answer, start by explaining *what* it is you want to do, not *how* you want to do it. Do I understand right that you want to use what the DataPostprocessor computes in other parts of the program as well? If so, why? Are you trying to solve a nonlinear system and you want to reuse the computed stress for other computations?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/16ea1e54-7ce2-f881-9c17-20a8425892e9%40colostate.edu.

Reply via email to