MachineAsync (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Machine/MachineAsync
-
class
MachineAsync
(frame=-1, shaft=-1, name='default_machine', desc='', type_machine=1, logger_name='Pyleecan.Machine', init_dict=None, init_str=None)[source]¶ Bases:
pyleecan.Classes.Machine.Machine
Abstract class for asynchronous machines
-
VERSION
= 1¶
-
is_synchronous
()¶ Return if a machine is synchronous or not
- Parameters
self (MachineAsync) – A MachineAsync
- Returns
is_synchronous – Asynchronous machines are not synchronous
- Return type
bool
-
comp_desc_dict
()¶ Compute a dictionnary with the main parameters/output of the machine
- Parameters
self (Machine) – A Machine object
- Returns
desc_dict – list of dictionnary containing the main parameters of the machine
- Return type
list
-
save
(save_path='', is_folder=False)¶ Save the object to the save_path
- Parameters
self – A pyleecan object
save_path (str) – path to the folder to save the object
is_folder (bool) – to split the object in different files: separate simulation machine and materials
-
copy
()¶ Return a copy of the class
-
get_logger
()¶ Get the object logger or its parent’s one
- Parameters
obj – A pyleecan object
- Returns
logger – Pyleecan object dedicated logger
- Return type
logging.Logger
-