wecopttool.scale_dofs
- scale_dofs(scale_list, ncomponents)[source]
Create a scaling vector based on a different scale for each DOF.
Returns a 1D array of length
NDOF*ncomponents
where the number of DOFs (NDOF
) is the length ofscale_list
. The firstncomponents
entries have the value of the first scalescale_list[0]
, the nextncomponents
entries have the value of the second scalescale_list[1]
, and so on.