Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyframe3dd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Calisch
pyframe3dd
Commits
e5ef89f0
Commit
e5ef89f0
authored
7 years ago
by
Sam Calisch
Browse files
Options
Downloads
Patches
Plain Diff
fixed hard coded exagerration factors
parent
8f67ce5a
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/frame3dd.py
+7
-3
7 additions, 3 deletions
src/frame3dd.py
with
7 additions
and
3 deletions
src/frame3dd.py
+
7
−
3
View file @
e5ef89f0
...
...
@@ -70,6 +70,10 @@ def write_frame3dd_file(nodes,global_args,beam_sets,constraints,loads):
length_scaling
=
global_args
[
'
length_scaling
'
]
except
(
KeyError
):
length_scaling
=
1.
try
:
zoom_scale
=
global_args
[
'
zoom_scale
'
]
except
(
KeyError
):
zoom_scale
=
1.
try
:
node_radius
=
global_args
[
'
node_radius
'
]
*
length_scaling
except
(
KeyError
):
...
...
@@ -92,7 +96,7 @@ def write_frame3dd_file(nodes,global_args,beam_sets,constraints,loads):
full_loads
[
l
[
'
node
'
],
l
[
'
DOF
'
]]
=
l
[
'
value
'
]
loaded_nodes
=
where
(
any
(
full_loads
!=
0
,
axis
=
1
))[
0
]
#beams is flattened beam_sets
#beams is flattened beam_sets
{}
beams
=
vstack
([
beams
for
beams
,
args
in
beam_sets
])
beam_division_array
=
hstack
([
args
[
'
beam_divisions
'
]
*
ones
(
shape
(
bs
)[
0
],
dtype
=
int
)
for
bs
,
args
in
beam_sets
])
assert
(
shape
(
beams
)[
0
]
==
shape
(
beam_division_array
)[
0
])
...
...
@@ -201,7 +205,7 @@ def write_frame3dd_file(nodes,global_args,beam_sets,constraints,loads):
write_row
([
1
,
""
,
"
#whether to include shear deformation
"
])
write_row
([
1
,
""
,
"
#whether to include geometric stiffness
"
])
write_row
([
exagerration
,
""
,
"
#exagerrate static mesh deformations
"
])
write_row
([
2.5
,
""
,
"
#zoom scale for 3d plotting
"
])
write_row
([
zoom_scale
,
""
,
"
#zoom scale for 3d plotting
"
])
write_row
([
1.
,
""
,
"
#x axis increment for internal forces
"
])
write_row
([])
write_row
([
1
,
""
,
"
#number of static load cases
"
])
...
...
@@ -252,7 +256,7 @@ def write_frame3dd_file(nodes,global_args,beam_sets,constraints,loads):
write_row
([
0
,
""
,
"
#0= consistent mass matrix, 1= lumped mass matrix
"
])
write_row
([.
0001
,
""
,
"
#frequency convergence tolerance approx 1e-4
"
])
write_row
([
0.
,
""
,
"
#frequency shift-factor for rigid body modes, make 0 for pos.def. [K]
"
])
write_row
([
.
5
,
""
,
"
#exaggerate modal mesh deformations
"
])
write_row
([
exagerration
,
""
,
"
#exaggerate modal mesh deformations
"
])
write_row
([
0
,
""
,
"
#number of nodes with extra node mass or rotary inertia
"
])
write_row
([
0
,
""
,
"
#number of frame elements with extra node mass
"
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment