# Result visualization for uniaxial loading of a cube with two different maerials

**URL:** <https://fenicsproject.discourse.group/t/result-visualization-for-uniaxial-loading-of-a-cube-with-two-different-maerials/5299>\
**Category:** Uncategorized\
**Created:** [March 13, 2021, 5:39pm UTC](https://fenicsproject.discourse.group/t/result-visualization-for-uniaxial-loading-of-a-cube-with-two-different-maerials/5299 "2021-03-13T17:39:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [March 14, 2021, 4:50pm UTC](https://fenicsproject.discourse.group/t/result-visualization-for-uniaxial-loading-of-a-cube-with-two-different-maerials/5299/2 "2021-03-14T16:50:22Z")

</div>

You are projecting your stress into a CG 1 space, when the stressed are contained in a DG0 space. You should project them into an appropriate function space and use `XDMFFile.write_checkpoint` to write it to a suitable file format for visualization in paraview. See for instance: [When using CG degree 1, the result corresponds to degree 2 - #10 by dokken](https://fenicsproject.discourse.group/t/when-using-cg-degree-1-the-result-corresponds-to-degree-2/2751/10)

---

_[View the full topic](https://fenicsproject.discourse.group/t/result-visualization-for-uniaxial-loading-of-a-cube-with-two-different-maerials/5299)._
