#include <belfem_user_api>#include <algorithm>#include <fstream>#include <sstream>#include <string>#include <vector>Functions | |
| real | my_current (const real t) |
| Custom current source with interpolation from data file. | |
| void | MyCurrent_init (SourceFunction *source) |
Custom current source with interpolation from data file.
| t | time (s) |
The file is a two-column ( time, value ) text table. It is read on the first call and kept for the life of the process. Arguments outside the sampled range are clamped to the end values.
| void MyCurrent_init | ( | SourceFunction * | source | ) |