我不能用两个滚轮来制作模型。有趣的是,我可以用一个轮子建立模型。如果我在任何地方添加任何其他轮子,那么它将无法正常工作。
我想构建一个带有四个轮子的车身,以便为驾驶提供动画效果。它在车身上只有一个车轮或一个车轮副的情况下可以“很好地”工作。
model Rohmodell
inner Modelica.Mechanics.MultiBody.World world(defaultAxisLength = 1, n = {0, 0, -1}) annotation(
Placement(visible = true, transformation(origin = {-90, -90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Mechanics.MultiBody.Parts.RollingWheelSet wheelSet1(wheelDistance = 2, wheelMass = 31, wheelRadius = 1, wheel_I_axis = 1, wheel_I_long = 1, x(start = 0), y(start = 0)) annotation(
Placement(visible = true, transformation(origin = {0, 38}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Mechanics.MultiBody.Parts.Body body1(m = 1000) annotation(
Placement(visible = true, transformation(origin = {10, 8}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Mechanics.MultiBody.Parts.FixedTranslation fixedTranslation1(r = {-3, 0, 0}) annotation(
Placement(visible = true, transformation(origin = {0, -14}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
Modelica.Mechanics.MultiBody.Parts.Body body2(m = 1000) annotation(
Placement(visible = true, transformation(origin = {10, -38}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Mechanics.MultiBody.Parts.RollingWheelSet wheelSet(wheelDistance = 2, wheelMass = 31, wheelRadius = 1, x(start = -3)) annotation(
Placement(visible = true, transformation(origin = {0, -66}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(body1.frame_a, wheelSet1.frameMiddle) annotation(
Line(points = {{0, 8}, {0, 36}}, color = {95, 95, 95}));
connect(fixedTranslation1.frame_a, body1.frame_a) annotation(
Line(points = {{0, -4}, {0, 8}}, color = {95, 95, 95}));
connect(fixedTranslation1.frame_b, body2.frame_a) annotation(
Line(points = {{0, -24}, {0, -38}}, color = {95, 95, 95}));
connect(wheelSet.frameMiddle, body2.frame_a) annotation(
Line(points = {{0, -68}, {0, -68}, {0, -38}, {0, -38}}, color = {95, 95, 95}));
annotation(
uses(Modelica(version = "3.2.3")));end Rohmodell;
错误很长,所以我只张贴标题:
模型在结构上是奇异的,发现排序方程时出错
内部错误转换模块PFPlusExt索引减少方法Pantelides失败!