InputFlux (class)¶
Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Simulation/InputFlux
-
class
InputFlux
(per_a=1, per_t=1, is_antiper_a=False, is_antiper_t=False, B_dict=None, unit=None, OP=None, N0=None, time=None, angle=None, Nt_tot=2048, Nrev=1, Na_tot=2048, init_dict=None, init_str=None)[source]¶ Bases:
pyleecan.Classes.Input.Input
Input to skip the magnetic module and start with the structural one
-
VERSION
= 1¶
-
gen_input
()¶ Generate the input for the structural module (magnetic output)
- Parameters
self (InFlux) – An InFlux object
-
comp_felec
()¶ Compute the electrical frequency
- Parameters
felec (float) – Electrical frequency [Hz]
-
comp_axes
(axes_values, machine=None, N0=None, per_a=1, is_antiper_a=False, per_t=1, is_antiper_t=False)¶ Compute simulation axes, i.e. space DataObject including (anti)-periodicity and time DataObject including (anti)-periodicity and accounting for rotating speed and number of revolutions -> overrides Input comp_axes method
- Parameters
self (InputFlux) – an InputFlux object
axes_values ({ndarray}) – dict of axe values
machine (Machine) – a Machine object
N0 (float) – rotating speed [rpm]
per_a (int) – angle periodicity
is_antiper_a (bool) – if the angle axis is antiperiodic
per_t (int) – time periodicity
is_antiper_t (bool) – if the time axis is antiperiodic
- Returns
axes_dict – dict of Data objects for each axis
- 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
-
property
per_a
¶ Angle periodicity
- Type
int
-
property
per_t
¶ Time periodicity
- Type
int
-
property
is_antiper_a
¶ If angle is antiperiodic
- Type
bool
-
property
is_antiper_t
¶ If time is antiperiodic
- Type
bool
-
property
B_dict
¶ Dict of Import objects or lists for each component of the flux
- Type
dict
-
property
unit
¶ Unit of the flux if not T
- Type
str
-
property
OP
¶ InputCurrent to define Operating Point (not mandatory)
- Type
Input
-
property
N0
¶ Rotation speed
- Type
float
-