TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which is the best package to draw up structural analysis problems. I need beam or truss, constraints, displacements, springs, loads, thermal actions and so on.

Something like this picture: http://upload.wikimedia.org/wikipedia/commons/3/3c/Truss_Structure_Analysis%2C_Full_Figure2.jpg

share|improve this question
Can you provide an image (or a link to one image) showing exactly the kind of diagrams you are planning to draw? – Gonzalo Medina Feb 2 '14 at 1:02
latex-community.org/know-how/472-tikz-structural-analysis. Have a look at this link, here you can find Tikz library, forstructuralanalysis. It easily creates hinges, beams, supports etc. – Umz Feb 2 '14 at 1:31
@Umz: I think "structuralanalysis" is a very well done macro but has not spring or displacements so I'm look a little better or complete – marchetto Feb 2 '14 at 1:45
@ marchetto, It has spring option in it. If you see its manual, although manual is in german but going through examples one can learn to create some usefull stuff. I am not sure what do you mean by displacements?I shall post a simple example and a bit more detail into an answer just for an introduction.@Gonzalo Medina I just try to put a simple example(from manual) and another worked out example to just elaborate OP, that it could be usefull. – Umz Feb 2 '14 at 3:25
@marchetto I recently read the documentation of that style. It has the displacements loads in the pages 14 and 18 of the 2d documentation and springs in the page 10 of the documentation. – Enthusiastic Student Oct 22 '14 at 12:47
up vote 14 down vote accepted

Since I could not include further detail in my comment, I post it in this section.

The tikz library structuralanalysis provides some basic structural stuff which can be usefull to create hinges, supports, beams etc. This library provides 10 different commands \point, \beam,\support,\hinge,\load or \lineload and \temperature, \internalforces,\dimensioning,\influenceline ,\notation and \addon. The author of the library has provided with 4 types of beams (by default), 6 supports, 5 hinges and 3 types of loads (moment and forces at a point) and 4 types of lineloads (distributed forces). I just put a simple example.



%\load{1}{f}[90]% uncomment to introduce vertical load at the hinge
%\notation{1}{force}{F=10KN}% Just to show the unit and magnitude of the hypothetical force


Note I worked out this simple support using the basic functions of the library. Spring is given bydefault. I show it below.



[45] is to rotate the spring. One can set it to 0 for no rotation. Offcourse further knowledge of TikZ would enhance one's capability to go deep, but as far as simple structures are concerned, this library is quite usefull in my opinion. For further references see the manual of this library available at here. And you can download .sty file from here.

EDIT I also put the structure which you have shown in the link. One possible way to do that can be this (using the same library):



share|improve this answer
You should load siunitx and then use, say, \notation{1}{force}{$F=\SI{10}{\N}$}. (The same for the lengths.) – Svend Tveskæg Feb 2 '14 at 8:45
With "displacement" I mean imposed displacement. For example: a horizontal built in beam with a vertical imposed displacement at one edge deformates. The library structuralanalysis has not deformed beam – marchetto Feb 2 '14 at 11:12
@ Svend Tveskæg, Thanks for pointing it out. I have just updated it. – Umz Feb 2 '14 at 13:58
I'll change your code for using siunitx a bit; it can be done in a 'better' way. (I hope you don't mind.) – Svend Tveskæg Feb 2 '14 at 14:05
@Svend Tveskæg, You are doing a favour by editing it. Thanks again!. – Umz Feb 2 '14 at 14:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.