Download WAVETRAIN User Guide - Mathematical & Computer Sciences
Transcript
0 & 1 & 0 & 0 0 0 & & & 0 0 1/(NU+c) Wavetrain converts this file into a series of Fortran77 subroutines. Before describing the various sections of this file, a summary is given of the syntax that is used. Case sensitivity: Names of variables and parameters are case sensitive. Derivatives: Derivatives are denoted by . For example, for a partial differential equation variable u: if x is the space variable then u x denotes du/dx and u xx denotes d2 u/dx2 ; if xi is the space variable then u xi denotes du/dxi and u xixi denotes d2 u/dxi2 ; if xx is the space variable then u xx denotes du/dxx and u xxxx denotes d2 u/dxx2 . (It would be rather pathological to choose xx as the space variable, but it would not cause difficulties.) Spaces and blank lines: Spaces and blank lines are allowed and are ignored, but each of the required entries must be on a single line: line breaks are not allowed. Arithmetic: Powers are denoted by ∧ or ∗∗ Multiplication is denoted by ∗ Division is denoted by / Addition is denoted by + Subtraction is denoted by − Brackets must be rounded, ( and ) Integer division is not allowed. For example (4/3) may be evaluated as 1 (integer part) or 1.333 depending on the context. Therefore 4.0/3.0 should be used instead. Mathematical functions: The following standard mathematical functions are allowed: abs: absolute value. acos: inverse cosine; result between 0 and π. asin: inverse sine; result between −π/2 and π/2. atan: inverse tangent; result between −π/2 and π/2. cos: cosine, angle in radians. cosh: hyperbolic cosine. exp: exponential function. log: natural logarithm. log10: base 10 logarithm. sin: sine, angle in radians. sinh: hyperbolic sine. sqrt: square root. 39