Renaming Objects#

Construction Zone

Objects can be assigned custom names at or after instantiation. To assign a name at instantiation, simply assign a str to the name keyword argument in any of the add_<object-name> methods of a GeometryCollection. For example, to name the point \((1,0)\) as a trailing edge, use

from pymead.core.geometry_collection import GeometryCollection

geo_col = GeometryCollection()
geo_col.add_point(1.0, 0.0, name="TrailingEdge")

Or, equivalently,

from pymead.core.geometry_collection import GeometryCollection

p1 = geo_col.add_point(1.0, 0.0)
p1.set_name("TrailingEdge")