// // time: Wed Apr 24 07:58:21 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE VolumeIntegrate // CATEGORY Macros // DESCRIPTION Integrates a field over a specifed volume // INPUT volume; field; (none); The volume within which to integrate // INPUT field; scalar or vector or field; (none); the field to integrate over the volume // OUTPUT flux; value or value list or field; the surface flux integral // End MDF // // comment: Given a volume and a scalar field, this macro computes the integrated field within the volume. // comment: // comment: Note that if you just want the volume contained within a surface, the Measure module will do this. // 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 = 465, height = 613 // layout: snap = 0, width = 50, height = 50, align = NN // macro VolumeIntegrate( volume ,field ) -> ( flux ) { // // node Input[1]: x = 68, y = 9, inputs = 0, label = Input // parameter: position = 1, name = 'volume', value = ' ', descriptive = 0, description = 'The volume within which to integrate', required = 1, visible = 1 // VolumeIntegrate_Input_1_out_1 = volume; // // node Inquire[1]: x = 43, y = 288, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "connection counts" // VolumeIntegrate_Inquire_1_out_1 = Inquire( VolumeIntegrate_Input_1_out_1, "connection counts", NULL ) [instance: 1, cache: 1]; // // node Measure[1]: x = 193, y = 280, inputs = 2, label = Measure // input[2]: defaulting = 0, visible = 1, type = 32, value = "element" // VolumeIntegrate_Measure_1_out_1 = Measure( VolumeIntegrate_Input_1_out_1, "element" ) [instance: 1, cache: 1]; // // node Input[2]: x = 422, y = 39, inputs = 0, label = Input // parameter: position = 2, name = 'field', value = ' ', descriptive = 0, description = 'the field to integrate over the volume', required = 1, visible = 1 // VolumeIntegrate_Input_2_out_1 = field; // // node Map[1]: x = 374, y = 160, inputs = 4, label = Map // VolumeIntegrate_Map_1_out_1 = Map( VolumeIntegrate_Input_1_out_1, VolumeIntegrate_Input_2_out_1, NULL, NULL ) [instance: 1, cache: 1]; // // node Post[2]: x = 412, y = 251, inputs = 2, label = Post // input[2]: defaulting = 0, visible = 1, type = 32, value = "connections" // VolumeIntegrate_Post_2_out_1 = Post( VolumeIntegrate_Map_1_out_1, "connections" ) [instance: 2, cache: 1]; // // node Compute[2]: x = 325, y = 336, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0*$1" // expression: value = triangle_area*local_flux // name[2]: value = triangle_area // name[3]: value = local_flux // VolumeIntegrate_Compute_2_out_1 = Compute( "$0*$1", VolumeIntegrate_Measure_1_out_1, VolumeIntegrate_Post_2_out_1 ) [instance: 2, cache: 1]; // // node Statistics[1]: x = 299, y = 414, inputs = 1, label = Statistics // VolumeIntegrate_Statistics_1_out_1, VolumeIntegrate_Statistics_1_out_2, VolumeIntegrate_Statistics_1_out_3, VolumeIntegrate_Statistics_1_out_4, VolumeIntegrate_Statistics_1_out_5 = Statistics( VolumeIntegrate_Compute_2_out_1 ) [instance: 1, cache: 1]; // // node Compute[3]: x = 156, y = 467, inputs = 3, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0*$1" // expression: value = num_connections*avg_flux // name[2]: value = num_connections // name[3]: value = avg_flux // VolumeIntegrate_Compute_3_out_1 = Compute( "$0*$1", VolumeIntegrate_Inquire_1_out_1, VolumeIntegrate_Statistics_1_out_1 ) [instance: 3, cache: 1]; // // node Output[1]: x = 170, y = 550, inputs = 1, label = Output // parameter: position = 1, name = 'flux', value = ' ', descriptive = 0, description = 'the surface flux integral', required = 0, visible = 1 // flux = VolumeIntegrate_Compute_3_out_1; // network: end of macro body } VolumeIntegrate_Input_1_out_1 = NULL; VolumeIntegrate_Inquire_1_out_1 = NULL; VolumeIntegrate_Measure_1_out_1 = NULL; VolumeIntegrate_Input_2_out_1 = NULL; VolumeIntegrate_Map_1_out_1 = NULL; VolumeIntegrate_Post_2_out_1 = NULL; VolumeIntegrate_Compute_2_out_1 = NULL; VolumeIntegrate_Statistics_1_out_1 = NULL; VolumeIntegrate_Compute_3_out_1 = NULL;