PV/WAVE Version 8.5 at UM/MCSR
PVWAVE is a comprehensive package for obtaining solutions for linear and nonlinear equations and has a powerful graphics feature that is capable of graphing complex functions.
Most if not all the famous mathematical and statistical functions and equations such as Error Function, Gamma Function, FFT, etc, are programmed in pv_wave and are available without much effort.
In this article a nonlinear equation is graphed using a function from PVWAVE. This example intends to show users how to invoke and run pvwave on willow.
The pvwave program listed below shows the strength of pvwave software. By using only a few instructions pvwave solves a very complex nonlinear equation.
You can provide PVWAVE CDs from Office of IT Helpdesk or you can contact assist at olemiss.edu for more information. The installation instructions of version 8.0 and 8.5 for Windows can be downloaded via the link below:
PVWAVE 8.0 Installation Manual (PDF)
PVWAVE 8.5 Installation Manual (PDF)
The following lines show how to run an example pvwave job called "chen5_ex.pro" that already exists under "/users/local/appl/examples/pv_wave" on willow.
From the willow command prompt, enter:
source /usr/local/vni/wave/bin/wvsetup (For tcsh and csh users)
 or
. /usr/local/vni/wave/bin/wvsetup.sh (For ksh and bash users)
wave
From the sweetgum command prompt, enter:
source /usr/local/vni5/wave/bin/wvsetup (For tcsh and csh users)
 or
. /usr/local/vni5/wave/bin/wvsetup.sh (For ksh and bash users)
 wave
Now enter the following command where "chen5_ex.pro" is the name of the pvwave job:
 WAVE>
.run /users/local/appl/examples/pv_wave/chen5_ex.pro
 Terminal output:
 % Compiled module: F. ;
% Compiled module: CHEN5_EX.
Enter the following to run your job:
 WAVE>
chen5_ex
 Terminal output:
 PVWAVE IMSL Mathematics is initialized. % Compiled module ZEROVECT.
When this command appears on the user's terminal, the graph of the function should also appear.
The command "chen5_ex" executes the job and draws the graph for the given function.
This example graphs and solves equation 13 obtained by J. M. Chen et al. in their paper published in Water Resources Research, Vol. 37, No. 4 pp.10911093, April, 2001.
The taxis on the graph represents the time in seconds and f(t) represents the rain fall intensity q(T), the rate at which the rainfall piles up on a certain soil (silt loam).
For more information refer to the above paper by Chen, et al. Results obtained here matches those obtained by Chen and the graph here is his figure 1.
This equation was later used by Sam G. of IT to obtain the graph of certain functions needed in solving Richards' Equation.
Please call Sam Gordji at 5022, email: ccsam@olemiss.edu if you have questions about pvwave. **Please note that this example requires Xwin to run.**
See: Xwin32 at MCSR.
Listing for pvwave program follows:
This graphs equation 13 on pg. 1092 of Ap. 2001 of WRR paper by J.M. Chen.
For the case when gama=5 & n=0, F(T)=5. This program should be named "chen5_ex.pro".
THE NEXT LINE IS THE START OF THE PROGRAM.
FUNCTION f,t
RETURN, .0018455*(SQRT(t/3.14)+1.)*exp(0.25*t)
END
PRO chen5_ex
MATH_INIT
t= INTERPOL([0,100],400000)
plot, t, f(t), xrange=[0,2], yrange=[.0018,.0023]
zero=zerovect(f(t),t)
print, zero
oplot, [zero], [f(zero)], psym=6
END
You can also type HELP at the WAVE> command line.
