Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MagedMohamedTurk/Turbomachinery-Rotors-Balancing
/ functions
Functions
105 in github.com/MagedMohamedTurk/Turbomachinery-Rotors-Balancing
⨍
Functions
105
◇
Types & classes
9
↓ 41 callers
Method
add
Method to add new values for Alpha instance either the direct_matrix is needed or ALL of (A, B, U) Args: direct_m
src/hsbalance/CI_matrix.py:33
↓ 13 callers
Method
add
Method to add a new condition Args: alpha: Alpha class instance A: Initial vibration column array -> numpy ar
src/hsbalance/CI_matrix.py:210
↓ 13 callers
Method
solve
solving the LMI model returns solution matrix W
src/hsbalance/model.py:404
↓ 9 callers
Method
info
(self)
src/hsbalance/model.py:290
↓ 9 callers
Method
rmse
Returns the root mean squares from tools module
src/hsbalance/model.py:75
↓ 6 callers
Function
get_tests_from_yaml
Collects test_cases data from config.yaml file :function: function name -> str :returns: tests -> list of tuples (input, expected)
test/test_tools.py:12
↓ 5 callers
Method
expected_residual_vibration
Returns the residual_vibration from tools module
src/hsbalance/model.py:70
↓ 5 callers
Function
u
returns column vector by index i in alpha_arranged_by_column_norm
src/hsbalance/tools.py:121
↓ 4 callers
Function
Call_Split
(W)
Rotor_Balance_module/Rotor_Balancing.py:516
↓ 4 callers
Method
create_split
Factory method to create a split instance
src/hsbalance/model.py:80
↓ 4 callers
Function
error
(x)
Rotor_Balance_module/Rotor_Balancing.py:374
↓ 4 callers
Function
prnt
(W)
Rotor_Balance_module/Rotor_Balancing.py:388
↓ 4 callers
Method
split_setup
Split method to determine the optimized splitted weight over available holes and with some availabe weight types
src/hsbalance/model.py:98
↓ 4 callers
Method
split_solve
Mehtod to solve the splitting problem function takes the weight_available_matrix of the split instance and find t
src/hsbalance/model.py:156
↓ 3 callers
Method
info
return generator with the strings to be printed
src/hsbalance/tools.py:170
↓ 3 callers
Method
load
Method to load influence coefficient value
src/hsbalance/CI_matrix.py:171
↓ 3 callers
Method
solve
Method to solve the model Args: solver:'OLE' Ordinary Least Squares method 'Huber': Uses Huber smoother to do
src/hsbalance/model.py:316
↓ 2 callers
Function
PHASE
(x)
Rotor_Balance_module/Rotor_Balancing.py:382
↓ 2 callers
Method
__init__
Args: A: Initial vibration vector -> np.ndarray alpha: Instance of Alpha class critical_planes: set of c
src/hsbalance/model.py:386
↓ 2 callers
Method
check
Method to check the alpha value * check the symmetrical of the matrix (check for square matrix only, for square matri
src/hsbalance/CI_matrix.py:94
↓ 2 callers
Function
directmat
()
Rotor_Balance_module/Rotor_Balancing.py:266
↓ 2 callers
Method
error
Method to determine different ways of error in the splitting. Args: Instance of split model o
src/hsbalance/model.py:215
↓ 2 callers
Function
get_dim
()
Rotor_Balance_module/Rotor_Balancing.py:31
↓ 2 callers
Function
intial
()
Rotor_Balance_module/Rotor_Balancing.py:46
↓ 2 callers
Function
normalized
Normalize vector = vector / norm(vector) Arg: vector -> complex of vector returns: normalized vector
src/hsbalance/tools.py:127
↓ 2 callers
Function
printmat
(Z)
Rotor_Balance_module/Rotor_Balancing.py:290
↓ 2 callers
Method
update
Method to override the model solution with the split solution for the balancing plane. confirm: Boolean= False: t
src/hsbalance/model.py:241
↓ 1 callers
Function
ALPHA_MAT
()
Rotor_Balance_module/Rotor_Balancing.py:205
↓ 1 callers
Function
LMI
()
Rotor_Balance_module/Rotor_Balancing.py:611
↓ 1 callers
Function
Split
(W)
Rotor_Balance_module/Rotor_Balancing.py:404
↓ 1 callers
Method
_info
Method to summarize the results for alpha. return generator of tuples(title:str, item)
src/hsbalance/CI_matrix.py:128
↓ 1 callers
Method
_info
Method to summarize the results for condition.
src/hsbalance/CI_matrix.py:236
↓ 1 callers
Method
_info
Method to summarize the results for Model.
src/hsbalance/model.py:261
↓ 1 callers
Function
convert_cart_math
TODO: inverse of convert_math_cart :complex: TODO :returns: TODO
src/hsbalance/tools.py:56
↓ 1 callers
Function
convert_math_cart
docs: Convert from polar mathematical expression to cartesian. :inputs: str: mathematical expression for polar number in form of
src/hsbalance/tools.py:41
↓ 1 callers
Function
convert_to_cartesian
docs: Convert number from polar form to cartesian complex number. :inputs: polar: Complex number in polar form (modulus, phase in degrees
src/hsbalance/tools.py:28
↓ 1 callers
Function
convert_to_polar
docs: Convert complex number in the cartesian form into polar form. :inputs: cart: Complex number in cartesian number ex. 12+23
src/hsbalance/tools.py:13
↓ 1 callers
Function
get_B
()
Rotor_Balance_module/Rotor_Balancing.py:114
↓ 1 callers
Function
get_H_angles
()
Rotor_Balance_module/Rotor_Balancing.py:415
↓ 1 callers
Function
get_List
(Critical_Plane,K,L)
Rotor_Balance_module/Rotor_Balancing.py:626
↓ 1 callers
Function
get_W_tpes
()
Rotor_Balance_module/Rotor_Balancing.py:438
↓ 1 callers
Method
load
Method to load condition instance.
src/hsbalance/CI_matrix.py:271
↓ 1 callers
Function
loadmat
()
Rotor_Balance_module/Rotor_Balancing.py:245
↓ 1 callers
Method
results
Method to print comprehensive results of the solution transfer the numpy array to non-zeros DataFrame Args:
src/hsbalance/model.py:202
↓ 1 callers
Method
save
Method to save influence coefficient values
src/hsbalance/CI_matrix.py:162
↓ 1 callers
Method
save
Method to save condition instance.
src/hsbalance/CI_matrix.py:260
↓ 1 callers
Function
savemat
()
Rotor_Balance_module/Rotor_Balancing.py:355
↓ 1 callers
Function
slowroll
()
Rotor_Balance_module/Rotor_Balancing.py:72
↓ 1 callers
Method
solve
Method to solve the Minmax model
src/hsbalance/model.py:357
↓ 1 callers
Function
test_performance
(n)
test/test_model.py:216
Method
__init__
Instantiate an instance of Alpha name: optional name of Alpha
src/hsbalance/CI_matrix.py:25
Method
__init__
Instantiate a conditions instance that will encapsulate all model speeds and loads name: optional name of Alpha
src/hsbalance/CI_matrix.py:203
Method
__init__
Args: info_parameters generator of tuple(name, parm) from _info method level: level for nested appearance
src/hsbalance/tools.py:161
Method
__init__
Instantiate the model Args: A: Initial vibration vector -> np.ndarray ALPHA: Influence coefficient matrix -> class Alpha
src/hsbalance/model.py:13
Method
__init__
Enable accessing outer class variables args: model_instance: _Model class
src/hsbalance/model.py:90
Method
__init__
Instantiate the model Args: A: Initial vibration vector -> np.ndarray ALPHA: Influence coefficient matrix -> class Alpha
src/hsbalance/model.py:303
Method
__init__
Instantiate the model Args: A: Initial vibration vector -> np.ndarray alpha: instance of Alpha class weig
src/hsbalance/model.py:346
Method
__repr__
Method to print out alpha value
src/hsbalance/CI_matrix.py:154
Method
__repr__
Method to print out condition value
src/hsbalance/CI_matrix.py:250
Function
convert_matrix_to_cart
docs: Convert influence coeffecient matrix ALPHA from mathematical expression form to cartesian form. :ALPHA_math: list of lists with po
src/hsbalance/tools.py:67
Function
convert_matrix_to_math
inverse of convert_matrix_to_cart
src/hsbalance/tools.py:81
Function
ill_condition
(alpha)
src/hsbalance/tools.py:112
Function
m
tests for various matrix sizes for n = 1000 it took around 5 minutes on my machine
test/test_WLS.py:20
Function
n
tests for various matrix sizes for n = 1000 it took around 5 minutes on my machine
test/test_WLS.py:12
Function
n
tests for various matrix sizes for n = 1000 it took around 5 minutes on my machine
test/test_model.py:60
Function
residual_vibration
Calculate the residual vibration between ALPHA matrix and solution W with intial vibration A Args: ALPHA : Influence coefficient
src/hsbalance/tools.py:99
Function
rmse
Calculate the root mean square error for residual_vibration column matrix subtract each residual vibration from zero and taking the square ro
src/hsbalance/tools.py:88
Method
shape
returns shape of Influence coefficient matrix (no. Measuring Points, no. Balancing Planes)
src/hsbalance/CI_matrix.py:181
Method
solve
Solve the problem and return W which is row vector of balancing weights
src/hsbalance/model.py:63
Function
test_A
Creating alpha instance
test/test_WLS.py:39
Function
test_A
Creating alpha instance to test throwing faults
test/test_model.py:26
Function
test_ALPHA_direct
Pytest function to test instantiate Alpha from direct_matrix Inputs: param, expected : from config.yaml file
test/test_ALPHA.py:22
Function
test_ALPHA_from_matrices
Function to test instantiating Alpha class from matrices param, expected : from config.yaml file
test/test_ALPHA.py:42
Function
test_A_dim
Test the dimension of A to be 2x1
test/test_model.py:43
Function
test_Condition
(test_A, test_alpha)
test/test_model.py:109
Function
test_Condition_save_load
(test_A, test_alpha)
test/test_model.py:201
Function
test_LMI
Testing insantiate Least square model and test it against test cases
test/test_LMI.py:19
Function
test_Min_max
Testing instantiate Min_Max model and test it against test cases
test/test_minmax.py:18
Function
test_WLS
Testing instantiate LMI model and test it against test cases
test/test_LSE.py:19
Function
test_alpha
Creating alpha instance
test/test_WLS.py:28
Function
test_alpha
Creating alpha instance to test throwing faults
test/test_model.py:34
Function
test_alpha
creating alpha instance to test throwing faults
test/test_ALPHA.py:61
Function
test_alpha_check
Test raising symmetric matrix warning
test/test_ALPHA.py:67
Function
test_alpha_dim
Check raising error due to improper dimension of matrix
test/test_ALPHA.py:94
Function
test_alpha_ill
Test ill conditioned planes
test/test_ALPHA.py:75
Function
test_alpha_save_load
(test_alpha)
test/test_ALPHA.py:158
Function
test_alpha_shape
(test_alpha)
test/test_ALPHA.py:131
Function
test_big_A
Creating alpha instance to test throwing faults
test/test_model.py:79
Function
test_big_alpha
Creating alpha instance to test throwing faults
test/test_model.py:68
Function
test_big_matrix_LSQ
Testing the perfromance of model
test/test_model.py:97
Function
test_convert_cart_math
(param, expected)
test/test_tools.py:133
Function
test_convert_math_cart
(param, expected)
test/test_tools.py:78
Function
test_convert_matrix_to_cart
(param, expected)
test/test_tools.py:95
Function
test_convert_to_cartesian
(param, expected)
test/test_tools.py:61
Function
test_convert_to_polar
(param, expected)
test/test_tools.py:44
Function
test_direct_matrix_dim
Check raising error due to improper dimension of matrix
test/test_ALPHA.py:86
Function
test_faults
()
test/test_model.py:21
Function
test_info
()
test/test_ALPHA.py:136
Function
test_info_model
()
test/test_model.py:164
Function
test_matrix_WLS
Testing the performance of model
test/test_WLS.py:60
next →
1–100 of 105, ranked by callers