Force (class)

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: pyleecan.Classes._frozen.FrozenClass

Forces module abstract object

VERSION = 1
run()

Run the Force module

comp_axes(output)

Compute the axes required in any Force module

Parameters
  • self (Force) – a Force object

  • output (Output) – an Output object (to update)

Returns

axes_dict – Dict containing Time and Angle axes including (anti-)periodicties used in any Force module

Return type

{Data}

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

Parameters
  • self (Force) – a Force object

  • output (Output) – an Output object

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(**kwargs)

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

compare(other, name='self')[source]

Compare two objects and return list of differences

as_dict(**kwargs)[source]

Convert this object in a json serializable dict (can be use in __init__). 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 output.force.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 output.force.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