Equivalent Stress Blocks

Previous posts (e.g. Stress blocks in AS 3600) have presented Excel User Defined Functions (UDFs) that determine the ultimate bending strength of a reinforced concrete section with the use of a rectangular concrete stress block, with depth and stress factors adjusted so that the results are identical to those using a parabolic-rectangular block, such as that defined in Eurocode 2.  This post provides details of this procedure, including VBA code for a UDF to calculate the required factors for any specified concrete strength.

The figure below (from Eurocode 2) illustrates how a non-linear stress-strain curve may be approximated by a rectangular stress block, applied over part of the area in compression.

Eurocode 2 Rectangular Stress Block

If the stress block is being used with a rectangular cross section it is possible to calculate values for the depth and stress such that the area under the block, and the lever arm from the neutral axis, are exactly equal to that for any specified curvilinear stress-strain relationship.

Parabolic and Equivalent Rectangular Blocks

The procedure for calculating the rectangular stress block equivalent to the Eurocode 2 parabolic/rectangular block is shown below :

Equivalent Rectangular Stress Block Procedure

This procedure can be simply coded in a VBA function (to use the function in your own spreadsheet, copy and paste the code into any VBA module):

Update 15 Aug 2020:
Wordpress was corrupting the the posted code, so I have uploaded a spreadsheet with full open-source code to:
EquivSB.zip

And this is what the function looks like in use:

Equivsb() Function

The function arguments are:

  • Fc: the concrete strength grade
  • Out (optional): 0 or omit to return the full array of output values
    -1 to return an array of descriptions of each output value
    1 to 5 to return a specified value
  • Rfact (optional): reduction factor on concrete stress (default = 0.9)

Enter as an array function to return the full array (see here for details of using array functions).

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

A Very Relaxing Post

Another Bach installment, with (possibly) a splash of Newton:

Scientists discover most relaxing tune ever

A British band and a group of scientists have made the most relaxing tune in the history of man, an Mp3 of which is at the bottom of this article.

Sound therapists and Manchester band Marconi Union compiled the song. Scientists played it to 40 women and found it to be more effective at helping them relax than songs by Enya, Mozart and Coldplay.

Weightless works by using specific rhythms, tones, frequencies and intervals to relax the listener. A continuous rhythm of 60 BPM causes the brainwaves and heart rate to synchronise with the rhythm: a process known as ‘entrainment’. Low underlying bass tones relax the listener and a low whooshing sound with a trance-like quality takes the listener into an even deeper state of calm.  …

The “weightless” piece can be downloaded at the link.  Personally, I don’t think it was that relaxing compared with something more rythmic such “Falling” by Kate Rusby (as featured on Wonders of the Universe) , or even more so, this song from Anne Briggs:

Just rediscovered this one.  A beautiful song from Sandy Denny with Dave Swarbrick on fiddle, accompanied by some stunning photographs:

 

What do you think?

What is your favourite relaxation music?

Posted in Bach | Tagged , , | 1 Comment

Bert Jansch

Regulars here will know my liking for the music of Bert Jansch and his contemporaries.  Bert died after a long illness last Wednesday, but leaves behind a rich legacy of music usually categorised as “folk”, but really beyond categorisation.

The 1992 BBC series “Acoustic Routes” documents the early days when the likes of Paul Simon and Bob Dylan were playing in Soho Pubs for “30 bob”:

Here are a small selection of pieces from Youtube, some well known, some less so, finishing up with one of his final performances at the Glastonbury Festival this year (only a fleeting glimpse of Bert, but the music’s the thing).

Posted in Bach | Tagged , , , , , , | 2 Comments

Spreadsheet Solutions For Structural Engineering

Another site where the tasks considered suitable for programming in Excel and VBA are anything but “boring and repetitive” is Yakpol’s Spreadsheet Solutions For Structural Engineering:

“This web site contains a collection of engineering spreadsheets for structural analysis and design of concrete and steel structures. The programs have been developed by practicing professional engineers with emphasis on productivity, dependability, and clarity. To insure quality of the spreadsheets we have comprehensively compared analysis results to leading commercial software products and found them to be accurate.”

Those of you not into structural engineering may like to have a look at a few non-engineering applications, including:

Yakpol's Travelling Salesman Spreadsheet

Posted in Beam Bending, Excel, Newton, VBA | Tagged , , , | 2 Comments

More on VBA

Andy Pope posted the two links below in a comment to my previous post:

A while back they added a VBA developer center to the msdn Office site.
http://msdn.microsoft.com/en-gb/office/ff688774.aspx

And this article on the Excel developer road map is interesting.
http://msdn.microsoft.com/en-gb/office/ff458124.aspx

There seem to be some worthwhile resources there, and the fact that this is a fairly new addition seems to indicate that VBA isn’t quite dead yet.  It’s just a shame it isn’t better integrated with the main MSDN site.

On the other hand, news of other vendors including VBA in their products is not so good.  VBA has been included in Autocad for many years, and also their low cost competitor, Intellicad.  The latest versions of both products come with Visual Studio Tools for Applications (VSTA).  VBA for Autocad can be downloaded as a separate package, but as far as I can see the latest version of Intellicad did not support VBA at all.

I’d be interested to know how many people out there are using VBA/VSTA with these drafting applications.  Is there any backward compatibility with the latest Intellicad?  Is VSTA a good alternative?  Is it a complete integrated system, or do you need Visual Studio as well?

Finally, on the alternative Office front; there is activity at Open Office:

http://wiki.services.openoffice.org/wiki/VBA

VBA interoperability project is a joint Novell & Sun incubator project whose aim is to deliver a way to run Excel and Word macros natively in imported documents.

But

NOTE:  Be aware the idl is not stable, (nor won’t be for the forseeable future be ‘published’) it WILL change, so if you are using a language that has a binary dependency on the interface (like c++ & java) then consider yourselves warned.

Gnumeric also has a VBA project (and has had for several years), but there is little sign of progress:

Scripting. After some vacillation trying to decide between wrapping  Gnumeric’s object model, and providing something that is VBA compatible, the  latter won.  We’ll export an api in C that is compatible with the widely used  VBA interface, and wrap it in several languages (Python, VB.NET, and C# are likely  candidates).

Sounds good, but the heading is “Wish List (long range plans).

And finally finally, with Google Docs and tablet apps it seems that Javascript is the flavour of the month.  Is this the way of the future?  What do you think?

Posted in Computing - general, Excel, VBA | Tagged , , , , , , , | Leave a comment