model Capacitor "Single phase linear capacitor"
import Modelica.ComplexMath.j;
extends Interfaces.OnePort;
parameter Modelica.SIunits.Capacitance C(start = 1) "Capacitance";
equation
i = j * omega * C * v;
annotation (
Icon(graphics = {
Text(
extent = {
{150, -40},
{-150, -80}},
textString = "C=%C"),
Text(
extent = {
{-150, 90},
{150, 50}},
textString = "%name",
lineColor = {0, 0, 255}),
Line(
points = {
{-6, 28},
{-6, -28}},
color = {85, 170, 255}),
Line(
points = {
{6, 28},
{6, -28}},
color = {85, 170, 255}),
Line(
points = {
{-90, 0},
{-6, 0}},
color = {85, 170, 255}),
Line(
points = {
{6, 0},
{90, 0}},
color = {85, 170, 255})}),
Documentation(info = "<html>\n\n<p>\nThe linear capacitor connects the voltage <code><u>v</u></code> with the\ncurrent <code><u>i</u></code> by <code><u>i</u> = j*ω*C*<u>v</u></code>.\nThe capacitance <code>C</code> is allowed to be positive, zero, or negative.\n</p>\n\n<h4>See also</h4>\n<p>\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Resistor\">Resistor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Conductor\">Conductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Inductor\">Inductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Impedance\">Impedance</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Admittance\">Admittance</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableResistor\">Variable resistor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableConductor\">Variable conductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableCapacitor\">Variable capacitor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableInductor\">Variable inductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableImpedance\">Variable impedance</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableAdmittance\">Variable admittance</a>\n</p>\n</html>"));
end Capacitor;