Commit e5ef89f0 authored by Sam Calisch's avatar Sam Calisch

fixed hard coded exagerration factors

parent 8f67ce5a
......@@ -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"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment