pyleecan.Classes.Force module¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/Force
- class Force(is_periodicity_t=None, is_periodicity_a=None, is_agsf_transfer=False, max_wavenumber_transfer=None, Rsbo_enforced_transfer=None, logger_name='Pyleecan.Force', init_dict=None, init_str=None)[source]¶
Bases:
FrozenClass
Forces module abstract object
- VERSION = 1¶
- run()¶
Run the Force module
- comp_axes(output)¶
Compute the axes required in any Force module
- comp_AGSF_transfer(output, rnoise=None)¶
Method to compute Air-Gap Surface Force transfer from middle air-gap radius to stator bore radius.
- From publication:
PILE, Raphaël, LE BESNERAIS, Jean, PARENT, Guillaume, et al. Analytical study of air-gap surface force–application to electrical machines. Open Physics, 2020, vol. 18, no 1, p. 658-673. https://www.degruyter.com/view/journals/phys/18/1/article-p658.xml
- save(save_path='', is_folder=False, type_handle_old=2, type_compression=0)¶
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 (json only)
type_handle_old (int) – How to handle old file in folder mode (0:Nothing, 1:Delete, 2:Move to “Backup” folder)
type_compression (int) – Available only for json, 0: no compression, 1: gzip
- 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
- compare(other, name='self', ignore_list=None, is_add_value=False)[source]¶
Compare two objects and return list of differences
- as_dict(type_handle_ndarray=0, keep_function=False, **kwargs)[source]¶
Convert this object in a json serializable dict (can be use in __init__). type_handle_ndarray: int
How to handle ndarray (0: tolist, 1: copy, 2: nothing)
- keep_functionbool
True to keep the function object, else return str
Optional keyword input parameter is for internal use only and may prevent json serializability.
- property is_periodicity_t¶
True to compute only on one time periodicity (use periodicities defined in axes_dict[time]). If None, automatically calculated based on Magnetics periodicities.
- Type:
bool
- property is_periodicity_a¶
True to compute only on one angle periodicity (use periodicities defined in axes_dict[angle]). If None, automatically calculated based on Magnetics periodicities.
- Type:
bool
- property is_agsf_transfer¶
True to compute the AGSF transfer from air-gap to stator bore radius.
- Type:
bool
- property max_wavenumber_transfer¶
Maximum value to apply agsf transfer (to be used with FEA to avoid numerical noise amplification)
- Type:
int
- property Rsbo_enforced_transfer¶
To enforce the value of the radius for AGSF transfer
- Type:
float
- property logger_name¶
Name of the logger to use
- Type:
str