- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » High frequency limit in OpenModelica
High frequency limit in OpenModelica
High frequency limit in OpenModelica
Hi,
I am having problem to run OpenModelica for simulation that uses high frequency above 1e9Hz. The following code, does not give me the right sinusoidal plot. It can work with 1e8Hz and 1e9Hz (though 1e9Hz is already a bit staggered), but not for 1e10Hz. May I know what the problem is? and how I can resolve this. Thanks.
model testfreq
parameter Real f1=1e10;
Real u;
equation
u=sin(2*3.14*f1*time);
end testfreq;
simulate(testfreq,stopTime=10e-10)
plot(u)
Re: High frequency limit in OpenModelica
Change the solver to euler or dassl2. The dassl implementation has some issues with very small time steps (I think it uses comparisons with an absolute delta somewhere).
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » High frequency limit in OpenModelica