Skip to content

Commit 6bc0a1e

Browse files
committed
cmp
1 parent caa4eed commit 6bc0a1e

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

source/user/manual/section/PlaneStrain.rst

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,27 @@ The plane strain condition is characterized by the constraints:
2828
Example
2929
=======
3030

31-
.. code-block:: Python
31+
.. tabs::
32+
33+
.. tab:: Python
34+
35+
.. code-block:: Python
36+
37+
import xara
38+
model = xara.Model(ndm=2, ndf=2)
3239
33-
model = ops.Model(ndm=2, ndf=2)
40+
model.material("ElasticIsotropic", 1, E=29e3, nu=0.3)
41+
# Create the PlaneStrain section referencing material 1
42+
# and with a thickness of 2.5
43+
model.section("PlaneStrain", 1, 2.5, material=1)
3444
35-
model.material("ElasticIsotropic", 1, E=29e3, v=0.3)
36-
model.section("PlaneStrain", 1, 1, 2.5)
45+
.. tab:: OpenSees (Tcl)
46+
47+
.. code-block:: Tcl
48+
49+
model BasicBuilder -ndm 2 -ndf 2
50+
nDMaterial ElasticIsotropic 1 -E 29000 -nu 0.3
51+
section PlaneStrain 1 2.5 -material 1
3752
3853
A complete example is available at the STAIRLab `gallery <https://gallery.stairlab.io/examples/example6/>`_.
3954

source/user/manual/section/ShearFiber.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,15 @@ The following example demonstrates how to create a ``ShearFiber`` section repres
9898
9999
set radius 0.5
100100
set center 0.0 0.0
101-
set area [expr {pi * $radius**2}]
101+
set area [expr {acos(-1) * $radius**2}]
102102
103103
model create -ndm 3 -ndf 6
104104
105-
model material ElasticIsotropic 1 E 200e9 nu 0.3
105+
nDMaterial ElasticIsotropic 1 200e9 0.3
106106
107-
model section ShearFiber 1
108-
model fiber $center $area material 1 section 1
107+
section ShearFiber 1 {
108+
fiber $center $area -material 1
109+
}
109110
110111
111112
The following example uses the ``xsection`` library to create a ``ShearFiber`` section representing an AISC *W8x28* section.

0 commit comments

Comments
 (0)