Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
edu
mafe
Commits
7a66c87b
Commit
7a66c87b
authored
May 07, 2019
by
Andreas Zilian
Browse files
Minor corrections.
parent
09288714
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/dynamics/tda/example_dynamic_beam1c.m
View file @
7a66c87b
%% Example Beam1
b
%% Example Beam1
c
% A one-dimensional beam composed of a single beam finite element: 2-point bending
addpath
([
'..'
filesep
'..'
filesep
'..'
filesep
]);
%% Definition of sections
...
...
@@ -16,7 +16,7 @@ t2 = mafe.TimeFunction( 6.2832, 1.0, 0.0 ); % cosine time function for vertical
% vector of time functions
tfuns
=
[
t1
,
t2
];
%% Definition of member loads
l1
=
mafe
.
EleLoad
(
mafe
.
DofType
.
Disp2
,
-
1
);
% [N/m]
l1
=
mafe
.
EleLoad
(
mafe
.
DofType
.
Disp2
,
-
1
);
% [N/m]
%% Definition of nodes in the system
% Node 1
n1
=
mafe
.
Node1D
(
[
0.0
]
);
...
...
@@ -56,7 +56,7 @@ ana_fd.analyse();
%% Apply initial conditions
ana_fd
.
applyInitialConditions
(
u0
,
v0
);
deltaT
=
0.0125
;
% ti
e
m step size for time-domain analysis
deltaT
=
0.0125
;
% tim
e
step size for time-domain analysis
%% Select an analysis type: dynamic in time domain
ana_td
=
mafe
.
FeAnalysisDynamicTD
(
fep
,
tfuns
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment