Description Usage Arguments Details Value Note Author(s) References Examples
Calculates and plots mechanical power and work.
1 2 | pow.work(t, pow = "const", p)
pow.work.plot(x)
|
t |
Values of a time sequence for calculation of power |
pow |
Mode of power calculation, constant or linear |
p |
Value of power for constant or slope for linear |
x |
power object calculated from pow.work |
A call to pow.work requires three arguments: a time sequence, a type of power function such as constant or linear, and a value of power for the parameter of the function.
The output of pow.work contains the values of power and work as a function of time. Then we call the plot function using its output as argument to the pow.work.plot function
t |
time sequence |
p.w |
matrix containing with power and work |
Functions used in Chapter 1 of Acevedo (2018)
Miguel F. Acevedo acevedo@unt.edu
Acevedo, M.F. 2018. Introduction to Renewable Electric Power Systems and the Environment with R. Boca Raton, FL: CRC Press. (ISBN 9781138197343)
1 2 3 4 5 6 | t <- seq(0,60,0.1)
x <- pow.work(t,pow="const",p=2)
pow.work.plot(x)
x <- pow.work(t,pow="linear",p=0.025)
pow.work.plot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.