Download manual - Luman Magnum
Transcript
Now we enter a command that gives the cells name, ψ (”psi”), the Laplacian operator, the number of dimensions, and the function F . psi Y: <dimension> ∧ F In the above pseudocode specification, Y: is equvalent to the Laplacian operator. Think of the wedge as like the equal sign. We enclose the word ”dimension” in the <> symbols to designate that is is optional. If you leave out the dimension specifier, then the dimension defaults to 1. As an example that would be used in an HMD script, consider the one-dimensional Laplace’s equation. ∂2ψ =0 ∂x2 (2) The cell definition command for this would be the following code line. psi :Y 1 ∧ 0 ; If we use instead the two-dimensional Laplace’s equation, ∂2ψ ∂2ψ + =0 ∂x2 ∂y 2 (3) then we would use the following HMD command. psi :Y 2 ∧ 0 ; Or, consider a three-dimensional Poisson’s equation with a constant nonhomogeneous term. ∂2ψ ∂2ψ ∂2ψ + + =7 ∂x2 ∂y 2 ∂z 2 (4) The HMD command line for this case would be the following code line. psi :Y 3 ∧ 7 ; A Poisson’s equation with a general nonhomogeneous term that is a function of x, y, and z, becomes more involved. Now we must define a function in the HMD workspace that will later be called by the HMD solver. The Poisson’s equation of the form ∂2ψ ∂2ψ ∂2ψ + + = F (x, y, x) ∂x2 ∂y 2 ∂z 2 will be specified in the HMD script with the following line. 13 (5)