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

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.

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

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 (4.5 MB)

Pease if someone can help how to solve this problem.

Much thanks and Regards

Anirudh Nehra

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”

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 (451.0 KB)

Much thanks and Regards

Anirudh Nehra

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.

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