pymem3dg.boilerplate.prescribePeriodicForceOnCylinder

pymem3dg.boilerplate.prescribePeriodicForceOnCylinder(vertexPositions: ndarray[Any, dtype[float64]], vertexDualAreas: list, time: float, geodesicDistance: list, Kf: float, freq: float)

prescribe a periodic external force profile on a tubular structure

Parameters:
  • vertexPositions (npt.NDArray[np.float64]) – vertex position matrix of the mesh

  • vertexDualAreas (list) – vertex dual area. Unused

  • time (float) – time of the simulation. Unused

  • geodesicDistance (list) – geodesic distance centered at the vertex

  • Kf (float) – force magnitude coefficient. Kf = 1 means that the average force = 1, with high = 2 and low = 0

  • freq (float) – normalized wavenumber of the periodicity. There are #freq cycles along the entire height of the structure

Returns:

vertex force

Return type:

npt.NDArray[np.float64]