.Modelica.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;
  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 2020-06-05T07:38:22Z by OpenModelica 1.16.0~dev-420-gc007a39