ChangeLumpedMass

class sharpy.generators.modifystructure.ChangeLumpedMass(var_index, file)[source]

Lumped Mass to be modified

The arguments are parsed as items of the list in the settings for variable_index and file_list. For those variables marked where change_variables = 'lumped_mass'.

The file should contain a time varying series with the following 10 columns:

  • Lumped mass

  • Lumped mass position in the material frame B (3 columns for xb, yb and zb)

  • Lumped mass inertia in the material frame B (6 columns for ixx, iyy, izz, ixy, ixz and iyz.

Not all 10 columns are necessary in the input file, missing columns are ignored and left unchanged. There should be one row per time step. If there are not enough entries for the number of time steps in the simulation, the changed variable value remains unchanged after all rows have been processed.

Parameters
  • var_index (int) – Index of lumped mass. NOT the lumped mass node.

  • file (str) – Path to file containing time history of the lumped mass.

load_file()[source]

Sets self.target_value by reading from the file.

If the input does not have as many columns as needed (10), these get padded with the original value such that they are not changed at runtime.