Skip to content

ldallolio/medpro

Repository files navigation

MEDPro (MED post PROcessing)

image

Medcoupling based post processing tools

This project has been created to simplify the manipulation of MED files.

Code examples:

import medpro

# Read a med file, extract mesh, field, group information
fp = medpro.MEDFilePost("./tests/examples/box_with_depl.rmed")
mesh = fp.meshes_by_name["mesh"]
g1 = mesh.get_group_by_name("G1")
depl_evol = fp.fieldevols_by_name["reslin__DEPL"]

# Extract a subpart of a field based on a group 
depl_g1 = depl_evol.extract_group("G1")

# Create a new MED file, write it back
fpnew = medpro.MEDFilePost()
fpnew.add_fieldevol(depl_g1)
fpnew.write("/tmp/output.rmed")

About

Medcoupling based post processing tools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages