MechanicalLauncher#

class ansys.mechanical.core.launcher.MechanicalLauncher(batch, port, exe_path, additional_args=None, additional_envs=None, verbose=False)#

Launches Mechanical in batch or UI mode.

Overview#

launch

Launch Mechanical with the gRPC server.

verify_path_exists

Throw an exception if the given exe_path does not exist.

Import detail#

from ansys.mechanical.core.launcher import MechanicalLauncher

Attribute detail#

MechanicalLauncher.batch#
MechanicalLauncher.port#
MechanicalLauncher.exe_path#
MechanicalLauncher.additional_args#
MechanicalLauncher.additional_envs#
MechanicalLauncher.verbose#

Method detail#

MechanicalLauncher.launch()#

Launch Mechanical with the gRPC server.

static MechanicalLauncher.verify_path_exists(exe_path)#

Throw an exception if the given exe_path does not exist.

Parameters:
exe_pathstr

Path to verify.