Skip to content

Commit 3e50a16

Browse files
committed
Update ASDEmbeddedNodeElement.rst
1 parent eae9c64 commit 3e50a16

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/user/manual/model/elements/ASDEmbeddedNodeElement.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,13 @@ Examples
164164
U2 = [0.1 + 0.9*rand(), 0.1 + 0.9*rand()]
165165
U3 = [0.1 + 0.9*rand(), 0.1 + 0.9*rand()]
166166
print('Applying random X displacement:\nU1: {}\nU2: {}\nU3: {}\n\n'.format(U1,U2,U3))
167-
timeSeries('Constant', 1)
168-
pattern('Plain', 1, 1)
167+
model.pattern('Plain', 1, "Constant")
169168
for i in range(1, 3):
170-
sp(1, i, U1[i - 1])
171-
sp(2, i, U2[i - 1])
172-
sp(3, i, U3[i - 1])
173-
169+
model.sp(1, i, U1[i - 1], pattern=1)
170+
model.sp(2, i, U2[i - 1], pattern=1)
171+
model.sp(3, i, U3[i - 1], pattern=1)
174172
173+
175174
# run analysis
176175
model.constraints('Transformation')
177176
model.numberer('Plain')
@@ -186,7 +185,7 @@ Examples
186185
UCref = [
187186
(U1[0] + U2[0] + U3[0])/3.0,
188187
(U1[1] + U2[1] + U3[1])/3.0
189-
]
188+
]
190189
print('Expected displacement at constrained node is (U1+U2+U3)/3:\n{}\n\n'.format(UCref))
191190
192191
# read results

0 commit comments

Comments
 (0)