Tag Archives: structural design

Content folding in Calcpad

We already know how to hide contents completely in the calculation notes, using output control (#hide-#pre-#post-#show) or Html comments. We already discussed that in the publication: Quadratic equation – part II. However, this is not always a good option. Lets have a look at the online calculation sheet for SLS design of RC beam:

http://calcpad.net/Worksheet/159/sls-design-of-beam-with-rectangular-section

Click “Calculate” to see the results:

sls beam

The required calculations for one beam are so many, that it would take about 6 pages to print them all. That is why, most of the details are folded inside the headings:

Concrete creep and shrinkage … ▼

You can always unfold them by clicking on the respective heading in case you need to check something. The content will appear and the heading will change as follows:

Concrete creep and shrinkage ▲

If you click again, the content will fold back. This is an excellent option. You are not forced to print all details for each beam, but only the most important information. In the same time, everything is available when you need to check something. But how it’s made in Calcpad?

Actually, it is pretty easy to do this with just a bit of Html. Just add the following code around the content to be folded:

'<div class="fold">
'<h4>Heading</h4>
'Content to be folded
'</div>

In your code, replace “Heading” and “Content to be folded” with the actual text. It is so simple, because most of the work is done preliminarily. Each calculation note starts from an empty Html template, which already contains the required CSS and jQuery code. The template is located in the program directory and it is named “template.html” (obviously). If you are familiar with HTML, CSS and JS/jQuery, you can add some other cool features for your worksheets.

Getting started

Calcpad is available for both cloud and desktop on the official website http://calcpad.net. You can use it as an online programmable calculator with support for complex numbers, variables, functions and graphing.

online calculator

You can also browse the online library and find professional worksheets for solving equations or calculating areas, volumes and mechanical properties. There is also a rich collection of structural design spreadsheets to Eurocode. You can design reinforced concrete beams, columns or plates, calculate deflections and cracks, punching shear reinforcement or check the detailing requirements for RC elements.

Some worksheets are free to use, but others require subscription. You can create your account and order a subscription plan. Credit card payments are accepted via PayPal.

Calcpad is also available as a desktop application. You can download a 30-day free trial for Windows and create your own calculation programs. The desktop subscription, allows you to download worksheets from the online library and use them on your computer.

The desktop version has basic code editing capabilities and is useful for small to medium sized programs. It supports line numbering, syntax highlighting, automated white space formatting, coping and pasting, etc.

calcpad desktop

However, it is also possible to use another, much more powerful code editor such as Notepad++. It is a free and open source text editing software, with many advanced features. Download and install Notepad++ from the official website https://notepad-plus-plus.org. You can also add the Calcpad language syntax. It is defined in the Notepad++.xml file.

notepadpp

In the next posts, you will find detailed instructions how to set up Calcpad and Notepad++ and write your own programs.

Welcome to Calcpad!

Welcome to my blog!

I am a structural engineer with almost 20 years of experience in the design of nuclear and industrial facilities, factories, residential and public buildings. I am also a fan of engineering, mathematics and programming and you will find a lot of interesting stuff about that here.

For all these years I’ve been dealing mostly with calculations. I have developed a lot of custom spreadsheets and macros to automate my job, using various tools like Excel, VBA, MathCAD, etc. Each of them had a lot of advantages, but I also stumbled upon different kinds of problems.

That is why I created Calcpad. It is a simple but powerful mathematical platform for engineering calculations:

  • It is easy to learn and use. No special programming skills are required, which makes it suitable for all engineers.
  • Calculations are automatically documented into beautiful Html reports that are easy to follow and check.
  • Calcpad spreadsheets can be published online. Web forms are generated automatically out of the source code.

It combines the simplicity of spreadsheets with the power and flexibility of programming in an elegant way. In this blog you will find detailed information about CalcPad, useful tips and tricks, sample code and solutions of variable problems.

calcpad