[MPM] Output process for tracking material point element/condition#14226
[MPM] Output process for tracking material point element/condition#14226ncrescenzio wants to merge 39 commits into
Conversation
…point-output-process
…point-output-process
…point-output-process
…point-output-process
…process' into mpm/track-material-point-output-process
andimkatili
left a comment
There was a problem hiding this comment.
Thanks for your work Nicolo!
I just have two minor comments (I think..)
There was a problem hiding this comment.
Hi Nicolo. As always, thanks for your work!
I tried to use it and have one comment on the behavior. Currently, if an MP that is under the search tolerance is not found, it will print a warning and continue the simulation as normal. Personally, I would rather to have the process throw an error and stop the simulation, with the same reason why we decide to stop the simulation when the user provided unsuitable number of MP for the generation.
Running an entire simulation and realizing that the MP output is not printed wouldn't be a nice surprise after waiting for it to complete.
I'm not so knowledgeable about the parallelization (especially the MPMMinDistanceReduction), so I can't comment anything about it
Other than that, it looks good!
…_to_python.cpp apply andi's suggestion Co-authored-by: Andi Makarim Katili <68382448+andimkatili@users.noreply.github.com>
…point-output-process
📝 Description
This PR introduces two new output processes (
MPMPointOuputProcessandMPMMultiplePointsOutputProcess)) which enable writing data stored in material point (element/condition) variables to file. This feature thus allows users to monitor the evolution of specific material points during the simulation.The user provides:
For each specified point, the process:
BruteForceMaterialPointLocatorto search for the material point closest to the given coordinates.🆕 Changelog
BruteForceMaterialPointLocatorfor finding the material point element/condition closest to a given point by a specified tolerance value.test_material_point_locator.cpptest_material_point_locator.pygoogle benchmarks) added inKratos/applications/MPMApplication/benchmarks/brute_force_material_point_locator_benchmark.cppMPMPointOuputProcess: output process for writing data from a material point to a file.MPMMultiplePointsOutputProcess: output process for writing data from several material points to different files.test_mpm_point_output_process.pyKratos/docs/pages/Applications/MPM_Application/Output_Processes