optiwindnet.synthetic¶

Module Contents¶

optiwindnet.synthetic.L_from_synthetic(RootC: optiwindnet.geometric.CoordPairs, TerminalC: optiwindnet.geometric.CoordPairs, BorderC: optiwindnet.geometric.CoordPairs | None = None, name: str = '', handle: str = 'synthetic') networkx.Graph[source]¶

Special version of L_from_site() for the synthetic location geometry generator.

Example::
def make_tess(radius=5600, spacing=1000):

NodeC = equidistant(radius, center=’centroid’, spacing=spacing) RootC = np.array((0.0, 0.0)) return L_from_synthetic(RootC, NodeC, name=’SynthTess’, handle=’tess’)

optiwindnet.synthetic.equidistant(radius: float, center: str = 'centroid', spacing: float = 1.0) optiwindnet.geometric.CoordPairs[source]¶

Create coordinates for the vertices of a regular triangular tiling.

Parameters:
  • radius – of the circular area to cover

  • center – one of {‘centroid’, ‘vertex’} centroid: The coordinate origin is in the centroid of the central triangle. vertex: The coordinate origin a vertex of the tiling.

  • spacing – the triangle’s side

Returns:

Array of coordinates of the tiling’s vertices.