# Superposition effect

**URL:** <https://discourse.paraview.org/t/superposition-effect/10950>\
**Category:** ParaView Support\
**Created:** [December 8, 2022, 2:41pm UTC](https://discourse.paraview.org/t/superposition-effect/10950 "2022-12-08T14:41:26Z")\
**Posts on this page:** 1\
**Showing post:** 17

<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:** [December 8, 2022, 9:37pm UTC](https://discourse.paraview.org/t/superposition-effect/10950/17 "2022-12-08T21:37:05Z")

</div>

Here are the full steps of what I did:

1. Add `PassArrays` to both A and B inputs and remove all the arrays except for `von Mises Stress`. This is optional, but made things a little easier later.
2. Add `RenameArrays` to both A and B pipelines to rename the fields to `A von Mises Stress` and `B von Mises Stress`, respectively. This makes it possible to differentiate the two arrays as we start combining the fields into one mesh.
3. Add the `Resample With Dataset` filter. Set the `Source Data Arrays` input to the A pipeline and the `Destination Mesh` to the B pipeline. I chose the B pipeline for the destination mesh because there are small parts of the A mesh outside of the B mesh, so the resample worked better to apply to the B mesh.
4. The result of `Resample With Dataset` now has `A von Mises Stress` on the B mesh. To get the B fields back, select both the `ResampleWithDataset` and the `RenameArrays` for the B pipeline in the pipeline browser and add the `Append Attributes` filter. This will combine both fields into a single mesh, which is the whole point of this exercise.
5. Add the `Calculator` filter to `AppendAttributes`. To get the max stress, set the expression to `max("A von Mises Stress", "B von Mises Stress")`. To get the sum, set the expression to `"A von Mises Stress" + "B von Mises Stress"`.

---

_[View the full topic](https://discourse.paraview.org/t/superposition-effect/10950)._
