modelRCModel
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
| Type | Name | Default | Description |
|---|---|---|---|
| TwoPortRCLine | RC_ss | Line resistance | |
| Sources.ConstantVoltage | constantVoltage | Voltage source | |
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Loads.Resistor | sc_ss | Short circuit load | |
| Sensors.GeneralizedSensor | sen_ss | Sensor | |
| TwoPortRCLine | RC_dyn | Line resistance | |
| Loads.Resistor | sc_dyn | Load | |
| Sensors.GeneralizedSensor | sen_dyn | Sensor |
Revisions
-
June 4, 2014, by Marco Bonvini:
Added model, documentation and results for regression test.