Functions namespace

Functions.Debug module

Functions.Debug.PlotCircles(CirclesDistrib, R, XBd, YBd, D1, D2)[source]

Functions.FEM module

Functions.FEM.CreateDummyString()[source]

Functions.Geometry module

Functions.Geometry.OvalDistribution(yarnR, Setup='Hex', R1=None, R2=None, SparsingCoeff=0, Remove_Not_Selected=True)[source]

This function returns an array of coordinates similarly to circle packing, the objective is to fit circles (fibers) is a specific shape

Valid arguments for Setup are: “Hex” and “Square”

Functions.Geometry.cart2polar(x, y)[source]
Functions.Geometry.circlespace(xC, yC, radius, n)[source]
Functions.Geometry.circlespacking(R, yarnR, SparsingCoeff=0)[source]
Functions.Geometry.polar2cart(rho, phi)[source]
Functions.Geometry.theta(i, Ri, Rt, angle, L, NbSeg)[source]

Functions.Meta module

Functions.Meta.CreatePath(PathTypeKey, *args, **kwargs)[source]

Functions.linalg module

Functions.linalg.ExtractRotationMatrix(Base_1, Base_0=None)[source]
Functions.linalg.Get_angle(Vector1, Vector2, Rad_or_Deg='Rad')[source]

This function returns the angle (rad) between two vectors input: Vector1 (numpy array or list) and Vector2 (numpy array or list) output: angle between the two (float)

Optional parameter: Rad_or_Deg, default to Rad, defines if the angle should be returned in radians or degrees

Functions.linalg.RotVect_to_RotMat(Vect)[source]

input: rotation vector of shape 1x3 output: rotation matrix 3x3