+ Reply to Thread
Results 1 to 2 of 2

Thread: Question about RAMP3 function

  1. #1
    Senior Member
    Join Date
    Feb 2010
    Posts
    1,988
    For RAMP3 function, if the positive rate limit is 10, the negative rate limit is -10, and X=-27. How does it calculate the output for t=DELT? If it will consider (-27-0)/DELT <-10, the output Y=-10*DELT+0. Or it won't do such a calculation for the first time step. I think it won't do it, but I need to confirm. By the way, how the function makes it. If the code is like:

    IF (TIMEZERO) THEN
    Y=X
    ELSEIF ((X(t)-X(t-DELT))/DELT>10) THEN
    X(t)=X(t-DELT)+10*DELT
    ELSEIF ...
    ENDIF

    Thanks.

  2. #2
    Senior Member
    Join Date
    Feb 2010
    Posts
    104
    The RAMP3 function output at time t = 0.0 (or TIMEZERO) is always the input X.

    On subsequent timesteps (ie. t = nDELT), the output is calculated according to:

    If DELTX < 0 && abs(DELTX) <= Maximum negative rate, then RAMP3 = X
    If DELTX < 0 && abs(DELTX) > Maximum negative rate, then RAMP3 = X - Maximum negative rate
    If DELTX > 0 && DELTX <= Maximum positive rate, then RAMP3 = X
    If DELTX > 0 && DELTX > Maximum positive rate, then RAMP3 = X + Maximum positive rate

    where,

    DELTX = change in input since last time step
    Maximum positive rate = RATE1*DELT
    Maximum negative rate = RATE2*DELT

    Regards,

    John E. Nordstrom, P.Eng.
    Software Applications Engineer
    Manitoba HVDC Research Centre Inc.






+ Reply to Thread

Similar Threads

  1. modeling transfer function
    By Anonymous in forum General
    Replies: 2
    Last Post: 02-19-2010, 03:48 AM
  2. Ramp Down function
    By pathakashray in forum PSCAD Example Downloads
    Replies: 0
    Last Post: 01-06-2010, 07:18 AM
  3. non-linear transfer function
    By Anonymous in forum General Help
    Replies: 0
    Last Post: 11-07-2006, 11:05 AM
  4. Name Of Function ?
    By Anonymous in forum Component Design
    Replies: 2
    Last Post: 11-03-2005, 06:41 AM
  5. use of CEIL ,FLOOR function
    By Anonymous in forum General Help
    Replies: 2
    Last Post: 03-01-2005, 03:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts