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 |
---|---|
Inverse_sh_T | Solve h = h_T(T), s = s_T(T) for T, if h or s is given for ideal gas NASA |
Inverse_sh_TX | Solve h = h_TX(TX) for T, if h is given for ideal gas NASA |
Inverse_sine | Solve y = A*sin(w*x) for x, given y |
InverseIncompressible_sh_T | Inverse computation for incompressible media |
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).
Type | Name | Default | Description |
---|---|---|---|
Real | y_zero | 0.5 | Desired value of A*sin(w*x) |
Real | x_min | -1.7 | Minimum value of x_zero |
Real | x_max | 1.7 | Maximum value of x_zero |
Real | A | 1 |   |
Real | w | 1 |   |
f_nonlinear_Data | data | Inverse_sine_definition.f_nonlinear_Data(A = A, w = w) |   |
Extends from Modelica.Icons.Example
(Icon for runnable examples).
Type | Name | Default | Description |
---|---|---|---|
Temperature | T_min | 300 | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
Temperature | T_max | 500 | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
Pressure | p | 100000 | Fixed pressure in model |
final SpecificEnthalpy | h_min | Medium.specificEnthalpy(Medium.setState_pT(p, T_min)) | Specific enthalpy at T_min |
final SpecificEnthalpy | h_max | Medium.specificEnthalpy(Medium.setState_pT(p, T_max)) | Specific enthalpy at T_max |
final SpecificEntropy | s_min | Medium.specificEntropy(Medium.setState_pT(p, T_min)) | Specific entropy at T_min |
final SpecificEntropy | s_max | Medium.specificEntropy(Medium.setState_pT(p, T_max)) | Specific entropy at T_max |
Extends from Modelica.Icons.Example
(Icon for runnable examples).
Type | Name | Default | Description |
---|---|---|---|
Temperature | T_min | Medium.T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
Temperature | T_max | Medium.T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
Pressure | p | 100000 | Fixed pressure in model |
final SpecificEnthalpy | h_min | Medium.h_T(Medium.T_min) | Specific enthalpy at T_min |
final SpecificEnthalpy | h_max | Medium.h_T(Medium.T_max) | Specific enthalpy at T_max |
final SpecificEntropy | s_min | Medium.specificEntropy(Medium.setState_pT(p, T_min)) | Specific entropy at T_min |
final SpecificEntropy | s_max | Medium.specificEntropy(Medium.setState_pT(p, T_max)) | Specific entropy at T_max |
Extends from Modelica.Icons.Example
(Icon for runnable examples).
Type | Name | Default | Description |
---|---|---|---|
Temperature | T_min | 300 | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
Temperature | T_max | 500 | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
Pressure | p | 100000 | Fixed pressure in model |
final SpecificEnthalpy | h_min | Medium.h_TX(T_min, X) | Specific enthalpy at T_min |
final SpecificEnthalpy | h_max | Medium.h_TX(T_max, X) | Specific enthalpy at T_max |
final SpecificEntropy | s_min | Medium.specificEntropy(Medium.setState_pTX(p, T_min, Medium.reference_X)) | Specific entropy at T_min |
final SpecificEntropy | s_max | Medium.specificEntropy(Medium.setState_pTX(p, T_max, Medium.reference_X)) | Specific entropy at T_max |
MassFraction | X[4] | Medium.reference_X | Mass fraction vector |
Generated 2018-12-12 12:13:39 EST by MapleSim.