Clear Filters
Clear Filters

Creating source unsteady sinus wave of gas pressure in simscape

3 views (last 30 days)
I would like to create an sinus wave of gas pressure as a source in modelling pneumatic system in simscape.
The options, that I know - reservoir the input is constant pressure
Constant volume vessel will provide vessel discharging
Thanks for any help

Accepted Answer

Jack on 30 Mar 2023
To create a sinusoidal wave of gas pressure as a source in a pneumatic system modeled in Simulink/Simscape, you can use the "Signal Builder" block in Simulink to generate a sinusoidal waveform and then feed it into a "Pressure Source" block in Simscape. Here are the steps:
  1. Open a new Simulink model.
  2. Add a "Signal Builder" block from the Simulink Library Browser to your model.
  3. Open the Signal Builder block and create a new signal by clicking the "New" button. In the "Signal Attributes" tab, set the "Time" range and the "Amplitude" and "Offset" values to define the sinusoidal waveform you want to generate. For example, you can set the "Time" range to [0 10] and the "Amplitude" to 1 to generate a sinusoidal waveform with a period of 2 seconds and an amplitude of 1.
  4. Add a "Pressure Source" block from the Simscape Foundation library to your model.
  5. Connect the output of the Signal Builder block to the "p" port of the Pressure Source block.
  6. Double-click on the Pressure Source block to open its block parameters. Set the "Pressure" parameter to "Custom" and select "p" as the input signal.
  7. Optionally, you can adjust other parameters of the Pressure Source block, such as the "Volume" or the "Initial Pressure".
Once you have completed these steps, you can simulate your model and observe the sinusoidal pressure waveform generated by the Signal Builder block being fed into the Pressure Source block.

More Answers (0)


Find more on Gas Library in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!