@@ -4,6 +4,8 @@ bibliography: references.json
4
4
description : This example demonstrates the simulation of follower loading applied to frame elements.
5
5
downloads :
6
6
Python : ["e0020.py"]
7
+ Tcl : ["e0020.tcl"]
8
+ tags : ["Frame", "Loads", "Tcl", "Python"]
7
9
render : e0020.glb
8
10
draft : false
9
11
---
@@ -22,18 +24,29 @@ labeled with the tag `1` and scaled in time by a `Linear` time series:
22
24
Next we add a [ ` FrameLoad ` ] ( https://xara.so/user/manual/model/elements/frame/FrameLoad.html )
23
25
to this pattern, applied to the element with tag ` ne ` (ie, the last element).
24
26
27
+ {{< tabs tabTotal="2" >}}
28
+ {{% tab name="Python" %}}
25
29
``` python
26
- model.eleLoad(" Frame" , " Dirac" ,
30
+ model.eleLoad(" Frame" , " Dirac" ,
27
31
force = [0 , 1 , 0 ],
28
32
basis = " director" ,
29
33
offset = [1.0 ,0 ,0 ],
30
34
pattern = 1 ,
31
35
elements = [ne]
32
- )
36
+ )
33
37
```
34
- The argument ` Dirac ` specifies that the loading is Dirac delta function.
35
- Before performing the analysis, we'll also define a ` veux.Motion ` which
36
- we will use to animate the simulation:
38
+ {{% /tab %}}
39
+ {{% tab name="Tcl" %}}
40
+ ``` tcl
41
+ pattern Plain 1 Linear
42
+ eleLoad Frame Dirac -force {0 1 0} -basis director -offset {1.0 0 0} -pattern 1 -elements {10}
43
+ ```
44
+ {{% /tab %}}
45
+ {{< /tabs >}}
46
+
47
+ The argument ` "Dirac" ` specifies that the loading is Dirac delta function.
48
+ Before performing the analysis, we'll also define a ` Motion ` with the ` veux `
49
+ library which we will use to animate the simulation:
37
50
``` python
38
51
import veux
39
52
artist = veux.create_artist(model, model_config = dict (extrude_outline = " square" ))
0 commit comments