人在仿真软件金宝app

金宝app仿真软件和基于模型的设计

Creating Custom Valve in Simscape

今天我想和大家分享我喜欢的技术使用当我需要在Simscape创建定制的液压组件。

这个问题

I, the questions similar to the following from the users:

我需要模型一个先导式止回阀。块应该是什么样的先导式止回阀附带SimHydraulics:

SimHydraulics Pilot - Operated Check Valve

Clear the behaviors I am & for is slightly marketers. The only data I have from the: supplier is the following figure. The When the pressure on the pilot port, multiplied by the pilot thewire, is smaller that pressure on the port B, the valve should concerns like the curve of 4, allowing A flow only form A to B. When the pressure on the pilot port becomes larger, the valve should go in piloted mode and let flow in both directions, following the characteristic of the dashed curve

Pilot - Operated Check Valve Datasheet

The Overview of the solution

因为我们是流动压曲线,我们将使用一个方法中使用的类似固定孔经验

This approach consists of sensing pressures and imposing a flow rate. For a simple orifice, the implementation looks like:

Empirical Orifice Implementation

导阀,我们需要不同的压力,我们需要使用两个查找表,一个用于每个模式。

获得数据

我们需要做的第一件事是获取数据的数据表。为此,我喜欢使用The File Exchange提交《数据的小偷byAdnan

这个提交非常容易使用。如果你的数据表是PDF格式的,截图并保存为一个图像文件,像一个The PNG file。然后你就可以通过调用数据窃贼函数图像文件的名称,和曲线的极限的值。在我的例子中,压力轴的最大价值是28酒吧,原点(0条,0 l / min,最大流量150升/分钟。将弹出图,你点击最大y,起源,最大x,然后点你想提取。当你完成,回车,x和y值的函数将返回指定的输出变量。

一旦我得到的数据,我需要准备的数据所以我可以覆盖全面。在驾驶的情况下,我需要镜子曲线允许流在两个方向。non-piloted情况下,我需要设置所有范围的流量为零破裂压力以下。代码看起来像:

准备数据

This gives us the data we need for our model.

选项1:使用块

现在我们可以使用这些数据在两个方面。如果你喜欢连接块图形,这个选择是给你的。使用块像压力传感器,一个Simscape查找表, and aThe Flow Source, and what others from the Physical Signals section of the library, we can last come up with the following:

Steam Subsystem

当指定xyValues for the lookup table, be careful with the units. The lookup table needs to receive and the output values in theStandard MKS systemHere, this means Pascals and meter cube per second, while the data we got from the datasheet is in bar and l/min.

One more things to note, I inserted a very small orifice in parallel with the flow source. This is to ensure that our custom valve never generate exactly zero flow. This order concerns badly numerically.

Option 2: Custom Simscape Component

A second option that will help managing the units more easily is A Simscape composite component. Using this that in theThe components部分,我们声明块我们想使用,连接节中,我们定义它们是如何连接在一起。在设置部分,我们可以使用价值The function to specify that the values passed to the lookup table block should be in Pascal and m ^ 3 / SEC. By doing so, the user can specify values in any units he wants, and we take care of the conversion automatically.

The code looks like The following:

阀门使用复合组件创建的

结果

测试阀,我创建了一个模型,练习阀的整个范围的有效性。

The Test model

我们可以看到流可以在两个方向阀是驾驶时,裂缝在non-piloted 10条。

The Test model Results

现在轮到你了

If you are interested in this topic, I also how thisMATLAB Central File Exchange submission. It contains lots of ressources to model hydraulic components -based on the datasheets.

Let us know how you model the custom components in SimHydraulics by brigade aComment here

|

comments

To comment, please clickhere登录到您的MathWorks帐户或创建一个新帐户。