Electromagnet: No results (Time Domain)
I have trouble running the time domain tutorial of electromagnet.pro:
- All results are zero.
- The I(t) plot does not look as expected.
Steps
- ONELAB bundle from 13/05/2022
- Latest tutorials commit (070d2b1e)
- In Gmsh GUI, open
electromagnet.pro -
GetDP/Resolution=Magnetodynamics2D_av -
GetDP/Post-processing=dyn -
Model parameters/Analysis Type=Time-domain - press
Run
Result
-
Post-processing/j== 0,az== 0, andb== 0 - Plotting
Model parameters/Currentvs.GetDP/Timedoes not show the anticipated step-function (see code below), but a linear ramp from 1e-4 to 0.19
Related Code (unmodified)
electromagnet.pro, line 67 ff.
TimeInit = 0; // start simulation at time = 0s
TimeFinal = 20e-3; // stop simulation at time = 20 ms
DeltaTime = 1e-3; // use time steps equal to 1 ms
// Define the time modulation of the current source, i.e. a linear ramp from
// 0 to 1 until 10 ms, then a constant value of 1:
myModulation[] = ($Time < TimeFinal / 2) ? (2 / TimeFinal * $Time) : 1;
Edited by Bernd Breitkreutz
