TITLE "CUBE" SELECT errlim=1e-3 COORDINATES Cartesian3 DEFINITIONS P=vector(0,0,0) EXTRUSION SURFACE '1' z=0 LAYER 'bottom' SURFACE '2' z=1 LAYER 'middle' SURFACE '3' z=2 LAYER 'top' SURFACE '4' z=3 BOUNDARIES Limited REGION 'cube_bot' P=vector(0,0,0) LAYER 'bottom' START (0,0) LINE TO (1,0) LINE TO (1,1) LINE TO (0,1) LINE TO CLOSE Limited REGION 'cube_mid' P=vector(0,0,1) LAYER 'middle' START (0,0) LINE TO (1,0) LINE TO (1,1) LINE TO (0,1) LINE TO CLOSE Limited REGION 'cube_top' P=vector(0,0,0) LAYER 'top' START (0,0) LINE TO (1,0) LINE TO (1,1) LINE TO (0,1) LINE TO CLOSE PLOTS SUMMARY EXPORT FILE 'output.out' REPORT('avenergy') !SURF_INTEGRAL ( integrand, surface) REPORT(SURF_INTEGRAL (normal(+P), '3')) REPORT(SURF_INTEGRAL (normal(+P), '2')) !SURF_INTEGRAL ( integrand, surface, region ) REPORT(SURF_INTEGRAL (normal(+P), '3', 'cube_mid')) REPORT(SURF_INTEGRAL (normal(+P), '2', 'cube_mid')) !SURF_INTEGRAL ( integrand, surface, region, layer ) REPORT(SURF_INTEGRAL (normal(+P), '3', 'cube_mid', 'middle')) REPORT(SURF_INTEGRAL (normal(+P), '2', 'cube_mid','middle')) vector(P) on y=0.5 END