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
Description of the feature
Take a look at https://github.com/ansys/pydpf-core/blob/main/src/ansys/dpf/core/support.py. The class
Supportis used to abstract the concept of Support in DPF, that can be then implemented through aMeshedRegion, aTimeFreqSupport, aCyclicSupportor as aGenericSupport(for now).Ideally, the relationship here should be of inheritance, however the only class of the list before that inherits from
Supportis theGenericSupport, 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