.ObsoleteModelica4.Media.Common.OneNonLinearEquation.solve

Information

Solve f_nonlinear(x_zero)=y_zero; f_nonlinear(x_min) - y_zero and f_nonlinear(x_max)-y_zero must have different sign

Interface

function solve
  import Modelica.Utilities.Streams.error;
  extends Modelica.Icons.Function;
  extends Modelica.Icons.ObsoleteModel;
  input Real y_zero "Determine x_zero, such that f_nonlinear(x_zero) = y_zero";
  input Real x_min "Minimum value of x";
  input Real x_max "Maximum value of x";
  input Real pressure = 0.0 "Disregarded variables (here always used for pressure)";
  input Real[:] X = fill(0, 0) "Disregarded variables (here always used for composition)";
  input f_nonlinear_Data f_nonlinear_data "Additional data for function f_nonlinear";
  input Real x_tol = 100*Modelica.Constants.eps "Relative tolerance of the result";
  output Real x_zero "f_nonlinear(x_zero) = y_zero";
end solve;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos