wecopttool.core.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*ncomponentswhere the number of DOFs (NDOF) is the length ofscale_list. The firstncomponentsentries have the value of the first scalescale_list[0], the nextncomponentsentries have the value of the second scalescale_list[1], and so on.