Force (class)

Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/Force

class Force(is_comp_nodal_force=False, is_periodicity_t=False, is_periodicity_a=False, 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}

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

as_dict()[source]

Convert this object in a json seriable dict (can be use in __init__)

property is_comp_nodal_force

1 to compute lumped tooth forces

Type

bool

property is_periodicity_t

True to compute only on one time periodicity (use periodicities defined in output.force.Time)

Type

bool

property is_periodicity_a

True to compute only on one angle periodicity (use periodicities defined in output.force.Angle)

Type

bool