Modelica.Math.Nonlinear.Examples.UtilityFunctions

Utility functions that are used as function arguments to the examples

Information


This package provides utility functions that are used as input arguments to the example functions.

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun1 fun1 y = u^2 - 1
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun2 fun2 y = 3*u - sin(w*u) - 1
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun3 fun3 y = p[1] + log(p[2]*u) - m*u
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun4 fun4 y = sin(u)
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun5 fun5 y = sin(w*u)
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun6 fun6 y = sqrt(1/(1 - k^2*sin(u)^2))
Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun7 fun7 y = A*sin(w*u)*q(t)


Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun1

y = u^2 - 1

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun1 "y = u^2 - 1"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
algorithm 
  y := u^2 - 1;
end fun1;

Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun2

y = 3*u - sin(w*u) - 1

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable
Realw Angular velocity

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun2 "y = 3*u - sin(w*u) - 1"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
  input Real w "Angular velocity";
algorithm 
  y := 3*u - sin(w*u) - 1;

end fun2;

Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun3

y = p[1] + log(p[2]*u) - m*u

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable
Realp[2]  
Realm  

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun3 "y = p[1] + log(p[2]*u) - m*u"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
  input Real p[2];
  input Real m;
algorithm 
  y := p[1] + log(p[2]*u) - m*u;

end fun3;

Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun4

y = sin(u)

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun4 "y = sin(u)"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
algorithm 
  y := sin(u);
end fun4;

Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun5

y = sin(w*u)

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable
Realw Angular velocity

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun5 "y = sin(w*u)"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
  input Real w "Angular velocity";
algorithm 
  y := sin(w*u);
end fun5;

Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun6

y = sqrt(1/(1 - k^2*sin(u)^2))

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable
Realk Modul

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun6 "y = sqrt(1/(1 - k^2*sin(u)^2))"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
  input Real k "Modul";
algorithm 
  y := sqrt(1/(1 - k^2*sin(u)^2));
end fun6;

Modelica.Math.Nonlinear.Examples.UtilityFunctions.fun7

y = A*sin(w*u)*q(t)

Information

Extends from Modelica.Math.Nonlinear.Interfaces.partialScalarFunction (Interface for a function with one input and one output Real signal).

Inputs

TypeNameDefaultDescription
Realu Independent variable
RealA Amplitude
Realw Angular frequency

Outputs

TypeNameDescription
RealyDependent variable y=f(u)

Modelica definition

function fun7 "y = A*sin(w*u)*q(t)"
  extends Modelica.Math.Nonlinear.Interfaces.partialScalarFunction;
  input Real A "Amplitude";
  input Real w "Angular frequency";
algorithm 
  y := A*sin(w*u);
end fun7;

Automatically generated Fri Nov 12 16:31:49 2010.