    

 ## On this page

  

 

 # Ramps

 Last update: 16.07.2025 

The flow is the sequence of an array of ramps. Each ramp is defined by a duration, an amplitude, and an offset. The time sample is common to all the ramps.

The figure shows the output flow for a sequence of 3 ramps with the following inputs:

- durations: \[1., 3., 1.\]
- ts (timesample): 0.2
- amplitudes: \[1.8, -1.4, 1.0\]
- offsets: \[-0.8, 1.0, -0.4\]

![](/sites/default/files/git_ansys/scade_one_library_2025_r2_1/t__ramps_00.svg)

## Interface

NameKindTypeCommentSIZEPn/aNumber of rampsdurationsIfloat ^ SIZEDuration of each ramp  
Range: &amp;gt; 0tsIfloatTime sample for the duration of each ramp  
Range: &amp;gt;0amplitudesIfloat ^ SIZEGain to be applied to the output flow of each ramp (default 1 ^ SIZE)offsetsIfloat ^ SIZEOffset to be added to the output flow of each ramp (default 0 ^ SIZE)flowOfloatOutput flow**Constraint**: The ratio durations\[i\] / ts must be greater than 2, for *0 = i SIZE*.

**Parent topic:**[Sources::T](../../libraries/sources/sources_t.md)