Skip to content

Document how values are computed based on resonance frequency.#4780

Open
HansOlsson wants to merge 1 commit intomodelica:masterfrom
HansOlsson:Pi1
Open

Document how values are computed based on resonance frequency.#4780
HansOlsson wants to merge 1 commit intomodelica:masterfrom
HansOlsson:Pi1

Conversation

@HansOlsson
Copy link
Copy Markdown
Contributor

It also makes the models unit correct, but the main goal is to make it easier to explain the models - by replacing literal values with unclear relations with somewhat understandable parameters, and clear formulas.
(It could be made even better by explaining the derivation of them.)

A benefit is that it is straightforward to modify the resonance frequency (or resistance.) and re-run the simulation to see the impact. (Based on similar idea in #4774 )

In terms of units more work is needed - there are more models that don't work well if pi have unit "rad" or "1"; all indicating unit issues e.g.,:

  • More computations of inductance using similar formulas (in other models).
  • Frequency calculations.

Does not require Modelica Language version 3.7 or updated pi-definition.

@HansOlsson HansOlsson requested a review from AHaumer April 27, 2026 11:02
@HansOlsson HansOlsson added L: Electrical.Analog Issue addresses Modelica.Electrical.Analog L: Electrical.QuasiStatic Issue addresses Modelica.Electrical.QuasiStatic labels Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L: Electrical.Analog Issue addresses Modelica.Electrical.Analog L: Electrical.QuasiStatic Issue addresses Modelica.Electrical.QuasiStatic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant