Electrostatic solver#149
Merged
Merged
Conversation
added 30 commits
October 16, 2024 13:34
…amples basic_inductor_electrostatic and basic_transformer_electrostatic are examples for electrostatic simulation. The Validation of simulation is existed also with FEMM using femm_reference_electrostatic.
…ll bobbins dimensions are defined
…insulation is added but it is now air material. Also the user can choose the air insulation between the turns in every layer in every winding.
…tions for integrated transformer
…atic_solver, needed to be modified
gituser789
requested changes
Jun 12, 2025
|
|
||
| - Excitation of the electrostatic problem using voltage or charge source. | ||
|
|
||
| :param voltage: Values to apply to each turn in each winding as voltages. Example: [[V_turn_1, V_turn_2], [V_turn_3, V_turn_4]] |
Contributor
There was a problem hiding this comment.
can you make the example more clear?
i think it is maybe
[[V_winding_1_turn_1, V_winding_1_turn_2], [V_winding_2_turn_1, V_winding_2_turn_2]]
?
| core_cond: list[ | ||
| float] # list with size 4x1, with respectively isolation of cond_n -> [top_core, bot_core, left_core, right_core] | ||
|
|
||
| turn_ins: list[ |
| the order conductors are added to the winding! Instead, the winding number is important. The conductors are sorted by ascending winding number. | ||
| The lowest winding number therefore is combined with index 0. The second lowest with index 1 and so on. | ||
| :type inner_winding_insulation: list[list[float]] | ||
| :type inner_winding_insulation: List[List[float]] |
| self.turn_ins = [0.0 for _ in turn_insulation] | ||
|
|
||
| def add_insulation_between_layers(self, add_kapton_material: bool=True, thickness: float = 0.0): | ||
| """Add a kapton between layers""" |
Contributor
There was a problem hiding this comment.
params and types missing in docstring
| else: | ||
| self.kapton = thickness | ||
| if add_kapton_material: | ||
| self.draw_kapton = True |
Contributor
There was a problem hiding this comment.
use another word for kapton
Contributor
There was a problem hiding this comment.
the new added basic examples regarding the electrostatic simulation should also be executed in test_femmt.py to make sure, that the examples are working
Contributor
Author
There was a problem hiding this comment.
done u can check the test file
…cs_Toolbox into electrostatic_solver
gituser789
requested changes
Jul 7, 2025
| """ | ||
| Set the rectangular electrical insulation between layers. | ||
|
|
||
| :param p_iso_layer: |
| :param p_iso_layer: | ||
| :type p_iso_layer: List | ||
|
|
||
| :return: |
| self.n_strands = int(conductor_radius ** 2 / strand_radius ** 2 * fill_factor) | ||
| elif conductor_radius is None: | ||
| self.conductor_radius = np.sqrt(number_strands * strand_radius ** 2 / fill_factor) | ||
| print(self.conductor_radius) |
| # this is the default-case | ||
| self.r_outer = fr.calculate_r_outer(self.core_inner_diameter, self.window_w) | ||
|
|
||
| # bobbin dimensions |
Contributor
Author
There was a problem hiding this comment.
the line is deleted
tillpiepenbrock
approved these changes
Jul 8, 2025
| "Turn_4": 2.666067960159697e-11, | ||
| "Turn_5": 5.998652910359316e-11, | ||
| "Turn_6": 2.399461164143728e-10, | ||
| "Turn_7": Infinity |
Contributor
There was a problem hiding this comment.
From where does this "Infinity" occur?
gituser789
approved these changes
Jul 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Implementation of electrostatic solver in FEMMT