blockCQUAD_quadrature

Extends from Icons.Block (Icon for blocks).

Information

Block for accessing the external GSL CQUAD doubly-adaptive integration routine, which can handle most types of singularities in the region of integration.

IMPORTANT!!!: The integrand-setup model 'CreateIntegrand' (or a duplicate) must be run before using GSL integration routines or blocks within a larger Modelica model. (Alternatively, one could edit integrand.c directly and then compile "by hand" in a command window:
gcc -fPIC -c integrand.c integration_mi.c
gcc -shared integration.o integration_mi.o -o libgsl_integration_MI.so  [.dll for windows])

Parameters

TypeNameDefaultDescription
Integern_par1Number of parameters in integrand
Integern_int100
Realrel_err1.e-7

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputa
Modelica.Blocks.Interfaces.RealInputb
Modelica.Blocks.Interfaces.RealInput[n_par]par
Modelica.Blocks.Interfaces.RealOutputy

Components

TypeNameDefaultDescription
Realerr