impure functionintegrand_setup
Integrand Setup for GSL integration routines
Extends from Modelica.Icons.Function (Icon for functions).
Information
Integrand-setup "function" for using GSL integration routines within a larger Modelica model.Wherever possible, Modelica.Utilities routines are used to handle file / system commands. The current exception is the use of 'gcc' to compile the libgsl_integration_MI.so / libgsl_integration_MI.dll library. This is standard on any Linux system and is available for any Windows system via 'mingw'.
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]
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | C_integrand | "exp(-x*x)" |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer[2] | rcode |