Skip to content

Commit 6f52e48

Browse files
committed
update
1 parent 8171442 commit 6f52e48

File tree

2 files changed

+69
-5
lines changed

2 files changed

+69
-5
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
pragma openseespy
2+
3+
model -ndm 3 -ndf 6
4+
5+
node 0 0.0 0 0
6+
node 1 10.0 0 0
7+
node 2 20.0 0 0
8+
node 3 30.0 0 0
9+
node 4 40.0 0 0
10+
node 5 50.0 0 0
11+
node 6 60.0 0 0
12+
node 7 70.0 0 0
13+
node 8 80.0 0 0
14+
node 9 90.0 0 0
15+
node 10 100.0 0 0
16+
17+
section ElasticFrame 1 -E 1 -G 1 -A 161538000.0 -Ay 161538000.0 -Az 161538000.0 -Iy 3500000000.0 -Iz 35000000.0 -J 35000000.0
18+
geomTransf Linear 1 0 0 1
19+
20+
element ExactFrame 1 {0 1} -section 1 -transform 1
21+
element ExactFrame 2 {1 2} -section 1 -transform 1
22+
element ExactFrame 3 {2 3} -section 1 -transform 1
23+
element ExactFrame 4 {3 4} -section 1 -transform 1
24+
element ExactFrame 5 {4 5} -section 1 -transform 1
25+
element ExactFrame 6 {5 6} -section 1 -transform 1
26+
element ExactFrame 7 {6 7} -section 1 -transform 1
27+
element ExactFrame 8 {7 8} -section 1 -transform 1
28+
element ExactFrame 9 {8 9} -section 1 -transform 1
29+
element ExactFrame 10 {9 10} -section 1 -transform 1
30+
fix 0 1 1 1 1 1 1
31+
nodeRotation 0
32+
nodeRotation 1
33+
nodeRotation 2
34+
nodeRotation 3
35+
nodeRotation 4
36+
nodeRotation 5
37+
nodeRotation 6
38+
nodeRotation 7
39+
nodeRotation 8
40+
nodeRotation 9
41+
nodeRotation 10
42+
pattern Plain 1 Linear
43+
eleLoad Frame Dirac -force {0 1 0} -basis director -offset {1.0 0 0} -pattern 1 -elements {10}
44+
system FullGeneral
45+
integrator LoadControl 300.0
46+
test NormDispIncr 1e-12 10 1
47+
algorithm Newton
48+
analysis Static
49+
50+
analyze 500
51+

content/en/examples/ShaftBuckling/e0020/index.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ bibliography: references.json
44
description: This example demonstrates the simulation of follower loading applied to frame elements.
55
downloads:
66
Python: ["e0020.py"]
7+
Tcl: ["e0020.tcl"]
8+
tags: ["Frame", "Loads", "Tcl", "Python"]
79
render: e0020.glb
810
draft: false
911
---
@@ -22,18 +24,29 @@ labeled with the tag `1` and scaled in time by a `Linear` time series:
2224
Next we add a [`FrameLoad`](https://xara.so/user/manual/model/elements/frame/FrameLoad.html)
2325
to this pattern, applied to the element with tag `ne` (ie, the last element).
2426

27+
{{< tabs tabTotal="2" >}}
28+
{{% tab name="Python" %}}
2529
```python
26-
model.eleLoad("Frame", "Dirac",
30+
model.eleLoad("Frame", "Dirac",
2731
force = [0, 1, 0],
2832
basis = "director",
2933
offset=[1.0,0,0],
3034
pattern=1,
3135
elements=[ne]
32-
)
36+
)
3337
```
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:
3750
```python
3851
import veux
3952
artist = veux.create_artist(model, model_config=dict(extrude_outline="square"))

0 commit comments

Comments
 (0)