Fem: Add support for cyclic symmetry - fixes #12155

This commit is contained in:
marioalexis
2024-02-08 00:42:10 -03:00
committed by Chris Hennes
parent 9695bf01b8
commit dfbc90d351
3 changed files with 116 additions and 17 deletions

View File

@@ -47,3 +47,19 @@ class BaseFemPythonObject(object):
def loads(self, state):
return None
class _PropHelper:
"""
Helper class to manage property data inside proxy objects.
Initialization keywords are the same used with PropertyContainer
to add dynamics properties plus "value" for the initial value.
"""
def __init__(self, **kwds):
self.value = kwds.pop("value")
self.info = kwds
self.name = kwds["name"]
def add_to_object(self, obj):
obj.addProperty(**self.info)
setattr(obj, self.name, self.value)