// // time: Wed Apr 24 07:53:15 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE Laplacian // CATEGORY Transformation // DESCRIPTION computes the Laplacian (del . del) of a scalar field // INPUT data; scalar field; (none); field on which to compute laplacian // OUTPUT laplacian; value or value list or field; laplacian of scalar field // End MDF // // comment: The Laplacian of a scalar field is computed by computing the gradient of the field and dotting the resultant vector field with itself. // comment: // comment: (C) COPYRIGHT International Business Machines Corp. 1996. // comment: All Rights Reserved. // comment: Licensed Materials - Property of IBM // comment: // comment: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of IBM not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. // comment: // comment: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IBM DOES NOT WARRANT AGAINST THE INFRINGMENT OF PATENTS, COPYRIGHT OR ANY OTHER INTELLECTUAL PROPERTY RIGHTS OF OTHERS. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. // workspace: width = 218, height = 440 // layout: snap = 0, width = 50, height = 50, align = CC // macro Laplacian( data ) -> ( laplacian ) { // // node Input[1]: x = 135, y = 27, inputs = 0, label = Input // parameter: position = 1, name = 'data', value = ' ', descriptive = 0, description = 'field on which to compute laplacian', required = 1, visible = 1 // Laplacian_Input_1_out_1 = data; // // node Gradient[1]: x = 151, y = 132, inputs = 2, label = Gradient // Laplacian_Gradient_1_out_1 = Gradient( Laplacian_Input_1_out_1, NULL ) [instance: 1, cache: 1]; // // node Compute[1]: x = 137, y = 259, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "dot($0, $0)" // expression: value = dot(grad_a, grad_a) // name[2]: value = grad_a // Laplacian_Compute_1_out_1 = Compute( "dot($0, $0)", Laplacian_Gradient_1_out_1 ) [instance: 1, cache: 1]; // // node Output[1]: x = 145, y = 377, inputs = 1, label = Output // parameter: position = 1, name = 'laplacian', value = ' ', descriptive = 0, description = 'laplacian of scalar field', required = 0, visible = 1 // laplacian = Laplacian_Compute_1_out_1; // network: end of macro body } Laplacian_Input_1_out_1 = NULL; Laplacian_Gradient_1_out_1 = NULL; Laplacian_Compute_1_out_1 = NULL;