Calc4fem Getting Started Guide

Calc4fem (https://sourceforge.net/projects/calc4fem/) — is the open source spreadsheet template for plane frames, beams and trusses. Finite Element Method for 2D-beam elements is used.

The primary goal of this project is not to create yet another finite element analysis (FEA) program, but rather to develop an integrated environment for solving engineering problems using a tool most familiar to engineers: spreadsheets. With calc4fem, an engineer can create original calculation templates, develop parametric structural models, program complete analyses—ranging from load determination to strength and serviceability checks against building codes—and perform structural optimization. The program is written in StarBasic and requires macro execution to be enabled. You can convert the code to VBA and use the template in MS Excel if necessary; however, the author wrote the code for his personal use and did not have that specific task in his mind.

Scheme of usage is shown below.

Scheme of usage

Also see the lessons:

YouTube Video Preview
YouTube Video Preview
YouTube Video Preview

INPUT DATA

All data must be added on the “Data” sheet (can’t be renamed or removed). The code reads the data by the special keywords (in the green cells - “nodes”, “elements”, etc). You may tab it in arbitrary order in “Data”-sheet. Also you can’t have keyword in multiple cells at the “Data” sheet.

Nodes Array

Nodes Array

Section Types Array

Section Types Array

For truss elements J=h=0 (or empty cell).

Elements Array

Elements Array

Base Loads Array

Base Loads Array

Load Combination Array

Load Combination Array

Coefficients for base loads: Number of nonempty rows = number of combinations

For example:

Table 1 - Load Keys

Load Key Scheme Description
fxfx schemeNodal concentrated horizontal force
fyfy schemeNodal concentrated vertical force (minus for down direction)
mzmz schemeNodal concentrated moment
uxux schemeNodal horizontal displacement as a load (Is not converted into Wolsink's program)
uyuy schemeNodal vertical displacement as a load (Is not converted into Wolsink's program)
rotzrotz schemeNodal rotation as a load (Is not converted into Wolsink's program)
p1p1 schemeSimple distributed load perpendicular to beam
p2p2 schemeSimple distributed axial load, parallel to beam
qxqx schemeLinearly distributed horizontal load (according a vertical projection). Typical for wind load
qyqy schemeLinearly distributed vertical load (according a vertical projection). Typical for snow load.
PcPc schemeConcentrated load Par1 within the beam span, located at distance Par2 from the first node. Par3 is the angle to vertical axis.
McMc schemeConcentrated moment Par1 within the beam span, located at distance Par2 from the first node.
qq schemeNon-uniform linearly distributed load from Par1 to Par2, perpendicular to the beam and located within distances Par3 and Par4 from the first node.

The Results

After calculation the program creates (re-creates) several sheets: “Results”, “Graph” and (optional) - “Matrix”.

User Functions

1) eRes(element_number, key_of_result, base_load_number, t)

key_of_result:

base_load_number and t = x/Length – optional variables (for result key = “Mt”, “Qt”, “Nt”, “yloc”, “phi”).

2) eRes_epure(element_number, key_of_result, base_load_number, t)

This function is used for quick getting of epures. “eRes_epure is” is array function. Use it with CTRL+SHIFT+ENTER to create table (array) of results.

key_of_result:

t = x/Length is column vector for array function.

YouTube Video Preview

3) eRes_comb(element_number, key_of_result)

This function is for getting results for load combinations.

key_of_result: Extremal values available: "Mmin", "Nmin", "Qmin", "Mmax", "Nmax", "Qmax", "ymax".

You can use arrays (the list with element numbers) “element_number” via columns selection.

4) rRes(node_number, key_of_result, base_load_number)

Reads Nodal Base Load Reactions into Array

Useful links

The Authors

Special Thanks

Changes