Skip to content

Implementation of MagNet model in FEMMT#166

Merged
gituser789 merged 7 commits into
mainfrom
MagNet_Model_Implementation
Sep 12, 2025
Merged

Implementation of MagNet model in FEMMT#166
gituser789 merged 7 commits into
mainfrom
MagNet_Model_Implementation

Conversation

@sschachten
Copy link
Copy Markdown
Contributor

added functionality to use MagNet model of Paderborn University and reluctance model to calculate the hysteresis losses

…eluctance model to calculate the hysteresis losses
Comment thread femmt/functions.py Outdated
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]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may a comment is useful why index of x is 0, 5, 6, 7

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread femmt/functions.py Outdated
for x in chunks_Coords:
xyz[str(x[0])] = np.array([x[1], x[2], x[3]])

for index, TriangleNode in enumerate(Triangle_Core):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole section needs more comments what happens on physical side

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread femmt/component.py
Sebastian Schachten and others added 2 commits September 11, 2025 12:45
Comment thread femmt/functions.py Outdated
"""
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)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be renamed to power_loss_density

Comment thread femmt/component.py
Sebastian Schachten added 2 commits September 12, 2025 09:02
updated docstring of function calc_hystersis_losses_with_MagNet_model_PB_based_on_mesh_results
@gituser789 gituser789 merged commit 86017a9 into main Sep 12, 2025
2 checks passed
@sschachten sschachten deleted the MagNet_Model_Implementation branch September 12, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants