<commit_before>within iPSL.Electrical.Loads.Eurostag;
model PwLoadVoltageDependence
  "Load with voltage dependence.Developed by AIA. 2014/03/10"
 extends iPSL.Electrical.Essentials.pfComponent;
  iPSL.Connectors.PwPin p(vr(start=Vo_real),  vi(start=Vo_img),  ir(start=1), ii(start=0)) annotation(Placement(transformation(extent = {{-80, 0}, {-60, 20}}), iconTransformation(extent = {{-80, 0}, {-60, 20}})));
  parameter Real Vo_real = V_0*cos(angle_0*Modelica.Constants.pi/180)
    "Initial voltage at node in p.u. (Real part)";
  parameter Real Vo_img = V_0*sin(angle_0*Modelica.Constants.pi/180)
    "Initial voltage at node in p.u. (Imaginary part)";
  parameter Real vo = sqrt(Vo_real ^ 2 + Vo_img ^ 2);
  parameter Real omega0 = 1;
  Real v(start = vo);
  Real a(start = 1) "auxiliary variable. Voltage division";
  parameter Real alpha = 0;
  parameter Real beta = 0;
equation
  a = v / vo;
  (P_0/S_b) * a ^ alpha = p.vr * p.ir + p.vi * p.ii;
  (Q_0/S_b)* a ^ beta = (-p.vr * p.ii) + p.vi * p.ir;
  v = sqrt(p.vr ^ 2 + p.vi ^ 2);

  annotation (
    Placement(transformation(extent={{-56,-10},{-36,10}}), iconTransformation(extent={{-80,0},{-60,20}})),
    Diagram(graphics),
    Icon(graphics={Rectangle(extent={{-60,60},{40,-40}}, lineColor={0,0,255}),Rectangle(extent={{-40,40},{20,-20}}, lineColor={0,0,255}),Line(
          points={{-40,40},{20,-20}},<commit_msg>Update PwLoadVoltageDependence.mo<commit_after>within iPSL.Electrical.Loads.Eurostag;
model PwLoadVoltageDependence
  "Load with voltage dependence.Developed by AIA. 2014/03/10"
 extends iPSL.Electrical.Essentials.pfComponent;
  iPSL.Connectors.PwPin p(vr(start=Vo_real),  vi(start=Vo_img),  ir(start=1), ii(start=0)) annotation(Placement(transformation(extent = {{-80, 0}, {-60, 20}}), iconTransformation(extent = {{-80, 0}, {-60, 20}})));
  parameter Real Vo_real = V_0*cos(angle_0*Modelica.Constants.pi/180)
    "Initial voltage at node in p.u. (Real part)";
  parameter Real Vo_img = V_0*sin(angle_0*Modelica.Constants.pi/180)
    "Initial voltage at node in p.u. (Imaginary part)";
  parameter Real vo = sqrt(Vo_real ^ 2 + Vo_img ^ 2);
  parameter Real omega0 = 1;
  Real v(start = vo);
  Real a(start = 1) "auxiliary variable. Voltage division";
  parameter Real alpha = 0;
  parameter Real beta = 0;
  Real P(start = P_0/S_b);
  Real Q(start = Q_0/S_b);
equation
  a = v / vo;
  (P_0/S_b) * a ^ alpha = p.vr * p.ir + p.vi * p.ii;
  (Q_0/S_b)* a ^ beta = (-p.vr * p.ii) + p.vi * p.ir;
  v = sqrt(p.vr ^ 2 + p.vi ^ 2);
  P = p.vr * p.ir + p.vi * p.ii;
  Q = (-p.vr * p.ii) + p.vi * p.ir;
  annotation (
    Placement(transformation(extent={{-56,-10},{-36,10}}), iconTransformation(extent={{-80,0},{-60,20}})),
    Diagram(graphics),
    Icon(graphics={Rectangle(extent={{-60,60},{40,-40}}, lineColor={0,0,255}),Rectangle(extent={{-40,40},{20,-20}}, lineColor={0,0,255}),Line(
          points={{-40,40},{20,-20}},
{'fraction_non_alphanumeric': 0.19281271596406357, 'fraction_numerical': 0.06565307532826538, 'mean_word_length': 4.142095914742451, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4624291', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1152, 'n_words': 240}