Reinforced Concrete Section Analysis – with prestress

The simplified reinforced concrete section analysis spreadsheet presented here has been revised to allow the input of a pre-tension stress to either or both layers of reinforcement.  The spreadsheet (including full open source code) can be downloaded from RC Design Functions5.

Note that this spreadsheet is intended for the analysis of rectangular beams or slabs with two layers of reinforcement.  For more complex sections refer to Reinforced Concrete Section Analysis – 5; Ultimate Limit State and Reinforced Concrete Section Analysis – 3.

In addition to the provision for prestressed reinforcement the revision also provides additional output data on section curvature, including analysis of tension stiffening effects and shrinkage according to the Eurocode EC2, and analysis of shrinkage curvature using a fictitious pre-compression stress applied to the reinforcement.  More details on these revisions will be given in a later post.

Typical Input and Output:

Estress input, including pre-stress

Estress input, including pre-stress

 

EStress Output

EStress Output

Posted in Beam Bending, Concrete, Excel, Newton, UDFs, VBA | Tagged , , , , , , , , , | 3 Comments

Copy and Paste as Picture

If in Excel 2007 you copy a range to the clipboard and paste into Word as a picture you get the worksheet gridlines displayed, which may well not be what you want.

This issue was raised at Smurf on Spreadsheets and has a fairly simple solution.

In their efforts to make all the Excel functionality intuitive and easy to access, Microsoft have placed a “Copy as Picture” command three levels down under the “Paste” button on the Home Tab.  The “Copy as Picture” command brings up a dialog box, which has the options “as shown on screen” and “as shown whan printed”, and an image copied as “as shown when printed” does not have the grid-lines.

Home - Paste - As Picture - Copy as Picture !

Home - Paste - As Picture - Copy as Picture !

 

If you want to save the image as a separate file the easiest way to get a high quality emf (extended meta-file) image, without loss of image quality, seems to be to paste it into Powerpoint, and save it to a file from there.

Does anyone know a better way?

24th Oct 09:   See comments below for a link to a “Classic Menu” addin, available for trial or purchase.

Posted in Excel | Tagged , , | 10 Comments

Bend-it Like Euler

I just found the Bend-it blog, which looks like it should be worth a good look:

Note 13 Oct 09:  See comment below.  This blog is temporarily closed whilst being reorganised, but contact the authors if interested.

Bend-it

Posted in Newton | Tagged | 3 Comments

Three UDFs

This post is in response to recent discussions at Daily-Dose-of-Excel where many and various worksheet formulas have been suggested to carry out tasks that are (it seems to me) better done with a simple User Defined Function (UDF):

Adding Every Other Cell (also at the Microsoft Office Blog: Adding Every Other Cell in a Column )
and
Summing the Digits of a Number

My solutions to these, and also another at Eng-Tips: Transposing data from columns, can be dowloaded here: Sum Tab.xls

The spreadsheet includes full open source code as usual:

SumSkip Function

SumSkip Function

The SumSkip function will sum every n’th row or column of a range, starting from any specified cell.


Function SumSkip(SumRange As Variant, Optional NumSkip _As Long _
= 2, Optional StartCell As Long = 1, _
Optional DirSkip As String) As Double
Dim Numrows As Long, NumCols As Long, Sums As Double
Dim i As Long, j As Long, k As Long
If TypeName(SumRange) = "Range" Then SumRange = SumRange.Value2
Numrows = UBound(SumRange)
NumCols = UBound(SumRange, 2)
If DirSkip = "" Then
If Numrows > NumSkip Then
DirSkip = "V"
ElseIf NumCols > NumSkip Then
DirSkip = "H"
End If
End If
DirSkip = UCase(DirSkip)
Select Case DirSkip
Case Is = "V"
For i = StartCell To Numrows Step NumSkip
For j = 1 To NumCols
Sums = Sums + SumRange(i, j)
Next j
Next i
Case Is = "H"
For j = StartCell To NumCols Step NumSkip
For i = 1 To Numrows
Sums = Sums + SumRange(i, j)
Next i
Next j
End Select
SumSkip = Sums
End Function

 

SumDig Function

SumDig Function

The SumDig function sums the digits of a value or string (either including or excluding values to the right of the decimal point).  I have incorporated the use of  a Byte array to extract the numeric characters without tripping over non-numeric characters, thanks to Charles Williams who provided a neat UDF in the DDoE thread using this technique.

Function SumDig(SumVal As String, _
Optional SumFract As Boolean = False) As Long
Dim NumDig As Long, i As Long, DPPos As Long, ByteA() As Byte
DPPos = InStr(1, SumVal, ".") * 2 - 1
ByteA = CStr(SumVal)
NumDig = Len(SumVal) * 2 - 1
If DPPos > 0 Then
For i = 0 To DPPos Step 2
SumDig = SumDig + Val(Chr(ByteA(i)))
Next i
If SumFract = True Then
For i = DPPos + 1 To NumDig Step 2
SumDig = SumDig + Val(Chr(ByteA(i)))
Next i
End If
Else
For i = 0 To NumDig Step 2
SumDig = SumDig + Val(Chr(ByteA(i)))
Next i
End If
End Function

Tabulate Function

Tabulate Function

The tabulate function creates a table based on row and column numbers and data listed in a 3 column range.  It was pointed out in the Eng-Tips thread that this could also be done with a pivot table, but the UDF solution seems simpler to me.

 

Function Tabulate(TabA As Variant) As Variant
Dim Numrows1 As Long, NumRows2 As Long, NumCols As Long, Tab2A() As Variant
Dim i As Long, j As Long
TabA = TabA.Value2
Numrows1 = UBound(TabA)
NumRows2 = TabA(Numrows1, 1)
NumCols = TabA(Numrows1, 2)
ReDim Tab2A(1 To Numrows1, 1 To NumCols)
For i = 1 To Numrows1
Tab2A(TabA(i, 1), TabA(i, 2)) = TabA(i, 3)
Next i
Tabulate = Tab2A
End Function

Does a straightforward UDF beat a convoluted worksheet function, or are UDFs best avoided?

What do you think?

Posted in Excel, UDFs, VBA | Tagged , , , , , | 8 Comments

Update to Publications

I have (at long last) updated my list of publications (all downloadable). Click on the link below to visit the site, or download direct from the list here.

My Publications

Here is the current list:

   
Predicting the Deflection of Concrete Structures in Practice (374 k Word file) Concrete Solutions 09, Sydney 2009
Predicting the Deflection of Concrete Structures in Practice presentation (1.4 MB Powerpoint file) Concrete Solutions 09, Sydney 2009
Efficient Analysis with the Strand7 API presentation (450 kB Powerpoint file) Concrete Institute of Australia seminar, Sydney 2009
Analysis and Design of Large Span Arch Structures under High Fills (1.1 MB Word file) Austroads Bridge Conference, Auckland 2009
Analysis and Design of Large Span Arch Structures under High Fills presentation (2.9 MB zipped Powerpoint file) Austroads Bridge Conference, Auckland 2009
Analysis and Design of Large Span Arch Structures under High Fills p (1.6 MB animation) Austroads Bridge Conference, Auckland 2009
Design of Robust Structures, presentation (1.3 MB pdf file) Concrete Institute of Australia seminar, Sydney 2009
Settlement of Precast Culverts Under High Fills; The Influence of Construction Sequence and Structural Effects of Longitudinal Strains (1.85 MB pdf file) Concrete Institute of Australia Conference, Adelaide 2007
Settlement of Precast Culverts Under High Fills; presentation (5.4 MB Powerpoint file) Concrete Institute of Australia Conference, Adelaide 2007
Finite element modelling of load shed and non-linear buckling solutions of confined steel tunnel liners (350 kB pdf file) ANZ Geomechanics Conference, Brisbane 2007
Finite element modelling of confined steel tunnel liners presentation (2.2 MB Powerpoint file) ANZ Geomechanics Conference, Brisbane 2007
Soil Loads On Cut And Cover Tunnels Under High Fills (3.9 MB Word file) Concrete Institute of Australia seminar, Sydney 2007
Soil Loads On Cut And Cover Tunnels Under High Fills, presentation (3.7 MB Powerpoint file) Concrete Institute of Australia seminar, Sydney 2007
High Performance Concrete in Bridges, durability and workability (800 kB MS Word file) Austroads Bridge Conference, Perth 2006
High Performance Concrete in Bridges presentation(2.6 MB MS Powerpoint file) Austroads Bridge Conference, Perth 2006
Prediction of Cracking and Deflections; International Code Provisions and Recent Research (920 kB Word file) Concrete Institute of Australia seminar, Sydney 2006
Prediction of Cracking and Deflections; presentations (1.4 MB Powerpoint file; 270 kB Powerpoint file) Concrete Institute of Australia seminar, Sydney 2006
High Strength Concrete in AS 5100 – Opportunities and Restrictions (360 kB Word file) Concrete Institute of Australia seminar, Sydney 2005
High Strength Concrete in AS 5100 – Presentation (1.8 MB Powerpoint file) Concrete Institute of Australia seminar, Sydney 2005
High Performance Concrete in Bridges (350 kB MS Word file) Concrete Institute of Australia Conference, Melbourne 2005
High Performance Concrete in Bridges presentation(1.8 MB MS Powerpoint file) Concrete Institute of Australia Conference, Melbourne 2005
North Kiama By-pass (6.1 MB MS Word file) Concrete Institute of Australia Conference, Melbourne 2005
North Kiama By-pass presentation(7.9 MB MS Powerpoint file) Concrete Institute of Australia Conference, Melbourne 2005
Soil Loads on Cut and Cover Tunnels Under High Fills (3.4 MB MS Word file) Australian Geomechanics Society Mini-symposioum, Sydney 2005
Soil Loads on Cut and Cover Tunnels Under High Fills presentation(3.9 MB MS Powerpoint file) Australian Geomechanics Society Mini-symposioum, Sydney 2005
Seismic design of Buried Structures to AS5100 (940 kB MS Word file) Australian Earthquake Engineering Society Conferenc, Mount Gambier 2004
Seismic design of Buried Structures to AS5100 presentation(2.0 MB MS Powerpoint file) Australian Earthquake Engineering Society Conferenc, Mount Gambier 2004
Design for Soil-Structure Interaction (2.8 MB MS Powerpoint file) Concrete Institute of Australia seminar, Sydney 2004
Bridge Deck Behaviour Revisited presentation(1.0 MB MS Powerpoint file) Austroads Bridge Conference, Hobart 2004
Bridge Deck Behaviour Revisited (190 kB MS Word file) Austroads Bridge Conference, Hobart 2004
Impact Loads on Buried Structures (300 kB MS Word file) Concrete Institute of Australia Conference, Brisbane 2003
Impact Loads on Buried Structures presentation(2.1 MB MS Powerpoint file) Concrete Institute of Australia Conference, Brisbane 2003
Morwell Tunnels -Design of a Buried Arch Culvert Under Very High Fill (640 kB MS Word file) Concrete Institute of Australia Conference, Brisbane 2003
Barcoo Outlet (300 kB MS Word file) Concrete Institute of Australia Conference, Perth 2001
Barcoo Outlet; presentation (2 MB MS Powerpoint file) Concrete Institute of Australia Conference, Perth 2001
Kwinnana Freeway (1.4 MB pdf file) Concrete Institute of Australia Conference, Perth 2001
Seismic Analysis of Buried Arch Structures World Conference on Earthquake Engineering, Auckland 2000
Homebush Bay Rail Link Concrete Institute of Australia Conference, Sydney 1999
Arch Structures (7 MB pdf file) Concrete Institute of Australia Conference, Sydney 1999
Arch Structures (text only) (0.18 MB doc file) Concrete Institute of Australia Conference, Sydney 1999
Arch Structures – (MS Powerpoint presenation, 5.1 MB file) Concrete Institute of Australia Conference, Sydney 1999
Non-linear Analysis of Buried Arch Structures Australasian Structural Engineering Conference, Auckland 1998
Analysis of Buried Arch Structure: Performance versus Prediction (Right click to download Word Document) Concrete Institute of Australia Conference, Adelaide 1997
Posted in Arch structures, Concrete, Geotechnical Engineering, Newton | Tagged , , , , | Leave a comment