//Maya ASCII 4.5 scene //Name: WindTunnelPressure.ma //Last modified: Tue, Jul 23, 2002 04:34:46 PM requires maya "4.5"; currentUnit -l centimeter -a degree -t ntsc; fileInfo "application" "/usr/alias_cuts/maya_main_irix_r+d/bin/maya.bin"; fileInfo "product" "Maya Unlimited 4.5"; fileInfo "version" "4.5CG"; fileInfo "cutIdentifier" "200207220603"; fileInfo "osv" "IRIX64 6.5 04151556 IP30"; createNode transform -s -n "persp"; setAttr ".v" no; setAttr ".t" -type "double3" 0.20251440221283268 6.428883308887416 34.636295494662782 ; setAttr ".r" -type "double3" -0.33835272960314178 0.6000000000005753 7.7654518624444906e-19 ; createNode camera -s -n "perspShape" -p "persp"; setAttr -k off ".v" no; setAttr ".coi" 40.676892501225744; setAttr ".imn" -type "string" "persp"; setAttr ".den" -type "string" "persp_depth"; setAttr ".man" -type "string" "persp_mask"; setAttr ".hc" -type "string" "viewSet -p %camera"; createNode transform -s -n "top"; setAttr ".v" no; setAttr ".t" -type "double3" 0 100 0 ; setAttr ".r" -type "double3" -89.999999999999986 0 0 ; createNode camera -s -n "topShape" -p "top"; setAttr -k off ".v" no; setAttr ".rnd" no; setAttr ".coi" 100; setAttr ".ow" 30; setAttr ".imn" -type "string" "top"; setAttr ".den" -type "string" "top_depth"; setAttr ".man" -type "string" "top_mask"; setAttr ".hc" -type "string" "viewSet -t %camera"; setAttr ".o" yes; createNode transform -s -n "front"; setAttr ".v" no; setAttr ".t" -type "double3" 0 0 100 ; createNode camera -s -n "frontShape" -p "front"; setAttr -k off ".v" no; setAttr ".rnd" no; setAttr ".coi" 100; setAttr ".ow" 30; setAttr ".imn" -type "string" "front"; setAttr ".den" -type "string" "front_depth"; setAttr ".man" -type "string" "front_mask"; setAttr ".hc" -type "string" "viewSet -f %camera"; setAttr ".o" yes; createNode transform -s -n "side"; setAttr ".v" no; setAttr ".t" -type "double3" 100 0 0 ; setAttr ".r" -type "double3" 0 89.999999999999986 0 ; createNode camera -s -n "sideShape" -p "side"; setAttr -k off ".v" no; setAttr ".rnd" no; setAttr ".coi" 100; setAttr ".ow" 30; setAttr ".imn" -type "string" "side"; setAttr ".den" -type "string" "side_depth"; setAttr ".man" -type "string" "side_mask"; setAttr ".hc" -type "string" "viewSet -s %camera"; setAttr ".o" yes; createNode transform -n "windTunnel"; setAttr ".t" -type "double3" 0 5.2304438834679141 0 ; setAttr ".r" -type "double3" 0.0093761700667096947 -0.2392616801904531 0.056942074030959591 ; setAttr ".s" -type "double3" 1.0299097217414335 1.0321402496293275 1 ; createNode fluidShape -n "windTunnelShape" -p "windTunnel"; addAttr -ci true -sn "windSpeed" -ln "windSpeed" -dv 10 -min 0 -max 200 -at "double"; addAttr -ci true -sn "tracers" -ln "tracers" -dv 4 -min 0 -max 30 -at "long"; addAttr -ci true -sn "nts" -ln "notes" -dt "string"; setAttr -k off ".v"; setAttr ".rt" 1; setAttr ".vf" 0; setAttr ".iss" yes; setAttr ".is2" yes; setAttr ".rw" 100; setAttr ".rh" 30; setAttr ".rd" 1; setAttr ".dw" 33; setAttr ".dh" 10; setAttr ".dd" 0.5; setAttr ".scd" 0; setAttr ".ssd" 1; setAttr ".bod" 4; setAttr ".vld" yes; setAttr ".vdl" 0.19416000000000003; setAttr ".vds" 3; setAttr ".hss" no; setAttr ".bndx" 0; setAttr ".dsc" 1; setAttr ".dsb" 0; setAttr ".fri" 1; setAttr ".tgr" 6; setAttr ".tmsc" 0.87379997968673706; setAttr ".tds" 0; setAttr ".tdf" 0; setAttr ".ttb" 0; setAttr ".buo" 1000; setAttr ".rin" 3; setAttr -s 4 ".cl"; setAttr ".cl[1].clp" 0; setAttr ".cl[1].clc" -type "float3" 0.082200006 0.25158674 0.685 ; setAttr ".cl[1].cli" 1; setAttr ".cl[2].clp" 0.77857142686843872; setAttr ".cl[2].clc" -type "float3" 1 0 0.0043334961 ; setAttr ".cl[2].cli" 1; setAttr ".cl[3].clp" 0.5; setAttr ".cl[3].clc" -type "float3" 0 0 0 ; setAttr ".cl[3].cli" 1; setAttr ".cl[4].clp" 1; setAttr ".cl[4].clc" -type "float3" 1 0.97907501 0.069999993 ; setAttr ".cl[4].cli" 1; setAttr ".coi" 8; setAttr -s 2 ".opa[0:1]" 0 0 1 1 1 1; setAttr ".t" -type "float3" 0.61176473 0.61176473 0.61176473 ; setAttr -s 3 ".i"; setAttr ".i[0].ip" 0; setAttr ".i[0].ic" -type "float3" 0 0 0 ; setAttr ".i[0].ii" 1; setAttr ".i[1].ip" 0.56428569555282593; setAttr ".i[1].ic" -type "float3" 0.89999998 0.2 0 ; setAttr ".i[1].ii" 1; setAttr ".i[2].ip" 1; setAttr ".i[2].ic" -type "float3" 1.5 1 0 ; setAttr ".i[2].ii" 1; setAttr ".env[0].envp" 0; setAttr ".env[0].envc" -type "float3" 0 0 0 ; setAttr ".env[0].envi" 1; setAttr ".edr" 0.13594000041484833; setAttr -k on ".windSpeed" 36.892; setAttr -k on ".tracers" 10; setAttr ".nts" -type "string" ( "You will see 2 errors when this scene is imported from Visor. They are safe to ignore. More details are below. \n\n"+ "This node simulates wind flowing through a shallow tunnel over a wing. Smoke tracers allow one to see the flow. The color represents the pressure term from the solver. Black is zero pressure, blue is negative and red/yellow is positive. Note that for pressure inputs on ramps the midpoint of the ramp( 0.5) is zero, rather than the left side. The pressure values fluctuate wildly partly due to the nature of the solver as well as the incompressibility of the Navier stokes equations. For fun one can try rotating the wing during playback to see the effect of different attack angles. Also one could change the color input to speed to visualize the wind speed.\n" + "Open the extra attributes section above to see custom wind tunnel attributes. Wind speed controls the velocity at the minX boundary and tracers is the number of smoke trails. These added attributes are used in an expression that uses setFluidAttr calls to set the boundary velocity(wind speed) and density( tracers ).\n" + "Any geometry can collide with the flow. Select the object and the fluid then make collide under the fluids menu. The flow will collide with the cross section of the object along the mid point of the fluid." + "\n\nYou will see 2 errors when this scene is imported from Visor. They are safe to ignore. Press Play to start the fluid simulation. The errors are:\n\n" +" // Error: line: No object matches: windTunnelShape\n" +" // Error: line: An execution error occured in the expression WindTunnelParticles:expression1."); createNode transform -n "nurbsSphere1"; setAttr ".t" -type "double3" 0.34844336460314196 5.7386231969017709 0.064616452877199304 ; setAttr ".r" -type "double3" 0.63430441218746203 -1.064841722347347 -14.026419700282759 ; setAttr ".s" -type "double3" 9.2621936882848726 1.5887764605044827 -1.6402569295832745 ; createNode nurbsSurface -n "nurbsSphereShape1" -p "nurbsSphere1"; setAttr -k off ".v"; setAttr ".vir" yes; setAttr ".vif" yes; setAttr ".tw" yes; setAttr -s 35 ".cp[0:34]" -type "double3" -1.7897152354996198e-17 0.32171257761534611 0 -1.7897152354996198e-17 0.32171257761534611 0 -1.7897152354996198e-17 0.32171257761534611 0 -1.7897152354996198e-17 0.32171257761534611 0 0 0 0 0 0 0 0 0 0 -1.7897152354996198e-17 0.32171257761534611 0 -0.00068969200685364829 0.10533405530923168 -0.010182961341068697 -1.7897152354996198e-17 0.32171257761534611 0 0 0.32171257761534611 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.0014740330252349665 -0.46245147784984653 -0.02176336852140523 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.00085469104544189448 0.26814401733414039 0.01261909053288357 -0.00051809506682798379 -0.16254305379838252 -0.0076494173980289123 0.00085469104544189426 0.26814401733414039 0.01261909053288357 0.0010192443020225483 0.57242411005293636 0.015048637973852573 0 0 0 0 0 0 0 0 0 0.00085469104544189448 0.26814401733414028 0.012619090532883482 0.00085469104544189448 0.26814401733414028 0.012619090532883482 0.00085469104544189448 0.26814401733414028 0.012619090532883482 0.00085469104544189448 0.26814401733414028 0.012619090532883482 0 0 0 0 0 0 0 0 0; setAttr ".dvu" 3; setAttr ".dvv" 3; setAttr ".cpr" 15; setAttr ".cps" 4; setAttr ".nufa" 4.5; setAttr ".nvfa" 4.5; createNode transform -n "WindTunnelCam"; setAttr ".t" -type "double3" 1.0255242845310064 6.2801338466756871 34.360046053751404 ; setAttr ".r" -type "double3" -1.5383527296023822 1.8000000000000105 -3.1075438164009539e-18 ; createNode camera -n "WindTunnelCamShape" -p "WindTunnelCam"; setAttr -k off ".v"; setAttr ".rnd" no; setAttr ".coi" 34.794480655052737; setAttr ".imn" -type "string" "persp1"; setAttr ".den" -type "string" "persp1_depth"; setAttr ".man" -type "string" "persp1_mask"; setAttr ".hc" -type "string" "viewSet -p %camera"; createNode lightLinker -n "lightLinker1"; createNode displayLayerManager -n "layerManager"; createNode displayLayer -n "defaultLayer"; createNode renderLayerManager -n "renderLayerManager"; createNode renderLayer -n "defaultRenderLayer"; createNode renderLayer -s -n "globalRender"; createNode shadingEngine -n "fluidShape1SG"; setAttr ".ihi" 0; setAttr ".ro" yes; createNode materialInfo -n "materialInfo1"; createNode script -n "sceneConfigurationScriptNode"; setAttr ".b" -type "string" "playbackOptions -min 0 -max 5000 -ast 0 -aet 5000 "; setAttr ".st" 6; createNode expression -n "expression1"; setAttr -k on ".nds"; setAttr -s 3 ".in"; setAttr -s 3 ".in"; setAttr ".ixp" -type "string" ( "float $vel = .I[0];\n" + "int $tracers = .I[1];\n" + "int $yres = .I[2];\n" + "float $density = 3.0;\n" + "// set velocity at min X boundary\n" + "setFluidAttr -at velocity -xi 0 -vv $vel 0 0 windTunnelShape;\n" + "int $i;\n" + "for($i = 0; $i < $tracers; $i++ ){\n" + " int $yIndex = (float)$yres *(((float)$i + 0.5)/(float)$tracers);\n" + " // emit tracers\n" + " setFluidAttr -at density -xi 0 -yi $yIndex -fv $density windTunnelShape;\n" + "}"); createNode makeNurbSphere -n "makeNurbSphere1"; setAttr ".ax" -type "double3" 0 1 0 ; setAttr ".r" 0.5; setAttr ".s" 4; setAttr ".nsp" 2; createNode geoConnector -n "geoConnector1"; select -ne :time1; setAttr ".o" 51; select -ne :renderPartition; setAttr -s 3 ".st"; select -ne :renderGlobalsList1; select -ne :defaultShaderList1; setAttr -s 3 ".s"; select -ne :postProcessList1; setAttr -s 2 ".p"; select -ne :lightList1; select -ne :initialShadingGroup; setAttr ".ro" yes; select -ne :initialParticleSE; setAttr ".ro" yes; select -ne :defaultRenderGlobals; setAttr ".sdf" -type "string" ""; setAttr ".pfm" -type "string" ""; setAttr ".top" 239; setAttr ".rght" 319; setAttr ".an" yes; setAttr ".fs" 1; setAttr ".ef" 100; setAttr ".ofc" 1; setAttr ".ofe" -type "string" ""; setAttr ".efe" -type "string" ""; setAttr ".lse" -type "string" ""; setAttr ".rse" -type "string" ""; setAttr ".oft" -type "string" ""; setAttr ".ifp" -type "string" ""; setAttr ".npu" 1; setAttr ".prm" -type "string" ""; setAttr ".pom" -type "string" ""; setAttr ".pfrm" -type "string" ""; setAttr ".pfom" -type "string" ""; connectAttr ":time1.o" "windTunnelShape.cti"; connectAttr "geoConnector1.res" "windTunnelShape.crs" -na; connectAttr "geoConnector1.fri" "windTunnelShape.cfr" -na; connectAttr "geoConnector1.swg" "windTunnelShape.cge" -na; connectAttr "makeNurbSphere1.os" "nurbsSphereShape1.cr"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[0].llnk"; connectAttr ":initialShadingGroup.msg" "lightLinker1.lnk[0].olnk"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[1].llnk"; connectAttr ":initialParticleSE.msg" "lightLinker1.lnk[1].olnk"; connectAttr ":defaultLightSet.msg" "lightLinker1.lnk[2].llnk"; connectAttr "fluidShape1SG.msg" "lightLinker1.lnk[2].olnk"; connectAttr "layerManager.dli[0]" "defaultLayer.id"; connectAttr "renderLayerManager.rlmi[0]" "defaultRenderLayer.rlid"; connectAttr "windTunnelShape.ocl" "fluidShape1SG.vs"; connectAttr "windTunnelShape.iog" "fluidShape1SG.dsm" -na; connectAttr "fluidShape1SG.msg" "materialInfo1.sg"; connectAttr ":time1.o" "expression1.tim"; connectAttr "windTunnelShape.windSpeed" "expression1.in[0]"; connectAttr "windTunnelShape.tracers" "expression1.in[1]"; connectAttr "windTunnelShape.rh" "expression1.in[2]"; connectAttr "nurbsSphereShape1.msg" "geoConnector1.own"; connectAttr "nurbsSphereShape1.wm" "geoConnector1.wm"; connectAttr "nurbsSphereShape1.l" "geoConnector1.lge"; connectAttr "fluidShape1SG.pa" ":renderPartition.st" -na; connectAttr "windTunnelShape.msg" ":defaultShaderList1.s" -na; connectAttr "lightLinker1.msg" ":lightList1.ln" -na; connectAttr "nurbsSphereShape1.iog" ":initialShadingGroup.dsm" -na; // End of WindTunnelPressure.ma