BuildingSystems.Electrical.DC.Lines.Examples.RCModel

# .BuildingSystems.Electrical.DC.Lines.Examples.RCModel

Example model to test for the DC RC two port model

## Information

This model shows how to use a two port resistance-capacitance model. The example also shows a comparison between the dynamic and steady state version model that can be selected by changing the boolean flag `use_C`.

In this example the RC connects an ideal constant voltage source with a short circuit. The steady state current value passing through the RC model depends just on the value of R.

The RC model implement a T-model to represent the electric connection between the two connectors (see BuildingSystems.Electrical.DC.Lines.TwoPortRCLine for more details).

The capacitance C see an equivalent Thevenin's resistance that is equal to REQ = 0.5 R and thus the time constant associated to the capacitance is

τ = REQ C = 0.5 R C = 2 seconds,

thus the duration of transient period is about 10 seconds.

## Revisions

- June 4, 2014, by Marco Bonvini:
  Added model, documentation and results for regression test.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos