Description: "Solve f(x, data) for x with given f"

- Home > Modelica

## Buildings.Utilities.Psychrometrics.Functions.Internal

Solve f(x, data) for x with given f

### Information

Function to compute the dew point temperature based on the partial water vapor concentration.

Extends from Modelica.Media.Common.OneNonLinearEquation (Determine solution of a non-linear algebraic equation in one unknown without derivatives in a reliable and efficient way).

### Package Content

Name | Description
--- | ---
f_nonlinear |
Inherited
f_nonlinear_Data | Data specific for function f_nonlinear
solve | Solve f_nonlinear(x_zero)=y_zero; f_nonlinear(x_min) - y_zero and f_nonlinear(x_max)-y_zero must have different sign

## Buildings.Utilities.Psychrometrics.Functions.Internal.f_nonlinear

### Information

Extends from (Nonlinear algebraic equation in one unknown: y = f_nonlinear(x,p,X)).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Real | x |  | Independent variable of function
Real | p | 0.0 | Disregarded variables (here always used for pressure)
Real | X[:] | fill(0, 0) | Disregarded variables (her always used for composition)
f_nonlinear_Data | f_nonlinear_data |  | Additional data for the function

### Outputs

Type | Name | Description
--- | --- | ---
Real | y | = f_nonlinear(x)

### Modelica definition

redeclare function extends f_nonlinear algorithm y := pW_TDewPoi(x); end f_nonlinear;