vec

MapdlMath.vec(size=0, dtype=<class 'numpy.float64'>, init=None, name=None)

Create a vector.

Parameters
  • size (int) – Size of the vector

  • dtype (np.dtype, optional) – Datatype of the vector. Must be either np.int32, np.int64, or np.double.

  • init (str, optional) – Initialization options. Can be "ones", "zeros", or "rand".

  • name (str, optional) – Give the vector a name. Otherwise one will be automatically generated.

Returns

vector (ansys.mapdl.math.AnsVec) – Ansys Vector