Demonstrate how to solve one non-linear algebraic equation in one unknown
This package demonstrates how to solve one non-linear algebraic equation in one unknown with function Modelica.Media.Common.OneNonLinearEquation.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
| Name | Description |
|---|---|
| Solve y = A*sin(w*x) for x, given y | |
| Solve h = h_T(T), s = s_T(T) for T, if h or s is given for ideal gas NASA | |
| Inverse computation for incompressible media | |
| Solve h = h_TX(TX) for T, if h is given for ideal gas NASA |
Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sineSolve y = A*sin(w*x) for x, given y
This models solves the following non-linear equation
y = A*sin(w*x); -> determine x for given y
Translate model "Inverse_sine" and simulate for 0 sec. The result is printed to the output window.
Extends from Modelica.Icons.Example (Icon for runnable examples).
| Name | Description |
|---|---|
| y_zero | Desired value of A*sin(w*x) |
| x_min | Minimum value of x_zero |
| x_max | Maximum value of x_zero |
| A | |
| w | |
| data |
Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TSolve h = h_T(T), s = s_T(T) for T, if h or s is given for ideal gas NASA
Extends from Modelica.Icons.Example (Icon for runnable examples).
| Name | Description |
|---|---|
| replaceable package Medium | Medium model |
| T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
| T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
| p | Fixed pressure in model [Pa] |
| Name | Description |
|---|---|
| replaceable package Medium | Medium model |
Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_TInverse computation for incompressible media
Extends from Modelica.Icons.Example (Icon for runnable examples).
| Name | Description |
|---|---|
| replaceable package Medium | Medium model |
| T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
| T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
| p | Fixed pressure in model [Pa] |
| Name | Description |
|---|---|
| replaceable package Medium | Medium model |
Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXSolve h = h_TX(TX) for T, if h is given for ideal gas NASA
Extends from Modelica.Icons.Example (Icon for runnable examples).
| Name | Description |
|---|---|
| replaceable package Medium | Medium model |
| T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
| T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) [K] |
| p | Fixed pressure in model [Pa] |
| X[4] | Mass fraction vector [1] |
| Name | Description |
|---|---|
| replaceable package Medium | Medium model |