Implementation of MagNet model in FEMMT#166
Merged
Merged
Conversation
…eluctance model to calculate the hysteresis losses
gituser789
requested changes
Sep 11, 2025
| chunks_Coords = np.array([data_Coords[x:x + 4] for x in range(0, data_Coords.shape[0], 4)]) | ||
|
|
||
| data_triangle = np.concatenate((chunks_Elements, np.array(chunks_B_Field)), axis=1) | ||
| Triangle_Core = [[x[0], x[5], x[6], x[7], np.mean(x[10:])] for x in data_triangle if x[3] // 10000 == 12] |
Contributor
There was a problem hiding this comment.
may a comment is useful why index of x is 0, 5, 6, 7
| for x in chunks_Coords: | ||
| xyz[str(x[0])] = np.array([x[1], x[2], x[3]]) | ||
|
|
||
| for index, TriangleNode in enumerate(Triangle_Core): |
Contributor
There was a problem hiding this comment.
This whole section needs more comments what happens on physical side
added comments to explain calculation with mesh results
gituser789
requested changes
Sep 12, 2025
| """ | ||
| if material_name.value in ["3C90", "3C92", "3C94", "3C95", "3E6", "3F4", "77", "78", "79", "ML95S", "T37", "N27", "N30", "N49", "N87"]: | ||
| mdl = mh.loss.LossModel(material=material_name.value, team="paderborn") | ||
| powerloss, h_wave = mdl(b_wave, frequency, temperature) |
Contributor
There was a problem hiding this comment.
should be renamed to power_loss_density
added 2 commits
September 12, 2025 09:02
updated docstring of function calc_hystersis_losses_with_MagNet_model_PB_based_on_mesh_results
gituser789
approved these changes
Sep 12, 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.
added functionality to use MagNet model of Paderborn University and reluctance model to calculate the hysteresis losses