Specification of losses with closed clutch

Symbol -
Unit -
Attribute-ID switch_loss_specification_closed_clutch
Numeric ID 201983
Value Type PMString

The loss to be considered can either be directly specified or interpolated based on the shaft speed and lubricant viscosity.

The torque loss map must be filled in using a script. Example script:

let components = getCompByType("clutch");
for (let i = 0; i < components.length; i++){
    let component = components[i];
    setAttr("switch_loss_specification", component, "loss_torque_map", EDAT);
    let speeds = [1000, 2000, 3000];
    let viscosities = [11, 50, 100, 500];
    let map = [ [1.0, 2.0, 3.0, 4.0],
                       [5.0, 6.0, 7.0, 8.0],
                       [9.0, 10.0, 11.0, 12.0] ];
    setAttr("loss_torque_map_closed_clutch", component, map, EDAT);
    setAttr("shaft_speeds_for_loss_torque_map_closed_clutch", component, speeds, EDAT);
    setAttr("lubricant_viscosities_for_loss_torque_map_closed_clutch", component, viscosities, EDAT);
}