Skip to content

Commit

Permalink
changed max reduced frequency to 3.25
Browse files Browse the repository at this point in the history
  • Loading branch information
tillpiepenbrock committed Oct 4, 2024
1 parent 4a99c28 commit dacf95b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions femmt/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def __init__(self, simulation_type: SimulationType = SimulationType.FreqDomain,
self.frequency = None
self.phase_deg = None # Default is zero, Defined for every conductor
self.red_freq = None # [] * self.n_windings # Defined for every conductor
self.max_reduced_frequency = 3.25
self.delta = None

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down Expand Up @@ -3277,9 +3278,9 @@ def write_electro_magnetic_parameter_pro(self):
self.femmt_print(f"Cell surface area: {self.windings[winding_number].a_cell} \n"
f"Reduced frequency: {self.red_freq[winding_number]}")

if self.red_freq[winding_number] > 1.25 and self.windings[winding_number].conductor_type == ConductorType.RoundLitz:
if self.red_freq[winding_number] > self.max_reduced_frequency and self.windings[winding_number].conductor_type == ConductorType.RoundLitz:
# TODO: Allow higher reduced frequencies
self.femmt_print("Litz Coefficients only implemented for X<=1.25")
self.femmt_print(f"Litz Coefficients only implemented for X<={self.max_reduced_frequency}")
raise Warning("Reduced frequency exceeds limit for Litz Coefficients.")
# Reduced Frequency
text_file.write(f"Rr_{winding_number + 1} = {self.red_freq[winding_number]};\n")
Expand Down Expand Up @@ -4522,7 +4523,7 @@ def create_strand_coeff(self, winding_number: int) -> None:
self.onelab_client.runSubClient("myGmsh", gmsh_client + " " + cell_geo + " -2 " + verbose)

modes = [1, 2] # 1 = "skin", 2 = "proximity"
reduced_frequencies = np.linspace(0, 1.25, 6) # must be even
reduced_frequencies = np.linspace(0, self.max_reduced_frequency, int(self.max_reduced_frequency*4)+1) # must be even
for mode in modes:
for rf in reduced_frequencies:
# -- Pre-Simulation Settings --
Expand Down

0 comments on commit dacf95b

Please sign in to comment.