<commit_before>within iPSL.NonElectrical.Eurostag.Continuous;
block ImIntegratorFollower "Integrator Follower. 2014/03/10"

  Modelica.Blocks.Interfaces.RealInput u1 annotation(Placement(transformation(extent={{-119,60},
            {-99,80}}),                                                                                         iconTransformation(extent={{-119,60},
            {-99,80}})));
  Modelica.Blocks.Interfaces.RealInput u2 annotation(Placement(transformation(extent={{-119,
            -10},{-99,10}}),                                                                                     iconTransformation(extent={{-119,
            -10},{-99,10}})));
  Modelica.Blocks.Interfaces.RealInput u3 annotation(Placement(transformation(extent={{-119,
            -80},{-99,-60}}),                                                                                     iconTransformation(extent={{-119,
            -80},{-99,-60}})));
  Modelica.Blocks.Interfaces.RealOutput y(start= y_start) annotation(Placement(transformation(extent={{99,-10},
            {119,10}}),                                                                                                    iconTransformation(extent={{99,-10},
            {119,10}})));
  parameter Real y_start "Output start value";
  parameter Real K "Gain Value";
  parameter Real T "Time Constant";
//initial equation
 // y = if u1 <= 0 then u3 else 0;
equation
  if u1 > 0 then
    der(y) = K * u2;
  else
    der(y) = 1 / T * (u3 - y);
  end if;
  //assert(T == 0, "T must be different of 0");
  annotation(Icon(graphics={  Rectangle(extent={{-100,100},{100,-100}},  lineColor = {0, 0, 255}), Text(extent={{
              64,82},{28,48}},                                                                                                    lineColor = {0, 0, 255}, textString = "K"), Text(extent={{
              66,48},{24,16}},                                                                                                    lineColor = {0, 0, 255}, textString = "S"), Line(points={{
              24,48},{52,48},{66,48}},                                                                                                    color={0,0,
              255},
          thickness=0.5),                                                                                                    Text(extent={{
              62,-12},{26,-40}},                                                                                                    lineColor = {0, 0, 255}, textString = "1"), Text(extent={{
              66,-40},{26,-68}},                                                                                                    lineColor = {0, 0, 255}, textString = "1+Ts"), Line(points={{
              26,-40},{60,-40},{66,-40}},                                                                                                    color={0,0,
              255},
          thickness=0.5),                                                                                                    Text(extent={{
              -82,-8},{-44,-36}},                                                                                                    lineColor = {0, 0, 255}, textString = "K"), Text(extent={{
              -82,-48},{-44,-68}},                                                                                                    lineColor = {0, 0, 255}, textString = "T"), Text(extent={{
              -86,-76},{-48,-100}},                                                                                                    lineColor = {0, 0, 255}, textString = "-/0")}), Diagram(graphics={
        Rectangle(extent={{-60,60},{60,-60}}, lineColor={0,0,255}),
        Line(points={{-100,70},{-80,70},{-80,40},{
              -60,40}}, color={28,108,200}),
        Line(points={{-100,0},{-60,0}}, color={28,
              108,200}),
        Line(points={{-100,-70},{-80,-70},{-80,-40},
              {-60,-40}}, color={28,108,200}),                                                     Text(extent={{<commit_msg>Update ImIntegratorFollower.mo<commit_after>within iPSL.NonElectrical.Eurostag.Continuous;
block ImIntegratorFollower "Integrator Follower. 2014/03/10"

  Modelica.Blocks.Interfaces.RealInput u1 annotation(Placement(transformation(extent={{-119,60},
            {-99,80}}),                                                                                         iconTransformation(extent={{-119,60},
            {-99,80}})));
  Modelica.Blocks.Interfaces.RealInput u2 annotation(Placement(transformation(extent={{-119,
            -10},{-99,10}}),                                                                                     iconTransformation(extent={{-119,
            -10},{-99,10}})));
  Modelica.Blocks.Interfaces.RealInput u3 annotation(Placement(transformation(extent={{-119,
            -80},{-99,-60}}),                                                                                     iconTransformation(extent={{-119,
            -80},{-99,-60}})));
  Modelica.Blocks.Interfaces.RealOutput y(start= y_start) annotation(Placement(transformation(extent={{99,-10},
            {119,10}}),                                                                                                    iconTransformation(extent={{99,-10},
            {119,10}})));
  parameter Real y_start "Output start value";
  parameter Real K "Gain Value";
  parameter Real T "Time Constant";
initial equation
   y = if u1 <= 0 then u3 else 0;
equation
  if u1 > 0 then
    der(y) = K * u2;
  else
    der(y) = 1 / T * (u3 - y);
  end if;
  //assert(T == 0, "T must be different of 0");
  annotation(Icon(graphics={  Rectangle(extent={{-100,100},{100,-100}},  lineColor = {0, 0, 255}), Text(extent={{
              64,82},{28,48}},                                                                                                    lineColor = {0, 0, 255}, textString = "K"), Text(extent={{
              66,48},{24,16}},                                                                                                    lineColor = {0, 0, 255}, textString = "S"), Line(points={{
              24,48},{52,48},{66,48}},                                                                                                    color={0,0,
              255},
          thickness=0.5),                                                                                                    Text(extent={{
              62,-12},{26,-40}},                                                                                                    lineColor = {0, 0, 255}, textString = "1"), Text(extent={{
              66,-40},{26,-68}},                                                                                                    lineColor = {0, 0, 255}, textString = "1+Ts"), Line(points={{
              26,-40},{60,-40},{66,-40}},                                                                                                    color={0,0,
              255},
          thickness=0.5),                                                                                                    Text(extent={{
              -82,-8},{-44,-36}},                                                                                                    lineColor = {0, 0, 255}, textString = "K"), Text(extent={{
              -82,-48},{-44,-68}},                                                                                                    lineColor = {0, 0, 255}, textString = "T"), Text(extent={{
              -86,-76},{-48,-100}},                                                                                                    lineColor = {0, 0, 255}, textString = "-/0")}), Diagram(graphics={
        Rectangle(extent={{-60,60},{60,-60}}, lineColor={0,0,255}),
        Line(points={{-100,70},{-80,70},{-80,40},{
              -60,40}}, color={28,108,200}),
        Line(points={{-100,0},{-60,0}}, color={28,
              108,200}),
        Line(points={{-100,-70},{-80,-70},{-80,-40},
              {-60,-40}}, color={28,108,200}),                                                     Text(extent={{
{'fraction_non_alphanumeric': 0.14406988188976377, 'fraction_numerical': 0.07898622047244094, 'mean_word_length': 0.8860788863109049, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 120, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7248581', 'n_tokens_mistral': 2124, 'n_tokens_neox': 1786, 'n_words': 334}