ansys / pydpf-core

Data Processing Framework - Python Core
http://dpf.docs.pyansys.com/
MIT License
64 stars 23 forks source link

Add operator for creep strain. APDL result = EPCR #1200

Open MichaelBThompson opened 8 months ago

MichaelBThompson commented 8 months ago

Description of the feature

operator for creep strain. APDL result = EPCR

Steps for implementing the feature

create an operator

Useful links and references

No response

PProfizi commented 8 months ago

Hi @MichaelBThompson I think this operator may already exist even though it is not exposed right now. Could you try instantiating the operator for creep strains for an active model with creep strains available using: creep_strain_operator = model.operator("ECR") You should then be able to use it to extract the result just like for any other operator. If you could let me know if this is what you are looking for then I could make the required changes to make it public.

MichaelBThompson commented 4 months ago

@PProfizi , I tried to create this operator but I go this error:

from ansys.dpf import core as dpf rst_path = <my creep .rst path here> my_model=dpf.Model(rst_path) creep_op=my_model.operator("ECR")

KeyError: "The operator ECR doesn't exist in the registry. Check its spelling in the documentation or verify its availability in your loaded plugins. The current available operator names can be accessed using 'available_operator_names' method."

Can you give some more context/instructions on how I can check this?

FYI, I also tried to do this in Mechanical in V23.2.. DPF_Model = dpf.Model(Model.Analyses[0].ResultFileName) ECR = DPF_Model.CreateOperator("ECR") Out = ECR.Run()

Operator_run error : - operator pointer null-