.FreeFluids.MediaCommon.Functions.CorrelationSolver

Information

It uses the Anderson-Bjork modification of Regula Falsi method for the inverse solving of a correlation. The correlation (f) is defined as a replaceable function. You must extend the CorrelationSolver redeclaring f as the function you want to use. This function must return a Real value, and must accept the calling parameters that will be used by the solver.

Interface

partial function CorrelationSolver
  input Integer cor;
  input Real coef[:];
  input Real MW;
  input Real y;
  input Real max = 1000;
  input Real min = 50;
  input Real tol = 1.0e-7;
  output Real x;
end CorrelationSolver;

Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos