Hi,
I wanted to create a modal load case from a load combination.
But the "import masses only from .. " option defaults to load case 1
I guess the problem lies on the unavailability of the load combinations.
But it occurs even if, I create the modal load case after running the analysis and the combinations are available.
Another problem is even if i changed the option manually, it gets replaced again when creating additional load cases.
Thanks for your support.
Find the code snippet here
def define_modal_analysis() -> list:
return [
# define modal analysis setting
rfem.loading.ModalAnalysisSettings(
no=3, # 1 and 2 get created automatically
#defining the name parameter causes errors.
number_of_modes=11,
number_of_modes_method=rfem.loading.ModalAnalysisSettings.NumberOfModesMethod.NUMBER_OF_MODES_METHOD_USER_DEFINED,
solution_method=rfem.loading.ModalAnalysisSettings.SolutionMethod.SOLUTION_METHOD_LANCZOS,
mass_matrix_type=rfem.loading.ModalAnalysisSettings.MassMatrixType.MASS_MATRIX_TYPE_CONSISTENT,
acting_masses_about_axis_x_enabled=False,
acting_masses_about_axis_y_enabled=False,
acting_masses_about_axis_z_enabled=True,
acting_masses_in_direction_x_enabled=True,
acting_masses_in_direction_y_enabled=True,
acting_masses_in_direction_z_enabled=True,
),
# modal analysis
rfem.loading.LoadCase(
no=3,
analysis_type=rfem.loading.LoadCase.AnalysisType.ANALYSIS_TYPE_MODAL_ANALYSIS,
modal_analysis_settings=3,
import_masses_from=rfem.object_id_pb2.ObjectId(no=5,object_type=rfem.ObjectType.OBJECT_TYPE_LOAD_COMBINATION),
structure_modification_enabled=True,
structure_modification=1
),
]