append ( wire ) return wires wires = create_wires_by_rule () geometry = geometry ( wires ) from cst_geometry import Wire, Geometry def create_wires_by_rule (): wires = #. export_geometry is a method for exporting geometry as. create_cst_project is a method for creating a. For initializing Geometry object you should pass a list of Wire objects. Geometry object allows to easily export geometry to CST Microwave Studio or just export. length ) # Returns length of wire Geometry from cst_geometry import Wire x0 = 0 y0 = 0 z0 = 0 x1 = 1 y1 = 1 z1 = 1 radius = 0.5 wire = Wire ( point0 = ( x0, y0, z0 ), point1 = ( x1, y1, z1 ), radius = radius ) print ( wire. point0 and point1 are vectors of cartesian coordinates. As needed after initializing you can use length property. Wire object initialized using start point of wire point0, finish point of wire point1 and its radius radius. Wire objects serves to create Geometry objects. Сreate a CST project directly from a script or notebook.Ĭonvenient data structure for creating your own unique complexįor simple installation use pip: pip install cst-geometry Usageĭuring using scripts or notebooks for creating projects all the CST Microwave studio windows must be closed Wire Then export it into CST Microwave Studio 2021 project using python. It’s a package that allows you to model geometries contain wires and
0 Comments
Leave a Reply. |