Skip to content

Automatically make physical groups from existing tags #2

@nicola-sorace

Description

@nicola-sorace

It is common to create gmsh physical groups from existing cadquery tags:

with GeometryQL() as geo:
    geo = (
        geo.load(geom)
        .faces(tag="blade").addPhysicalGroup("blade").end()
        .faces(tag="domain-sides").addPhysicalGroup("domain-sides").end()
        .faces(tag="domain-top").addPhysicalGroup("domain-top").end()
        .faces(tag="domain-bottom").addPhysicalGroup("domain-bottom").end()
    )

It would often make sense for all tags to be transferred automatically. In cases where this is not desirable it could be enabled/disabled via a flag. Could also ignore tags that start with _.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions