Monday, July 02, 2007

Tutorial - Creating a view into the world of infrared

Tutorial - Creating a view into the world of infrared

Download the tutorial images: ir_tutorial.zip (1,633kb) filter_outline.zip (1,638kb)

This tutorial will take you through the steps of creating an image that serves as a good illustration of a view into the world of infrared. You will need one infrared photograph and one full color photograph taken from the exact same place (again, a tripod is ideal), a photograph of a filter, frame, or similar object, and Adobe Photoshop. For the purposes of this tutorial, I will be using Adobe Photoshop 5.0. The filter or frame will be used to frame the infrared portion of the image in the final composite. If you don't want to deal with finding, photographing, and masking the frame, you can use the one that I used in the above image.

First, open the image of the filter, or frame in Photoshop. You'll need to cut out the entire filter or frame, not including the center portion. If you do not know how to do this, use the filter included with this tutorial, and read up on masking later -- it's a good skill to have in your arsenal of image manipulation tricks.

Now, open both the color and infrared images. You'll probably want to auto-level the infrared image in Photoshop (Shift-Ctrl-L), or manipulate both images to make them look perfect before proceeding to the next step.


Fig 4. The original infrared and color images (above), and the masked filter (left).

Our goal is to merge all three images into our final product. First, click on the window with the color photo to make it active. We're going to copy its contents into a new Photoshop document. Hit Ctrl-A to select the entire image, and then Ctrl-C to copy it to the clipboard. Now, create a new Photoshop document (Ctrl-N), accept the defaults in the window by clicking "OK" (it will automatically size to the size of the image you're copying), and paste the image into the new windows (Ctrl-V). You will see a copy of the color image in your new window. If you don't see the layers control window, select the menu item Windows->Show Layers to make sure it is visible. Double click the "Layer 1" layer and rename it to something more descriptive, like "Color Image". Now, save the new document and continue. I'm going to refer to this new document as the composite image from now on.

Now we need to copy the entire contents of the infrared photo into the composite image's window as a new layer. Copy the contents of the infrared photo into the new window by following the same steps above. Click on the infrared image's window, hit Ctrl-A and then Ctrl-C. Click the composite image's window, and hit Ctrl-V to paste in the new layer. You'll see a new layer labeled "Layer 1" appear in the Layers tab in one of the control windows. Double-click on "Layer 1" to change the name to something more descriptive, such as ""Infrared Image".

Do the exact same thing with the filter image, and rename the layer to "Filter".

Fig 5. The layers palette and current image

Now we have a document with three layers: a color image, an infrared version of the same image, and a filter. In the composite image's window, you should only see the infrared image with a filter on top of it because the color layer is being blocked by the ones above it in the list of layers.

Our next goal is to size the filter to an appropriate size, and then apply a mask to the infrared layer to let the color image through everywhere except for the area inside the filter. Select the "Filter" layer so that it is hilighted in the layers window. Now, select Edit->Transform->Scale from your menu bar. Click on one of the corner rectangles, and drag the cursor around while holding the mouse button down. When you let go of the mouse button, the filter will resize itself to fit in the bounding box you just specified. Note that you can hold down the Shift key while resizing to force the filter to stay circular. You can also move the filter around by clicking anywhere inside the box and dragging the cursor while holding the mouse button down. Adjust the size and position of the filter until you are happy. When you are done, double click anywhere in the box to commit your changes.

The final step is to reveal the color image in the area around the filter by creating a layer mask to control how different areas within the layer are hidden and revealed. In particular, we want to hide all portions of the infrared image outside of the filter, and reveal the portions inside the filter. We could just erase the entire area around the filter, but creating a layer mask lets us hide the area without actually destroying the original image. Click on the "Infrared Image" layer to make it active. Select the lasso tool from the control panel, and trace a circle along the ring of the filter while depressing the mouse button. Try to keep the lines from the lasso tool completely within the black area of the filter ring. When you've completed the ring, release the mouse button. You should see a moving dotted line along the path you traced. Don't be too concerned about drawing an exact circle -- the filter itself will hide any irregularities in the line.
Fig 6. The
lasso tool

Now that we've selected the portion we want to keep, we just have to create the layer mask. Select Layer->Add Layer Mask->Reveal Selection in the menu. The color image should suddenly appear around the filter, leaving us with our final image. Save the image now -- you're done!

Closing Notes

Infrared imaging has opened my mind to another way of looking at the world. Whenever I see the visual interaction of foliage with man-made object, I often try to imagine how the scene would look in other color spectra. I look up at trees framed by a brilliant blue sky, and imagine brilliant white forms against a black background.

With the quality of the current crop of new digital cameras, exploring infrared photography is finally a possibility for those of us who don't want to deal with the hassles of traditional infrared photography. While it is by no means a replacement for photography in the realm of visible light, it certainly adds a unique, creative twist to digital imaging.

Questions?Feel free to contact me at eric@echeng.com, or visit my website on digital infrared photography at http://www.echeng.com/photo/infrared/

Flat Plate In The X-Y Plane Wuth A Twist

Flat Plate In The X-Y Plane Wuth A Twist

  • Mesh Area Objects

  • “Trick” Problem


  1. Click the File menu > New Model command to display the New Model form.

  2. Click the drop-down box to set the units to .

  3. Click on the Grid Only button to display the New Coord/Grid System form. In that form:

    • Select the Cartesian Tab.

    • In the Number of Grid Lines area, type 3 in the X direction edit box.

    • In the Number of Grid Lines area, type 3 in the Y direction edit box.

    • In the Number of Grid Lines area, type 1 in the Z direction edit box.

    • In the Grid Spacing area, type 4 the X direction edit box.

    • In the Grid Spacing area, type 6 the Y direction edit box.

    • Click the OK button.

  1. Click the “X” in the top right-hand corner of the 3-D View window to close it.

  2. Click the drop-down box in the status bar to change the units to .

  3. Click the Define menu > Materials command to display the Define Materials form.

  4. Highlight the CONC material and click the Modify/Show Material button to display the Material Property Data form. In that form:

    • Verify that the Modulus of Elasticity is 3600.

    • Verify that the Poisson’s Ratio is 0.2.

    • Click the OK buttons on the Material Property Data and Define Materials forms to close the forms.

  1. Click the Define menu > Area Sections command to display the Area Sections form. In that form:

    • Click the Modify/Show Section button to display the Area Section Data form. In that form:

      • Verify that the selected Material Name is CONC.

      • Verify that the Shell option is selected in the Area Type area.

      • Verify that both the Membrane and the Bending thicknesses are 12.

      • Verify that the Shell option is selected in the Type area.

      • Click the OK buttons on the Area Section Data and Area Sections forms to close all forms.

  1. Verify that the Snap to Points and Grid Intersections button on the side toolbar is depressed.

  2. Click the Draw Rectangular Area button on the side toolbar or the Draw menu > Draw Rectangular Area command to display the Properties of Object form. In that form:

    • Verify that the selected Property is ASEC1.

  1. Click on upper left-hand corner grid intersection (Point “B” in the problem statement) and then click on the lower right-hand grid intersection (Point “A”) to draw an area object over the entire structure.

  2. Click the Set Select Mode button to exit the Draw mode and enter Select mode.

  3. Click on the area object to select it.

  4. Click the Edit menu > Mesh Areas command to display the Mesh Selected Shells form.

  5. Fill in this form as shown in the adjacent figure and click the OK button.

  6. Select the joints that are labeled “A,” “B” and “C” in the problem statement.

  7. Click the Assign menu > Joint > Restraints command to display the Joint Restraints form. In that form:

    • Uncheck the Translation 1 and
      Translation 2 check boxes.

    • Verify that the Translation 3 check box is checked.

    • Verify that the Rotation about 1, 2 and 3 check boxes are not checked.

    • Click the OK button.

  1. Click the Show Undeformed Shape button to remove the display of joint restraints and reset the window display (and title).

  2. Click the drop-down box in the status bar to change the units to .

  3. Click the Set Display Options button (or the View menu > Set Display Options command) to display the Display Options for Active Window form. In that form:

    • Check the Labels box in the Joints area.

    • Click the OK button.

  1. Select joint 106 (coordinates 7, 12, 0) by clicking on it.

  2. Click the Assign menu > Joint Loads > Forces command to display the Joint Forces form. In that form:

    • Type -814 in the Force Global Z edit box in the Loads area.

    • Click the OK button.

  1. Select joint 16 (coordinates 1, 6, 0) by clicking on it.

  2. Click the Assign menu > Joint Loads > Forces command to display the Joint Forces form. In that form:

    • Type -698 in the Force Global Z edit box in the Loads area.

    • Click the OK button.

  1. Select joint 32 (coordinates 2, 3, 0) by clicking on it.

  2. Click the Assign menu > Joint Loads > Forces command to display the Joint Forces form. In that form:

    • Type -901 in the Force Global Z edit box in the Loads area.

    • Click the OK button.

  1. Click the Show Undeformed Shape button to reset the window display.

  2. Click the Set Display Options button (or the View menu > Set Display Options command) to display the Display Options for Active Window form. In that form:

    • Uncheck the Labels box in the Joints area.

    • Click the OK button.

  1. Click the Analyze menu > Set Analysis Options command to display the Analysis Options form. In that form:

    • Click the Plane Grid XY Plane button to set the available degrees of freedom.

    • Click the OK button.

  1. Click the Set Default 3D View button to switch to a 3-D View.

  2. Click the Run Analysis button to display the Set Analysis Cases to Run form. In that form:

    • Highlight (select) MODAL in the Case Name list and click the Run/Do Not Run Case button.

    • Verify that the DEAD analysis case is set to Run in the Action list.

    • Click the Run Now button to run the analysis.

  1. When the analysis is complete check the messages in the SAP Analysis Monitor window (there should be no warnings or errors) and then click the OK button to close the window.

  2. Click the Display menu > Show Forces/Stresses > Joints command to display the Joint Reaction Forces form. In that form:

    • Verify that the Reactions option is selected in the Type area.

    • Click the OK button and view the support reactions.

Note: The reaction at the joint labeled “C” in the problem statement is virtually zero (0). The reason for this apparently odd result is that the resultant of all the applied loads lies on a line connecting the support points labeled “A” and “B,” and thus by simple statics, the reaction at support point “C” must be zero. Note that you could move the support point labeled “C” anywhere on the structure (except on the line connecting support points “A” and “B” because this would result in an unstable structure) and the resulting reactions would not change.

Sunday, July 01, 2007

Prestressed Concrete Beam

Prestressed Concrete Beam

  • Response Combinations

  • Output Stations

  • Prestressing


  1. Click the File menu > New Model command to display the New Model form.

  2. Click the drop-down box to set the units to .

  3. Click the Beam button to display the Beam form. In that form:

    • Type 1 in the Number of Spans edit box.

    • Type 30 in the Span Length edit box.

    • Click the OK button.

  1. Click the “X” in the top right-hand corner of the 3-D View window to close it.

  2. Click the Define menu > Materials command to display the Define Materials form.

  3. Click on CONC in the Materials area to highlight it (select it), and then click the Modify/Show Material button to display the Material Property Data form. In that form:

    • Verify 0.15 is entered in the Weight per Unit Volume edit box.

    • Click the OK buttons on the Material Property Data and Define Materials forms to close all forms.

  1. Click the drop-down box in the status bar to change the units to.

  2. Click the Define menu > Materials command to display the Define Materials form.

  3. Click on CONC in the Materials area to highlight it (select it), and then click the Modify/Show Material button to display the Material Property Data form. In that form:

    • Type 4400 in the Modulus of Elasticity edit box.

    • Verify .2 is entered in the Poisson’s Ratio edit box.

    • Type 6 in the Specified Conc Comp Strength, f′c edit box.

    • Verify 60 is entered in the Bending Reinf Yield Stress, fy edit box.

    • Type 60 in the Shear Reinf. Yield Stress, fys edit box.

    • Accept the other default values.

    • Click the OK buttons on the Material Property Data and Define Materials forms to close all forms.

  1. Click the Define menu > Frame Sections command to display the Frame Properties form. In that form:

    • Click the drop-down box that reads Add I/Wide Flange and then click on the Add Rectangular item.

    • Click the Add New Property button to display the Rectangular Section form. In that form:

      • Type CONBEAM in the Section Name edit box.

      • Select CONC from the Material drop-down box.

      • Type 30 in the Depth (t3) edit box.

      • Type 18 in the Width (t2) edit box.

      • Click the OK buttons on the Rectangular Section and Frame Properties forms to close all forms.

  1. Click the Define menu > Load Cases command to display the Define Loads form. In that form:

    • Type LIVE in the Load Name edit box.

    • Select LIVE from the Type drop-down box.

    • Click the Add New Load button.

    • Type PRESTRES in the Load Name edit box.

    • Select OTHER from the Type drop-down box.

    • Click the Add New Load button.

    • Click the OK button.

  2. Select the line (frame) object by clicking on it.

  3. Click the Assign menu > Frame/Cable/Tendon > Frame Sections command to display the Frame Properties form. In that form:

    • Click on CONBEAM in the Properties list box to highlight it.

    • Click the OK button.

  4. Click the Draw menu > Frame/Cable/Tendons command to display the Properties of Object form. In that form,

  • Click the Line Object Type drop-down list and select the Tendon option.

  • Click on the joint at one end of the beam and then click on the joint at the other end of the beam to draw the tendon. The Tendon Data for Line Object 3 form will display when you release the mouse button.

  1. With the Tendon Data for Line Object 3 form displayed, click the Parabolic Calculator button to display the Define Parabolic Tendon Layout for Line Object 3 form. In that form,

    • Select 1 from the Quick Start drop-down list in the lower left corner of the form.

    • Click the Quick Start button to update the Tendon Layout Data spreadsheet. An additional row of data will be added to the spreadsheet. In the spreadsheet area,

      • Type 8 in Coord 2 cell of the first row of data.

      • Ensure that -12 is in the Coord 2 cell in the second row of data.

      • Type 3 in the Coord 2 cell in the third row of data.

    • Click the Refresh button to update the spreadsheet area and the graphical display area.

    • Ensure that the Use Calculated Results for This Tendon check box is checked.

    • Click the Done button to close the Define Parabolic Tendon Layout for Line Object 3 form and redisplay the Tendon Data for Line Object 3 form.

  2. With the Tendon Data for Line Object 3 form redisplayed, click the Add button in the Tendon Loads area of the form to display the Tendon Load form. In that form,

    • Select the PRESTRES load case from the Load Case Name drop-down list.

    • Type 200 in the Force edit box.

    • Ensure that all of the Friction and Anchorage Losses and Other Loss Parameters are zero. If necessary, type zero in the Curvature Coefficient, Wobble Coefficient, Anchorage Set Slip, Elastic Shortening Stress, Creep Stress, Shrinkage Stress and Steel Relaxation Stress edit boxes.

    • Click the OK buttons on the Tendon Load form and the Tendon Data for Line Object 3 form to close those forms.

  3. Click the drop-down box in the status bar to change the units to .

  4. Click the Define menu > Combinations command to display the Define Response Combinations form. In that form:

    • Click the Add New Combo button to display the Response Combination Data form. In that form:

      • Accept the default Response Combination Name, COMB1

      • Accept the default Combination Type, Linear Add.

      • Verify the DEAD Case is selected in the Case Name drop-down box.

      • Verify that 1 is entered in the Scale Factor edit box.

      • Click the Add button.

      • Select LIVE Case from the Case Name drop-down box.

      • Click the Add button.

      • Select PRESTRES Case from the Case Name drop-down box.

      • Click the Add button.

      • Click the OK buttons on the Response Combination Data and Define Response Combinations forms to close all forms.

  5. Select the line (frame) object.

  6. Click the Assign menu > Frame/Cable/Tendon Loads > Distributed command to display the Frame Distributed Loads form. In that form:

    • Verify that the Load Case Name is DEAD.

    • In the Load Type and Direction area, verify that the Forces option is selected and that the Gravity direction is selected.

    • In the Uniform Load area, type 2.2.

    • Click the OK button.

  7. Select the line (frame) object.

  8. Click the Assign menu > Frame/Cable/Tendon Loads > Distributed command to display the Frame Distributed Loads form. In that form:

    • Select LIVE from the Load Case Name drop-down box.

    • In the Uniform Load area type 1.6.

    • Click the OK button.

  1. Select the line (frame) object.

  2. Click the Assign menu > Frame/Cable/Tendon > Output Stations command to display the Assign Output Station Spacing form. In that form:

    • Type 4 in the Min Number Stations edit box.

    • Click the OK button.

  1. Click the Show Undeformed Shape button to remove the displayed frame output station assignments.

  2. Click the Analyze menu > Set Analysis Options command to display the Analysis Options form.

    • In that form click the Plane Frame XZ Plane button to set the available degrees of freedom.

    • Click the OK button.

  1. Click the Run Analysis button to display the Set Analysis Cases to Run form. In that form:

    • Highlight (select) MODAL in the Case Name list and click the Run/Do Not Run Case button.

    • Verify that the DEAD analysis case is set to Run in the Action list.

    • Verify that the LIVE analysis case is set to Run in the Action list.

    • Verify that the PRESTRES analysis case is set to Run in the Action list.

    • Click the Run Now button to run the analysis.

  1. When the analysis is complete check the messages in the SAP Analysis Monitor window (there should be no warnings or errors) and then click the OK button to close the window.

  2. Click the Display menu > Show Forces/Stresses > Frames/Cables/Tendons command to display the Member Force Diagram for Frames form. In that form:

    • Select COMB1 from the Case/Combo Name drop-down box.

    • Select the Moment 3-3 option in the Component area.

    • Uncheck the Fill Diagram check box.

    • Check the Show Values on Diagram check box.

    • Click the OK button to display the moment diagram.

Note: You may want to print this moment diagram for comparison with the one obtained when 20 output stations are specified. To print the moment diagram, click the File menu > Print Graphics command.

Note: For response combinations, when force diagrams are plotted, exact values are only calculated at the ends of each output station. Those exact values are plotted and then they are connected with straight lines.

  1. Click the Lock/Unlock Model button to unlock the model. Click the OK button when asked if it is ok to delete.

  2. Select the line (frame) object.

  3. Click the Assign menu > Frame/Cable/Tendon > Output Stations command to display the Assign Output Station Spacing form. In that form:

    • Type 20 in the Min Number Stations edit box.

    • Click the OK button.

  1. Click the Show Undeformed Shape button to remove the displayed frame output station assignments.

  2. Click the Run Analysis button to display the Set Analysis Cases to Run form. In that form, click the Run Now button to run the analysis.

  3. When the analysis is complete, check the messages in the SAP Analysis Monitor window (there should be no warnings or errors) and then click the OK button to close the window

  4. Click the Display menu > Show Forces/Stresses > Frames/Cables/Tendons command to display the Member Force Diagram for Frames form. In that form:

    • Verify that the COMB1 is selected in the Case/Combo Name drop-down box.

    • Verify that the Moment 3-3 option is selected in the Component area.

    • Verify that the Show Values on Diagram check box is checked.

    • Click the OK button to display the moment diagram.

Label Cloud