kqcircuits.simulations.simulation_from_cell
- kqcircuits.simulations.simulation_from_cell.simulation_from_cell(cell, margin=300, grid_size=1, box=None, ports=None, **kwargs)[source]
Returns a Simulation created from an existing cell.
- Parameters:
cell – existing top cell for the Simulation
margin – distance (μm) to expand the simulation box (ground plane) around the bounding box of the cell. If the ‘box’ argument is given, margin is ignored.
grid_size – size of the simulation box will be rounded to this resolution. If the ‘box’ argument is given, margin is ignored.
box – the simulation box, or None to defined box from the bounding box of the cell.
ports – optional list of Port to assign to the simulation. Pass this when the ports are determined from the existing geometry, since the default build does not add ports.
**kwargs – any simulation parameters passed
- Returns:
an instance of Simulation subclass