FEM: add some comments to material and calculix solver object

This commit is contained in:
Bernd Hahnebach
2020-05-24 09:19:27 +02:00
parent b950ef9508
commit a5b0be0b4c
2 changed files with 32 additions and 0 deletions

View File

@@ -67,3 +67,22 @@ class MaterialCommon(base_fempythonobject.BaseFemPythonObject):
)
obj.Category = ["Solid", "Fluid"] # used in TaskPanel
obj.Category = "Solid"
"""
Some remarks to the category. Not finished, thus to be continued.
Following question need to be answered:
Why use a attribute to split the object? If a new fem object is needed,
a new fem object should be created. A new object will have an own Type
and will be collected for the writer by this type.
The category should not be used in writer! This would be the border.
If an fem object has to be distinguished in writer it should be an own
fem object.
The category is just some helper to make it easier for the user to
distinguish between different material categories.
It can have own command, own icon, own make method. In material TaskPanel
it can be distinguished which materials will be shown.
ATM in calculix writer the Category is used. See comments in CalculiX Solver.
"""