# Club two fields with same mesh support into one from .med file

**URL:** https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537
**Category:** ParaView Support
**Created:** [April 27, 2026, 3:06am UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537 "2026-04-27T03:06:09Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![anirudhnehra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anirudhnehra/32/16804_2.png) [@anirudhnehra](https://discourse.paraview.org/u/anirudhnehra)
#### Post date: [April 27, 2026, 3:06am UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/1 "2026-04-27T03:06:09Z")

</div>

Hello,

Thanks for putting effort to create paraview.

I use salome\_meca to create rmed files that I wish to read in paraview.

The issue is that sometimes med are created with many distinct “ComSup’“ by code\_aster as shown below.

 ![seperate](https://discourse.paraview.org/uploads/default/original/3X/b/2/b24ecb68f6452ebbdb50008c3da12cbf35656503.png)

Here both cannot be selected simultaneously. Ideally I wish both to be clubbed/joined together as One Point Field like below.

 ![together](https://discourse.paraview.org/uploads/default/original/3X/4/b/4bf3a193e20a98bc6c1e074bcd1d5740e23a2e24.png)

So that I can use “Warp by Vector” filter of paraview to animate stress contours(result\_SIEQ\_NOEU) while the mesh is deformed by result\_DEPL vector for all time steps.

Both fields have same mesh.

I have tried various techniques like Append Attributes, Group datasets, Resample with dataset etc. but could not achieve the above result. Some results with partial\_prefix is created but when “Warp by Vector” is used , the drop down doesn’t have result\_DEPL.

Tried with paraview latest as well as old versions.

I attach sample med file here with distinct fields.

[example\_paraview\_forum.med](https://discourse.paraview.org/uploads/short-url/4G0ynNGjie7Zfm5N6Dm1Y9dtg3.med) (4.5 MB)

Pease if someone can help how to solve this problem.

Much thanks and Regards

Anirudh Nehra

---

<div class="post-metadata">

### Author: ![anirudhnehra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anirudhnehra/32/16804_2.png) [@anirudhnehra](https://discourse.paraview.org/u/anirudhnehra)
#### Post date: [April 27, 2026, 4:01am UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/2 "2026-04-27T04:01:51Z")

</div>

Update:

It is working now using resample with dataset .Isurely missed the check box like pass field arrays . Selected all of those and it worked.

I have another issue.I also used CAST3M FEA software to export results of a simulation “PASAPAS” using “SORT MED” function. It creates a med file with again distinct fields as shown below. One is ELNO field called “CONTRAINTES”, Others are distinct Point field called “DEPLACEMENTS”, “ACCELERATIONS“, “VITESSES”

 ![cast3m](https://discourse.paraview.org/uploads/default/original/3X/0/8/08d90914af3a7ac2b95edfc22717b9978e00bead.png)

How can I join distinct fields also as requested above? Specifically merging ELNO cell fields and Point fields. So that I get all as Point Fields Under just one ComSup.

Attaching a sample med output file from cast3m

[pp.med](https://discourse.paraview.org/uploads/short-url/5B4AYrW9n0Lr5XdN1C2s4cvCwbK.med) (451.0 KB)

Much thanks and Regards

Anirudh Nehra

---

<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: [May 4, 2026, 3:11pm UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/3 "2026-05-04T15:11:45Z")

</div>

Hi @anirudhnehra

Please note the MEDReader plugin is not maintained by ParaView maintainers but by the salome team.

Looking quickly at it it doesnt look like the reader can read both at the same time, however you could open the file multiple times and then use AppendAttributes filters.

---

<div class="post-metadata">

### Author: ![anirudhnehra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anirudhnehra/32/16804_2.png) [@anirudhnehra](https://discourse.paraview.org/u/anirudhnehra)
#### Post date: [May 13, 2026, 8:05am UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/4 "2026-05-13T08:05:24Z")

</div>

Hi,

thanks for the reply.

However, As I told before, Append Attributes filter does not work in any case. You can try with the attached .med file.

Resample with Dataset worked with all check boxes checked for arrays.

Still I would have preferred Append attributes to work since both fields have same mesh support.

I have a query.Resampling with Dataset is essentially same as Append Attributes for same mesh? Because I don’t want change of field values due to interpolation(or normalisation) during resampling.

Regards

Anirudh

---

<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: [May 20, 2026, 12:01pm UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/5 "2026-05-20T12:01:54Z")

</div>

You can use `ResampleWithDataset1` like this:

[state.pvsm](https://discourse.paraview.org/uploads/short-url/wiaNNNEfBiGQkYx4dyZtEvbbbc9.pvsm) (503.7 KB)

---

<div class="post-metadata">

### Author: ![anirudhnehra](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anirudhnehra/32/16804_2.png) [@anirudhnehra](https://discourse.paraview.org/u/anirudhnehra)
#### Post date: [September 11, 2026, 10:10pm UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/6 "2026-09-11T22:10:21Z")

</div>

Hello,

Thank you for response.

I tried with the provided state.pvsm

But it drew a blank and I couldn’t see anything. Could you try with the an .rmed file [here](https://www.dropbox.com/scl/fi/74pzocbay3kqegdn92q3p/stage1.rmed.tar.gz?rlkey=60tsyia2dk5sgpgpr19rr3qzi&st=0jzarpj7&dl=0)

This file has two seperate fields (one with 5 components like STA\_NL\_DEPL, STA\_NL\_SIEQ\_NOEU etc) and other with CONT\_NOEU. I wasn’t able to join them together into 1 object.(SO I can view CONT\_NOEU while making it warp by using STA\_NL\_DEPL filed)

Again as a side note, I have tried resampling on smaller .rmed before and it worked sometimes. But the results were inaccurate. Some white patches are created on result output(all data pass arrays checkboxes were on)

Thanks and Regards

Anirudh Nehra

---

<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: [September 16, 2026, 11:48am UTC](https://discourse.paraview.org/t/club-two-fields-with-same-mesh-support-into-one-from-med-file/17537/7 "2026-09-16T11:48:56Z")

</div>

Seems to work here:

[state.pvsm](https://discourse.paraview.org/uploads/short-url/6WJmtQgn9lS4gu8CA8o7zJs1RSy.pvsm) (481.3 KB)

 ![image](https://discourse.paraview.org/uploads/default/original/3X/5/e/5e64218aeb2509258b45dc805c7d350c2a4362ea.png)
