Model.convertthermalloads#
- Model.convertthermalloads(source_solver, target_solver, source_card, target_card)#
Converts thermal loads from one solver to another. Currently it converts “FILM” and “SFILM” loads from Abaqus to PCONV group in OptiStruct. It should be used in conjunction with
setoption()retain_loads. This function works when the template is loaded after the model is imported in Abaqus.- Parameters:
source_solver (hwString) – The source solver name. Must be set to Abaqus.
target_solver (hwString) – The target solver name. Must be set to OptiStruct.
source_card (hwString) – The source card to convert from. Can be either “FILM” or “SFILM”.
target_card (hwString) – The target card to convert to. Must be set to “PCONV”.
Example#
Convert loads “FILM” to “PCONV” group#import hm import hm.entities as ent model = hm.Model() hm.setoption(retain_loads=1) model.convertthermalloads( source_solver="Abaqus", target_solver="Optistruct", source_card="FILM", target_card="PCONV", )