Skip to content

Working with work planes #152

@hamdav

Description

@hamdav

This is related to (probably exactly the same as) #135.

I want to create a work plane, create some 2D geometry in here, and then extrude it.

So first: create the model and 3d geometry and a work plane:

client = mph.start()
model = client.create()
model.create('geometries/geometry', 3)
model.create('geometries/geometry/wp1', 'WorkPlane')

When creating a work plane in comsol, a 2D geometry is automatically built (see work plane in https://doc.comsol.com/6.1/doc/com.comsol.help.comsol/COMSOL_ProgrammingReferenceManual.pdf). I can access this and for example create an ellipse with

wp = model/'geometries/geometry/wp1'
wp.java.geom().create('e1', 'Ellipse')

but I don't seem to be able to access it through wp.create('geom/e1', 'Ellipse') or anything else I've tried. Neither it nor the ellipse shows up in mph.tree(model) either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProposal for a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions