Skip to content

Commit 51cfa7e

Browse files
Mortara  AlessandroMortara  Alessandro
authored andcommitted
chore: new flags for inductances evaluation
Two new flags were added: * SELF_INDUCTANCE_MODE_0 = 0 is used to assign a constant value for the self inductance readed from input file conductor_definition.xlsx * CONSTANT_INDUCTANCE = 0 is used to assign a constant value for the mutual inductance readed from input file conductor_definition.xlsx The flags related to mutual inductance were redefined as: * ANALYTICAL_INDUCTANCE = 1 Flag to evaluate inductance analytically * APPROXIMATE_INDUCTANCE = 2 Flag to evaluate inductance using an approximation modified: conductor_flags.py
1 parent fbad580 commit 51cfa7e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

source_code/conductor_flags.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@
1616
# Electric conductance is not defined per unit length
1717
ELECTRIC_CONDUCTANCE_NOT_UNIT_LENGTH = 2
1818

19+
# Self inductance readed from input file conductor_definition.xlsx
20+
SELF_INDUCTANCE_MODE_0 = 0
1921
# Analytical self inductance is evaluated according to mode 1.
2022
SELF_INDUCTANCE_MODE_1 = 1
2123
# Analytical self inductance is evaluated according to mode 2.
2224
SELF_INDUCTANCE_MODE_2 = 2
2325

26+
# Constant mutual inductance readed from input file conductor_definition.xlsx
27+
CONSTANT_INDUCTANCE = 0
2428
# Flag to evaluate inductance analytically
25-
ANALYTICAL_INDUCTANCE = 0
29+
ANALYTICAL_INDUCTANCE = 1
2630
# Flag to evaluate inductance using an approximation
27-
APPROXIMATE_INDUCTANCE = 1
31+
APPROXIMATE_INDUCTANCE = 2
2832

2933
# Flag to solve the electric problem in steady state conditions.
3034
STATIC_ELECTRIC_SOLVER = 0

0 commit comments

Comments
 (0)