blockQAGIL_quadrature
Extends from Icons.Block (Icon for blocks).
Information
Block for accessing the external GSL QAGIL integration routine, for integration from -infinity to b.
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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n_par | 1 | Number of parameters in integrand |
| Integer | limit | 1000 | |
| Real | rel_err | 1.e-7 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | b | ||
| Modelica.Blocks.Interfaces.RealInput[n_par] | par | ||
| Modelica.Blocks.Interfaces.RealOutput | y |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | err |