Skip to content

Support setting laziness input to MAPDL mesh provider on model creation #2798

@FedericoNegri

Description

@FedericoNegri

Description of the feature

I'd like to query the newly added unsupported_apdl_element_type property field.

Currently I only found a hacky way to force read it

model = dpf.Model(FILE_PATH)

info = model.metadata.result_info # for small models, this causes a mesh read I believe (may depend on buffer size)
model.metadata._cache_streams_provider() # reset the stream provider to clear the mesh 

op = dpf.operators.mesh.mesh_provider(
    streams_container=model.metadata.streams_provider,
)
laziness = dpf.DataTree({"unsupported_apdl_element_type": 1})
op.inputs.laziness(laziness)
 
_ = op.outputs.mesh()
 
mesh = model.metadata.meshed_region # this now contains the unsupported_apdl_element_type prop field 

We should better expose it.

Steps for implementing the feature

No response

Useful links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions