Skip to content

Refactor the relationships between the Support class and the different types of Support #3159

@rafacanton

Description

@rafacanton

Description of the feature

Take a look at https://github.com/ansys/pydpf-core/blob/main/src/ansys/dpf/core/support.py. The class Support is used to abstract the concept of Support in DPF, that can be then implemented through a MeshedRegion, a TimeFreqSupport, a CyclicSupport or as a GenericSupport (for now).

Ideally, the relationship here should be of inheritance, however the only class of the list before that inherits from Support is the GenericSupport, which forces to do a lot of ifs based on the support type, which is not a good pattern. This should be refactored.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions