Package Modelica.​Math.​Nonlinear.​Examples
Examples demonstrating the usage of the functions in package Nonlinear

Information

This icon indicates a package that contains executable examples.

Extends from Modelica.​Icons.​ExamplesPackage (Icon for packages containing runnable examples).

Package Contents

NameDescription
quadratureLobatto1Integrate integral with fixed inputs
quadratureLobatto2Integrate integral with user dependent inputs
quadratureLobatto3Integrate function in a model
solveNonlinearEquations1Solve nonlinear equations with fixed inputs
solveNonlinearEquations2Solve nonlinear equations with user dependent inputs
UtilityFunctionsUtility functions that are used as function arguments to the examples

Function Modelica.​Math.​Nonlinear.​Examples.​quadratureLobatto1
Integrate integral with fixed inputs

Information

This example integrates the following integrands with function quadratureLobatto and compares the result with an analytical solution. The examples also demonstrate how additional input arguments to the integrand function can be passed as additional arguments. The following integrals are computed:

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
RealtoleranceError tolerance of integral values

Function Modelica.​Math.​Nonlinear.​Examples.​quadratureLobatto2
Integrate integral with user dependent inputs

Information

This example solves the following integrands with function quadratureLobatto. The user can set the parameters, like "w" or "k", and can experiment with different integration intervals. The following integrals are computed:

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
RealToleranceError tolerance of integral value
Reala1Lower limit
Realb1Upper limit
Reala2Lower limit
Realb2Upper limit
RealwAngular velocity
Reala3Lower limit
Realb3Upper limit
RealkModul

Function Modelica.​Math.​Nonlinear.​Examples.​solveNonlinearEquations1
Solve nonlinear equations with fixed inputs

Information

This example solves the following nonlinear equations with function solveOneNonlinearEquation and compares the result with the available analytical solution. The examples also demonstrate how additional input arguments to the nonlinear equation function can be passes as additional arguments. The following nonlinear equations are solved:

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
RealtoleranceRelative tolerance of solution u

Function Modelica.​Math.​Nonlinear.​Examples.​solveNonlinearEquations2
Solve nonlinear equations with user dependent inputs

Information

This example solves the following nonlinear equations with function solveOneNonlinearEquation. The user can set the parameters, like "w" or "m", and can experiment with different start intervals. The following nonlinear equations are solved:

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
RealtoleranceRelative tolerance of solution u
Realu_min1Lower limit
Realu_max1Upper limit
Realu_min2Lower limit
Realu_max2Upper limit
RealwAngular velocity
Realu_min3Lower limit
Realu_max3Upper limit
Realp[2]Parameter vector
RealmParameter

Model Modelica.​Math.​Nonlinear.​Examples.​quadratureLobatto3
Integrate function in a model

Information

This example demonstrates how to utilize a function as input argument to a function in a model.

Extends from Modelica.​Icons.​Example (Icon for runnable examples).

Parameters

TypeNameDefaultDescription
RealA1Amplitude of integrand of s
Realws2Angular frequency of integrand of s
Realwq3Angular frequency of q
final RealsModelica.Math.Nonlinear.quadratureLobatto(function UtilityFunctions.fun7(A = A, w = ws), 0, 1) 

Generated 2018-12-12 12:14:35 EST by MapleSim.