We are hiring ! See our job offers.
Revision 4eaf0dce8350a336dd310a788f96f236db7f0d7f authored by Eh Tan on 08 September 2008, 19:18:16 UTC, committed by Eh Tan on 08 September 2008, 19:18:16 UTC
1 parent b20f4d7
Raw File
CitcomSImportHDF5.net.in
//
// time: Fri Dec  1 12:24:20 2006
//
// version: 3.2.0 (format), 4.3.2 (DX)
//
//
//
// macro reference (direct): RTFtoXYZ @dxmacrodir@/RTFtoXYZ.net
include "RTFtoXYZ.net"
//
// macro reference (direct): VelocityRTFtoXYZ @dxmacrodir@/VelocityRTFtoXYZ.net
include "VelocityRTFtoXYZ.net"
//
// Begin MDF
// MODULE CitcomSImportHDF5
// CATEGORY Macros
// DESCRIPTION import CitcomS HDF5 data
// INPUT filename1; string; (none); Filename of CitcomS HDF5 time-independent data
// INPUT filename2; string; (none); Filename of CitcomS HDF5 time-dependent data
// INPUT reduced; integer or integer list; (1); Reduce resolution of velocity
// INPUT caplist; integer or integer list; (0); A list of caps to display
// OPTIONS 0,1,2,3,4,5,6,7,8,9,10,11 
// OUTPUT velocity; group;  
// OUTPUT temperature; group;  
// OUTPUT viscosity; group;  
// End MDF
// workspace: width = 835, height = 820
// layout: snap = 0, width = 50, height = 50, align = NN
//
macro CitcomSImportHDF5(
 filename1
,filename2
,reduced
,caplist
) -> (
 velocity
,temperature
,viscosity
) {
    // 
    // node CollectMultiGrid[3]: x = 635, y = 444, inputs = 4, label = temperature
    // input[2]: defaulting = 1, visible = 1, type = 32, value = "cap0"
    // input[4]: defaulting = 1, visible = 1, type = 32, value = "cap1"
    //
CitcomSImportHDF5_CollectMultiGrid_3_out_1 = 
    CollectMultiGrid(
    NULL,
    NULL,
    NULL,
    NULL
    ) [instance: 3, cache: 1];
    // 
    // node GetLocal[3]: x = 679, y = 522, inputs = 3, label = GetLocal
    // input[1]: defaulting = 1, visible = 1, type = 67108863, value = NULL
    //
CitcomSImportHDF5_GetLocal_3_out_1,
CitcomSImportHDF5_GetLocal_3_out_2 = 
    GetLocal(
    CitcomSImportHDF5_CollectMultiGrid_3_out_1,
    NULL,
    NULL
    ) [instance: 3, cache: 1];
    // 
    // node Input[1]: x = 169, y = 4, inputs = 0, label = Input
    // parameter: position = 2, name = 'filename2', value = '(none)', descriptive = 1, description = 'Filename of CitcomS HDF5 time-dependent data', required = 1, visible = 1
    //
CitcomSImportHDF5_Input_1_out_1 = filename2;
    // 
    // node Input[4]: x = 325, y = 0, inputs = 0, label = Input
    // parameter: position = 4, name = 'caplist', value = '(0)', descriptive = 1, description = 'A list of caps to display', required = 0, visible = 1
    //
CitcomSImportHDF5_Input_4_out_1 = caplist;
    // 
    // node Inquire[1]: x = 558, y = 87, inputs = 3, label = Inquire
    //
CitcomSImportHDF5_Inquire_1_out_1 = 
    Inquire(
    CitcomSImportHDF5_Input_4_out_1,
    NULL,
    NULL
    ) [instance: 1, cache: 1];
    // 
    // node Compute[85]: x = 650, y = 116, inputs = 3, label = Compute
    // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0? 2: 1"
    // expression: value = a? 2: 1
    // name[2]: value = a
    // name[3]: value = b
    //
CitcomSImportHDF5_Compute_85_out_1 = 
    Compute(
    "$0? 2: 1",
    CitcomSImportHDF5_Inquire_1_out_1,
    NULL
    ) [instance: 85, cache: 1];
    // 
    // node Switch[1]: x = 739, y = 134, inputs = 3, label = Switch
    // input[3]: defaulting = 0, visible = 1, type = 16777245, value = {0}
    //
CitcomSImportHDF5_Switch_1_out_1 = 
    Switch(
    CitcomSImportHDF5_Compute_85_out_1,
    CitcomSImportHDF5_Input_4_out_1,
    {0}
    ) [instance: 1, cache: 1];
    // 
    // node ForEachMember[1]: x = 715, y = 219, inputs = 1, label = ForEachMember
    //
CitcomSImportHDF5_ForEachMember_1_out_1,
CitcomSImportHDF5_ForEachMember_1_out_2,
CitcomSImportHDF5_ForEachMember_1_out_3 = 
    ForEachMember(
    CitcomSImportHDF5_Switch_1_out_1
    ) [instance: 1, cache: 1];
    // 
    // node Compute[86]: x = 418, y = 56, inputs = 3, label = Compute
    // input[1]: defaulting = 0, visible = 0, type = 32, value = "[0,0,0,$0]"
    // expression: value = [0,0,0,cap]
    // name[2]: value = cap
    // name[3]: value = b
    //
CitcomSImportHDF5_Compute_86_out_1 = 
    Compute(
    "[0,0,0,$0]",
    CitcomSImportHDF5_ForEachMember_1_out_1,
    NULL
    ) [instance: 86, cache: 1];
    // 
    // node ImportHDF5[7]: x = 516, y = 195, inputs = 12, label = ImportHDF5
    // input[2]: defaulting = 1, visible = 1, type = 8, value = [0,0,0,1]
    // input[3]: defaulting = 0, visible = 1, type = 16777217, value = {0,0,0,1}
    // input[4]: defaulting = 1, visible = 1, type = 16777217, value = {1,3,1,2}
    // input[5]: defaulting = 0, visible = 1, type = 32, value = "/viscosity"
    // input[6]: defaulting = 1, visible = 0, type = 3, value = 1
    // input[11]: defaulting = 1, visible = 0, type = 1, value = NULL
    // input[12]: defaulting = 1, visible = 1, type = 3, value = 1
    //
CitcomSImportHDF5_ImportHDF5_7_out_1,
CitcomSImportHDF5_ImportHDF5_7_out_2[cache: 0] = 
    ImportHDF5(
    CitcomSImportHDF5_Input_1_out_1,
    CitcomSImportHDF5_Compute_86_out_1,
    {0,0,0,1},
    NULL,
    "/viscosity",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) [instance: 7, cache: 1];
    // 
    // node ImportHDF5[2]: x = 346, y = 196, inputs = 12, label = ImportHDF5
    // input[2]: defaulting = 1, visible = 1, type = 8, value = [0,0,0,1]
    // input[3]: defaulting = 0, visible = 1, type = 16777217, value = {0,0,0,1}
    // input[4]: defaulting = 1, visible = 1, type = 16777217, value = {1,3,1,2}
    // input[5]: defaulting = 0, visible = 1, type = 32, value = "/temperature"
    // input[6]: defaulting = 1, visible = 0, type = 3, value = 1
    // input[11]: defaulting = 1, visible = 0, type = 1, value = NULL
    // input[12]: defaulting = 1, visible = 1, type = 3, value = 1
    //
CitcomSImportHDF5_ImportHDF5_2_out_1,
CitcomSImportHDF5_ImportHDF5_2_out_2[cache: 0] = 
    ImportHDF5(
    CitcomSImportHDF5_Input_1_out_1,
    CitcomSImportHDF5_Compute_86_out_1,
    {0,0,0,1},
    NULL,
    "/temperature",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) [instance: 2, cache: 1];
    // 
    // node ImportHDF5[6]: x = 178, y = 197, inputs = 12, label = ImportHDF5
    // input[2]: defaulting = 1, visible = 1, type = 8, value = [0,0,0,1]
    // input[3]: defaulting = 0, visible = 1, type = 16777217, value = {0,0,0,1}
    // input[4]: defaulting = 1, visible = 1, type = 16777217, value = {1,3,1,2}
    // input[5]: defaulting = 0, visible = 1, type = 32, value = "/velocity"
    // input[6]: defaulting = 1, visible = 0, type = 3, value = 1
    // input[11]: defaulting = 1, visible = 0, type = 1, value = NULL
    // input[12]: defaulting = 0, visible = 1, type = 3, value = 1
    //
CitcomSImportHDF5_ImportHDF5_6_out_1,
CitcomSImportHDF5_ImportHDF5_6_out_2[cache: 0] = 
    ImportHDF5(
    CitcomSImportHDF5_Input_1_out_1,
    CitcomSImportHDF5_Compute_86_out_1,
    {0,0,0,1},
    NULL,
    "/velocity",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    1
    ) [instance: 6, cache: 1];
    // 
    // node Input[2]: x = 0, y = 6, inputs = 0, label = Input
    // parameter: position = 1, name = 'filename1', value = '(none)', descriptive = 1, description = 'Filename of CitcomS HDF5 time-independent data', required = 1, visible = 1
    //
CitcomSImportHDF5_Input_2_out_1 = filename1;
    // 
    // node ImportHDF5[1]: x = 9, y = 197, inputs = 12, label = ImportHDF5
    // input[2]: defaulting = 1, visible = 1, type = 16777217, value = {0,1,1}
    // input[3]: defaulting = 0, visible = 1, type = 16777217, value = {0,0,0,1}
    // input[4]: defaulting = 1, visible = 1, type = 16777217, value = {1,2,1}
    // input[5]: defaulting = 0, visible = 1, type = 32, value = "/coord"
    // input[6]: defaulting = 1, visible = 0, type = 3, value = 1
    // input[11]: defaulting = 1, visible = 0, type = 1, value = NULL
    // input[12]: defaulting = 0, visible = 1, type = 3, value = 1
    //
CitcomSImportHDF5_ImportHDF5_1_out_1,
CitcomSImportHDF5_ImportHDF5_1_out_2[cache: 0] = 
    ImportHDF5(
    CitcomSImportHDF5_Input_2_out_1,
    CitcomSImportHDF5_Compute_86_out_1,
    {0,0,0,1},
    NULL,
    "/coord",
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    1
    ) [instance: 1, cache: 1];
    // 
    // node Rename[1]: x = 33, y = 267, inputs = 3, label = Rename
    // input[2]: defaulting = 0, visible = 1, type = 32, value = "data"
    // input[3]: defaulting = 0, visible = 1, type = 32, value = "positions"
    //
CitcomSImportHDF5_Rename_1_out_1 = 
    Rename(
    CitcomSImportHDF5_ImportHDF5_1_out_1,
    "data",
    "positions"
    ) [instance: 1, cache: 1];
    // 
    // node RTFtoXYZ[3]: x = 31, y = 335, inputs = 1, label = RTFtoXYZ
    //
CitcomSImportHDF5_RTFtoXYZ_3_out_1 = 
    RTFtoXYZ(
    CitcomSImportHDF5_Rename_1_out_1
    ) [instance: 3, cache: 1];
    // 
    // node Replace[4]: x = 202, y = 291, inputs = 4, label = Replace
    // input[4]: defaulting = 0, visible = 1, type = 32, value = "velocity"
    //
CitcomSImportHDF5_Replace_4_out_1 = 
    Replace(
    CitcomSImportHDF5_ImportHDF5_6_out_1,
    CitcomSImportHDF5_RTFtoXYZ_3_out_1,
    NULL,
    "velocity"
    ) [instance: 4, cache: 1];
    // 
    // node Replace[1]: x = 370, y = 290, inputs = 4, label = Replace
    // input[4]: defaulting = 0, visible = 1, type = 32, value = "temperature"
    //
CitcomSImportHDF5_Replace_1_out_1 = 
    Replace(
    CitcomSImportHDF5_ImportHDF5_2_out_1,
    CitcomSImportHDF5_Replace_4_out_1,
    NULL,
    "temperature"
    ) [instance: 1, cache: 1];
    // 
    // node Replace[5]: x = 540, y = 289, inputs = 4, label = Replace
    // input[4]: defaulting = 0, visible = 1, type = 32, value = "viscosity"
    //
CitcomSImportHDF5_Replace_5_out_1 = 
    Replace(
    CitcomSImportHDF5_ImportHDF5_7_out_1,
    CitcomSImportHDF5_Replace_1_out_1,
    NULL,
    "viscosity"
    ) [instance: 5, cache: 1];
    // 
    // node Mark[20]: x = 576, y = 443, inputs = 2, label = Mark
    // input[2]: defaulting = 0, visible = 1, type = 32, value = "viscosity"
    //
CitcomSImportHDF5_Mark_20_out_1 = 
    Mark(
    CitcomSImportHDF5_Replace_5_out_1,
    "viscosity"
    ) [instance: 20, cache: 1];
    // 
    // node Append[4]: x = 564, y = 599, inputs = 5, label = Append
    //
CitcomSImportHDF5_Append_4_out_1 = 
    Append(
    CitcomSImportHDF5_GetLocal_3_out_1,
    CitcomSImportHDF5_Mark_20_out_1,
    NULL,
    NULL,
    NULL
    ) [instance: 4, cache: 1];
    // 
    // node CollectMultiGrid[4]: x = 403, y = 453, inputs = 4, label = temperature
    // input[2]: defaulting = 1, visible = 1, type = 32, value = "cap0"
    // input[4]: defaulting = 1, visible = 1, type = 32, value = "cap1"
    //
CitcomSImportHDF5_CollectMultiGrid_4_out_1 = 
    CollectMultiGrid(
    NULL,
    NULL,
    NULL,
    NULL
    ) [instance: 4, cache: 1];
    // 
    // node GetLocal[4]: x = 447, y = 531, inputs = 3, label = GetLocal
    // input[1]: defaulting = 1, visible = 1, type = 67108863, value = NULL
    //
CitcomSImportHDF5_GetLocal_4_out_1,
CitcomSImportHDF5_GetLocal_4_out_2 = 
    GetLocal(
    CitcomSImportHDF5_CollectMultiGrid_4_out_1,
    NULL,
    NULL
    ) [instance: 4, cache: 1];
    // 
    // node Mark[18]: x = 343, y = 455, inputs = 2, label = Mark
    // input[2]: defaulting = 0, visible = 1, type = 32, value = "temperature"
    //
CitcomSImportHDF5_Mark_18_out_1 = 
    Mark(
    CitcomSImportHDF5_Replace_1_out_1,
    "temperature"
    ) [instance: 18, cache: 1];
    // 
    // node Append[5]: x = 331, y = 608, inputs = 5, label = Append
    //
CitcomSImportHDF5_Append_5_out_1 = 
    Append(
    CitcomSImportHDF5_GetLocal_4_out_1,
    CitcomSImportHDF5_Mark_18_out_1,
    NULL,
    NULL,
    NULL
    ) [instance: 5, cache: 1];
    // 
    // node CollectMultiGrid[5]: x = 176, y = 486, inputs = 4, label = temperature
    // input[2]: defaulting = 1, visible = 1, type = 32, value = "cap0"
    // input[4]: defaulting = 1, visible = 1, type = 32, value = "cap1"
    //
CitcomSImportHDF5_CollectMultiGrid_5_out_1 = 
    CollectMultiGrid(
    NULL,
    NULL,
    NULL,
    NULL
    ) [instance: 5, cache: 1];
    // 
    // node GetLocal[5]: x = 220, y = 571, inputs = 3, label = GetLocal
    // input[1]: defaulting = 1, visible = 1, type = 67108863, value = NULL
    //
CitcomSImportHDF5_GetLocal_5_out_1,
CitcomSImportHDF5_GetLocal_5_out_2 = 
    GetLocal(
    CitcomSImportHDF5_CollectMultiGrid_5_out_1,
    NULL,
    NULL
    ) [instance: 5, cache: 1];
    // 
    // node Mark[19]: x = 102, y = 421, inputs = 2, label = Mark
    // input[2]: defaulting = 0, visible = 1, type = 32, value = "velocity"
    //
CitcomSImportHDF5_Mark_19_out_1 = 
    Mark(
    CitcomSImportHDF5_Replace_4_out_1,
    "velocity"
    ) [instance: 19, cache: 1];
    // 
    // node Input[3]: x = 251, y = 0, inputs = 0, label = Input
    // parameter: position = 3, name = 'reduced', value = '(1)', descriptive = 1, description = 'Reduce resolution of velocity', required = 0, visible = 1
    //
CitcomSImportHDF5_Input_3_out_1 = reduced;
    // 
    // node Reduce[1]: x = 112, y = 487, inputs = 2, label = Reduce
    //
CitcomSImportHDF5_Reduce_1_out_1 = 
    Reduce(
    CitcomSImportHDF5_Mark_19_out_1,
    CitcomSImportHDF5_Input_3_out_1
    ) [instance: 1, cache: 1];
    // 
    // node VelocityRTFtoXYZ[2]: x = 75, y = 563, inputs = 1, label = VelocityRTFtoXYZ
    //
CitcomSImportHDF5_VelocityRTFtoXYZ_2_out_1 = 
    VelocityRTFtoXYZ(
    CitcomSImportHDF5_Reduce_1_out_1
    ) [instance: 2, cache: 1];
    // 
    // node Append[6]: x = 105, y = 648, inputs = 5, label = Append
    //
CitcomSImportHDF5_Append_6_out_1 = 
    Append(
    CitcomSImportHDF5_GetLocal_5_out_1,
    CitcomSImportHDF5_VelocityRTFtoXYZ_2_out_1,
    NULL,
    NULL,
    NULL
    ) [instance: 6, cache: 1];
    // 
    // node Output[1]: x = 138, y = 755, inputs = 1, label = Output
    // parameter: position = 1, name = 'velocity', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1
    //
velocity = CitcomSImportHDF5_Append_6_out_1;
    // 
    // node Output[2]: x = 364, y = 758, inputs = 1, label = Output
    // parameter: position = 2, name = 'temperature', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1
    //
temperature = CitcomSImportHDF5_Append_5_out_1;
    // 
    // node Output[3]: x = 597, y = 750, inputs = 1, label = Output
    // parameter: position = 3, name = 'viscosity', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1
    //
viscosity = CitcomSImportHDF5_Append_4_out_1;
    // 
    // node SetLocal[3]: x = 680, y = 673, inputs = 3, label = SetLocal
    //
    SetLocal(
    CitcomSImportHDF5_Append_4_out_1,
    CitcomSImportHDF5_GetLocal_3_out_2,
    NULL
    ) [instance: 3, cache: 1];
    // 
    // node SetLocal[4]: x = 448, y = 682, inputs = 3, label = SetLocal
    //
    SetLocal(
    CitcomSImportHDF5_Append_5_out_1,
    CitcomSImportHDF5_GetLocal_4_out_2,
    NULL
    ) [instance: 4, cache: 1];
    // 
    // node SetLocal[5]: x = 221, y = 722, inputs = 3, label = SetLocal
    //
    SetLocal(
    CitcomSImportHDF5_Append_6_out_1,
    CitcomSImportHDF5_GetLocal_5_out_2,
    NULL
    ) [instance: 5, cache: 1];
// network: end of macro body
}
CitcomSImportHDF5_CollectMultiGrid_3_out_1 = NULL;
CitcomSImportHDF5_GetLocal_3_out_1 = NULL;
CitcomSImportHDF5_GetLocal_3_out_2 = NULL;
CitcomSImportHDF5_Input_1_out_1 = NULL;
CitcomSImportHDF5_Input_4_out_1 = NULL;
CitcomSImportHDF5_Inquire_1_out_1 = NULL;
CitcomSImportHDF5_Compute_85_out_1 = NULL;
CitcomSImportHDF5_Switch_1_out_1 = NULL;
CitcomSImportHDF5_ForEachMember_1_out_1 = NULL;
CitcomSImportHDF5_Compute_86_out_1 = NULL;
CitcomSImportHDF5_ImportHDF5_7_out_1 = NULL;
CitcomSImportHDF5_ImportHDF5_2_out_1 = NULL;
CitcomSImportHDF5_ImportHDF5_6_out_1 = NULL;
CitcomSImportHDF5_Input_2_out_1 = NULL;
CitcomSImportHDF5_ImportHDF5_1_out_1 = NULL;
CitcomSImportHDF5_Rename_1_out_1 = NULL;
CitcomSImportHDF5_RTFtoXYZ_3_out_1 = NULL;
CitcomSImportHDF5_Replace_4_out_1 = NULL;
CitcomSImportHDF5_Replace_1_out_1 = NULL;
CitcomSImportHDF5_Replace_5_out_1 = NULL;
CitcomSImportHDF5_Mark_20_out_1 = NULL;
CitcomSImportHDF5_Append_4_out_1 = NULL;
CitcomSImportHDF5_CollectMultiGrid_4_out_1 = NULL;
CitcomSImportHDF5_GetLocal_4_out_1 = NULL;
CitcomSImportHDF5_GetLocal_4_out_2 = NULL;
CitcomSImportHDF5_Mark_18_out_1 = NULL;
CitcomSImportHDF5_Append_5_out_1 = NULL;
CitcomSImportHDF5_CollectMultiGrid_5_out_1 = NULL;
CitcomSImportHDF5_GetLocal_5_out_1 = NULL;
CitcomSImportHDF5_GetLocal_5_out_2 = NULL;
CitcomSImportHDF5_Mark_19_out_1 = NULL;
CitcomSImportHDF5_Input_3_out_1 = NULL;
CitcomSImportHDF5_Reduce_1_out_1 = NULL;
CitcomSImportHDF5_VelocityRTFtoXYZ_2_out_1 = NULL;
CitcomSImportHDF5_Append_6_out_1 = NULL;
back to top