ImportGenVectSin (class)

Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Import/ImportGenVectSin

class ImportGenVectSin(f=100, A=1, Phi=0, N=1024, Tf=1, is_transpose=False, init_dict=None, init_str=None)[source]

Bases: pyleecan.Classes.ImportMatrix.ImportMatrix

To generate a Sinus vector

VERSION = 1
get_data()

Generate the sinus vector

Parameters

self (ImportGenVectSin) – An ImportGenVectSin object

Returns

vect – The generated sinus vector

Return type

ndarray

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 f

Frequency of the sinus to generate

Type

float

Min

0

property A

Amplitude of the sinus to generate

Type

float

property Phi

Phase of the sinus to generate

Type

float

Min

-6.29

Max

6.29

property N

Length of the vector to generate

Type

int

Min

0

property Tf

End time of the sinus generation

Type

float

Min

0