Skip to content

FluxTubes: Additonal approximation#4741

Draft
AHaumer wants to merge 15 commits intomodelica:masterfrom
AHaumer:FT_Macfadyen
Draft

FluxTubes: Additonal approximation#4741
AHaumer wants to merge 15 commits intomodelica:masterfrom
AHaumer:FT_Macfadyen

Conversation

@AHaumer
Copy link
Contributor

@AHaumer AHaumer commented Feb 16, 2026

When investigating #4740, trying to implement a new material, I found it really hard to calculate correct parameters for the used approximation according to T.Roschke. I have implemented a backwards compatible solution to utilize additional approximation formulae. For now, I've implemented a (slightly modified) formula suggested by W.Macfadyen, and created two parameter records (M330-50A and M400-50A), as well as two records with raw data (magnetization characteristic from manufacturer) to document the source of the approximation parameters. If I manage to get more manufacturers' datasheet, I would implement more parameter records.
Additionally, I added 3 examples demonstrating the usage of the new approximation function.,
and some new pages in the User's Guide explaining the two approximation functions
and the workflow to fit parameters to given characteristics.
Feedback is highly welcome.

@AHaumer AHaumer added this to the maintenance milestone Feb 16, 2026
@AHaumer AHaumer self-assigned this Feb 16, 2026
@AHaumer AHaumer added enhancement New feature or enhancement L: Magnetic.FluxTubes Issue addresses Modelica.Magnetic.FluxTubes labels Feb 16, 2026
@AHaumer AHaumer modified the milestones: maintenance, MSL4.1.1 Feb 16, 2026
@AHaumer
Copy link
Contributor Author

AHaumer commented Feb 17, 2026

Additionally, with the RawData.records and a CombiTable1Ds it is possible (in BaseClasses.FixedShape) to implement a table-based interpolation instead of the approximation formulae.

@AHaumer AHaumer marked this pull request as draft February 17, 2026 22:54
@AHaumer
Copy link
Contributor Author

AHaumer commented Feb 17, 2026

Converted to draft. I'll have to apply changes to the RawData record to make it fool-proof.

@dietmarw dietmarw removed their request for review February 18, 2026 06:28
@AHaumer
Copy link
Contributor Author

AHaumer commented Feb 18, 2026

@dietmarw there are not really a lot of electrical engineers available, so it's a pity that you decline the review.

@dietmarw
Copy link
Member

@AHaumer I declined it since I don't like to be bombarded with draft PRs messages that are not even ready for review. In future, please do not assign any reviewers UNTIL you are finished on your side.

@AHaumer
Copy link
Contributor Author

AHaumer commented Feb 18, 2026

@dietmarw sorry I forgot to change the status to draft after I had discovered the first bugs,
Anyhow, thanks for your valuable feedback. I'll try to avoid asking you for a review or advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement L: Magnetic.FluxTubes Issue addresses Modelica.Magnetic.FluxTubes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments