Skip to content

Commit

Permalink
Set homotopy flags in example models to facilitate the convergence of…
Browse files Browse the repository at this point in the history
… the initial solver
  • Loading branch information
casella committed Feb 12, 2020
1 parent 94fea03 commit d72f405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Modelica/Electrical/Analog/Examples/OpAmps.mo
Expand Up @@ -940,6 +940,7 @@ In case this resistance is high, the amplifier's common is floating with respect
Modelica.Electrical.Analog.Ideal.IdealizedOpAmpLimited opAmp(
Vps=Vps,
Vns=Vns,
homotopyType = Modelica.Blocks.Types.LimiterHomotopy.LowerLimit,
strict = true) annotation (Placement(transformation(extent={{0,-10},{20,10}})));
Modelica.Electrical.Analog.Basic.Ground ground
annotation (Placement(transformation(extent={{-20,-80},{0,-60}})));
Expand Down
1 change: 1 addition & 0 deletions Modelica/Fluid/Examples/PumpingSystem.mo
Expand Up @@ -28,6 +28,7 @@ model PumpingSystem "Model of a pumping system for drinking water"

Machines.PrescribedPump pumps(
checkValve=true,
checkValveHomotopy = Modelica.Fluid.Types.CheckValveHomotopyType.Closed,
N_nominal=1200,
redeclare function flowCharacteristic =
Modelica.Fluid.Machines.BaseClasses.PumpCharacteristics.quadraticFlow (
Expand Down

0 comments on commit d72f405

Please sign in to comment.