f3dasm_simulate.abaqus.simulator.AbaqusSimulator

class AbaqusSimulator(simulation_info, folder_info, abaqus_info)[source]

Bases: DataGenerator

List of Public Methods

execute

Function that calls the FEM simulator the pre-processing

kill_abaqus_process

kill abaqus simulation process

make_new_script

rtype:

None

post_process

post process

pre_process

Function that handles the pre-processing

read_back_results

rtype:

dict

remove_files

remove file

run

run the simulation

Methods

_create_working_folder(folder_index=None, sub_folder_index=None, third_folder_name=None)[source]

create folders for excuting abaqus simulations

Parameters:
  • folder_index (int, optional) – first folder index , by default None

  • sub_folder_index (_type_, optional) – second folder index , by default None

  • third_folder_index (_type_, optional) – third folder index, by default None

Raises:
Return type:

None

execute(max_time=None, sleep_time=20.0, refresh_time=5.0)[source]

Function that calls the FEM simulator the pre-processing

Return type:

str

static kill_abaqus_process()[source]

kill abaqus simulation process

Return type:

None

post_process(delete_odb=True)[source]

post process

Parameters:

delete_odb (bool, optional) – delete odb file to save memory, by default True

Return type:

None

pre_process(folder_index=None, sub_folder_index=None, third_folder_name='case_0')[source]

Function that handles the pre-processing

Return type:

None

static remove_files(directory, file_types=['.log', '.lck', '.SMABulk', '.rec', '.SMAFocus', '.exception', '.simlog', '.023', '.exception'])[source]

remove file

Parameters:
  • directory (str) – target folder

  • file_type (str) – file name

Return type:

None

run(main_folder, *args)[source]

run the simulation

Return type:

dict