# Volume representation of CalculiX results

**URL:** https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752
**Category:** ParaView Support
**Created:** [August 3, 2021, 12:34pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752 "2021-08-03T12:34:48Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [August 3, 2021, 12:34pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/1 "2021-08-03T12:34:48Z")

</div>

Hi,

I’m a new user of ParaView. I know the basics but I can’t figure out if there’s a way to use volume representation for FEA results obtained with CalculiX solver. Specifically, I have some test results from FreeCAD FEM module which utilizes CalculiX as its main solver. Some of the ParaView functions are built into this module as well. However, to obtain a classic contour plot of the results (with legend) one has to use the pipeline feature which allows only for surface representation and the legend itself includes results only from the surface (while in some cases max/min values might occur inside the model). I thought that exporting the results in vtk format to ParaView might help as this software offers many more functionalities. But it seems that the same issue is present here as well - I can do some view cuts with filters but it’s still a surface representation with legend. Available types of representations don’t include anything like a volume plot:

![rep](https://discourse.paraview.org/uploads/default/original/2X/6/6e81555c8853308678c5f7ea76d5bc537d7fcd9e.png)

Is there a way to bypass this limitation ? Or am I wrong about the way those ParaView contour plots work ?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 12:37pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/2 "2021-08-03T12:37:13Z")

</div>

Your screenshot does include Volume Representation, why not using it ?

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [August 3, 2021, 12:40pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/3 "2021-08-03T12:40:02Z")

</div>

I forgot to comment on that. The volume representation listed here is something different than what I want to achieve. I would like to generate a contour plot that looks like a surface one (since we can see only the surface unless we do the cut) but its legend accounts for values inside the model. That’s how a typical postprocessing is done in pretty much all FEA software.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 12:40pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/4 "2021-08-03T12:40:35Z")

</div>

Do you have a screenshot of a typical render of what you are looking for ?

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [August 3, 2021, 12:46pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/5 "2021-08-03T12:46:09Z")

</div>

Yeah, sure. Something like that:

 ![example.PNG](https://discourse.paraview.org/uploads/default/original/2X/2/2d50db0f6eab8a156438b79d382e3e03d7bcb59b.jpeg)

It looks like a surface representation but the legend accounts for values inside the model. And if you were to hide some mesh elements from the display, you would see the colors inside.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 1:05pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/6 "2021-08-03T13:05:30Z")

</div>

You can get that by using Shrink filter with a shrink factor of 1.

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [August 3, 2021, 1:18pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/7 "2021-08-03T13:18:24Z")

</div>

I’m actually confused how this request is different from the normal surface representation. If you have a volume, choose the surface representation, and then color it by a field value, the legend will be scaled, by default, to the values throughout the mesh.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 1:27pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/8 "2021-08-03T13:27:09Z")

</div>

Absolutely correct. Not sure why I thought that shrink was necessary.

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [August 3, 2021, 1:31pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/9 "2021-08-03T13:31:41Z")

</div>

@mwestphal Thanks, it seems to work 🙂

@Kenneth_Moreland I was told that this is how a pipeline plot implemented in the FreeCAD FEM module (the only way to obtain contour plots with legend in that software) works. But maybe it’s not the case or ParaView has different surface representations with legends accounting for internal values. Then it would be enough for me to export vtk results after simulations.

Anyway, is it possible to hide a few selected elements from the display in ParaView (to look inside the model) ? This would probably require some tricks as surface representation won’t work.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 3, 2021, 1:32pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/10 "2021-08-03T13:32:36Z")

</div>

- Select the element you want to hide
- Edit → FindData
- InvertSelection
- Extract Selection filter

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [August 3, 2021, 1:45pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/11 "2021-08-03T13:45:00Z")

</div>

Thank you, it works just as expected.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [August 3, 2021, 2:28pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/12 "2021-08-03T14:28:39Z")

</div>

If you don’t want the color legend to included values inside the volume in the color legend range computation, you could run the **Extract Surface** filter first to extract out only the out surface elements and associated data.

---

<div class="post-metadata">

### Author: ![FEngineer](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/5f8ce5/32.png) [@FEngineer](https://discourse.paraview.org/u/FEngineer)
#### Post date: [August 3, 2021, 5:03pm UTC](https://discourse.paraview.org/t/volume-representation-of-calculix-results/7752/13 "2021-08-03T17:03:38Z")

</div>

That’s actually opposite to what I wanted to achieve but it’s good to know that trick as well. Thank you.
