nemocrys / pyelmer

A python interface to Elmer.
GNU General Public License v3.0
53 stars 15 forks source link

Add "names" to sif #34

Open arvedes opened 11 months ago

arvedes commented 11 months ago

It would be nice to include the name of the Body, Boundary, etc., in the sif file not only as a comment but in the form:

Body 1
    Name = <Body.name>
    (...)
End

It enables, e.g., a better output using Vtu Part collection = True in ResultOutputSolver.

It has already been implemented for the new Component class: https://github.com/nemocrys/pyelmer/blob/56cfe2d29b6994e0a73bb6102bf909cea9f53672/pyelmer/elmer.py#L411-L415

The other classes and the corresponding tests need to be adjusted similarly.