Modelica.Math.Nonlinear.Examples

Examples demonstrating the usage of the functions in package Nonlinear

Information

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

Package Content

NameDescription
Modelica.Math.Nonlinear.Examples.quadratureLobatto1 quadratureLobatto1 Integrate integral with fixed inputs
Modelica.Math.Nonlinear.Examples.quadratureLobatto2 quadratureLobatto2 Integrate integral with user dependent inputs
Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1 solveNonlinearEquations1 Solve nonlinear equations with fixed inputs
Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2 solveNonlinearEquations2 Solve nonlinear equations with user dependent inputs
Modelica.Math.Nonlinear.Examples.quadratureLobatto3 quadratureLobatto3 Integrate function in a model
Modelica.Math.Nonlinear.Examples.UtilityFunctions UtilityFunctions Utility functions that are used as function arguments to the examples

Modelica.Math.Nonlinear.Examples.quadratureLobatto1 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

NameDescription
toleranceError tolerance of integral values

Modelica.Math.Nonlinear.Examples.quadratureLobatto2 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

NameDescription
General
ToleranceError tolerance of integral value
Sine
a1Lower limit
b1Upper limit
Sine w
a2Lower limit
b2Upper limit
wAngular velocity
Elliptic integral
a3Lower limit
b3Upper limit
kModul

Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1 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

NameDescription
toleranceRelative tolerance of solution u

Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2 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

NameDescription
General
toleranceRelative tolerance of solution u
u^2-1
u_min1Lower limit
u_max1Upper limit
3*u - sin(w*u) - 1
u_min2Lower limit
u_max2Upper limit
wAngular velocity
p[1] + log(p[2]*u) - m*u
u_min3Lower limit
u_max3Upper limit
p[2]Parameter vector
mParameter

Modelica.Math.Nonlinear.Examples.quadratureLobatto3 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

NameDescription
AAmplitude of integrand of s
wsAngular frequency of integrand of s
wqAngular frequency of q

Automatically generated Mon Sep 23 17:21:10 2013.