Skip to content

DPF does not read 'PERX', 'PERY' and 'PERZ' properties? #2350

Open
@germa89

Description

@germa89

I have ran the vm231 in PyMAPDL and obtained the RST file:

from ansys.mapdl.core import launch_mapdl
from ansys.mapdl.core.examples import vmfiles

mapdl = launch_mapdl()
mapdl.input(vmfiles['vm231'])
mapdl.save()
print(mapdl.result_file)

This VM defines a material such as (mapdl.mplist()).

LIST MATERIALS        1 TO        1 BY        1
  PROPERTY= ALL 

 MATERIAL NUMBER        1

      TEMP        PERX
                728.5000    

      TEMP        PERY
                634.7000    

      TEMP        PERZ
                728.5000

I am attached the RST file:

perm.rst.zip

When I try to read that PERX values I obtain zero:

import ansys.dpf.core as dpf

model = dpf.Model('perm.rst')

full_mesh = model.metadata.meshed_region
mats = full_mesh.property_field("mat")

mat_prop = dpf.operators.result.mapdl_material_properties()
mat_prop.inputs.materials.connect(mats)

props = ["PERX"]
mat_prop.connect(0, props) # error
mat_prop.inputs.data_sources.connect(model)
prop_field = mat_prop.outputs.properties_value.get_data()
assert prop_field[0].data != 0, "The perm is zero"
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
Cell In[5], line 1
----> 1 assert prop_field[0].data != 0, "The perm is zero"

AssertionError: The perm is zero

Am I missing something? or doing something wrong?

Metadata

Metadata

Labels

mapdlRelative to the DPF plugin for MAPDLquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions