如何在 Dymola 中通过更改参数继续模拟运动? [英] How can I continue simulating a motion with changing parameters in Dymola?

查看:60
本文介绍了如何在 Dymola 中通过更改参数继续模拟运动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建电梯模型,想在 Dymola 中模拟从起点到固定目的地的运动.在每次模拟之后,例如电梯到了一个目的地.我想从上一个位置继续移动到下一个位置.在我的模型中,使用了一个 PID 控制器,它有两个输入(目的地位置和当前位置).我每次都复制dsfinal"输出文件,并将其定义为dsin"输入文件作为下一次的起始条件.但是接收定义的目标位置的输入信号总是记住第一次模拟中的那个.这意味着,PID 控制器的定义值已经改变,但最终进入 PID 控制器的值保持不变.有人可以给一个提示,如何解决这个问题?谢谢.PID 控制器

I am building a model of an elevator and want to simulate its motion from the start point to a settled destination in Dymola. After each simulation, e.g. the elevator has reached one destination. I would like to continue the motion to next position from the previous. In my model a PID-controller has been used, which has two inputs(position of destination and current position). I copy each time the "dsfinal" output file and define it as the "dsin" input file as starting conditions for next time. But the signal of the input, which receives the defined destination position, remembers always the one in the first simulation. It means, the defined value out of PID-controller has been changed, but the value, which eventually goes into the PID-controller remains unchanged. Could someone give a tip, how to solve this problem? Thanks. PID-controller

推荐答案

我想我没有完全理解这个问题,但是否有可能从 const 块更改为一个块非恒定输出?根据您的描述,我认为使用 Modelica.Blocks.Sources.TimeTable 并指定目标位置随时间变化最有意义.

I think I didn't fully understand the question, but would it be possible to change from the const block to a block with a non-constant output? From your description I think it would make most sense to use a Modelica.Blocks.Sources.TimeTable and specify the destination position over time.

这样您就不必开始新的模拟,只需增加模拟时间并指定所需的轨迹,就可以摆脱文件复制等操作.

This way you would not have to start a new simulation and you could get rid the file-copying etc. by just increasing the simulation time and specifying the desired trajectory.

这篇关于如何在 Dymola 中通过更改参数继续模拟运动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆