modelRCModel

Example model to test for the DC RC two port model

Extends from Modelica.Icons.Example (Icon for runnable examples).

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 Buildings.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.

Components

TypeNameDefaultDescription
TwoPortRCLineRC_ssLine resistance
Sources.ConstantVoltageconstantVoltageVoltage source
Modelica.Electrical.Analog.Basic.Groundground
Loads.Resistorsc_ssShort circuit load
Sensors.GeneralizedSensorsen_ssSensor
TwoPortRCLineRC_dynLine resistance
Loads.Resistorsc_dynLoad
Sensors.GeneralizedSensorsen_dynSensor

Revisions

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