Hello. I need help on modifying existing python script. (I can send you the clean copy)
here's the hw:
In this homework we’ll extend our object-oriented finite element analysis framework support fully
2D models, with elements oriented in any direction. We’ll also add to our element library.
The changes you’ll be implementing are:
Adding support for LineElement objects that aren’t all placed along the same line,
including coordinate transformations to convert from DOFs expressed in the element’s
local coordinates to ones expressed in global coordinates
Moving as much functionality as possible from the subclasses of LineElement into
LineElement itself, to reduce code duplication
Adopting standardized DOF names for 2D motion – instead of having transverse
deflection and rotation DOFs W# and R#, at each node an element may have DOFs UX#,
UY#, and R#, where # is the node ID number
Upgrading the existing beam elements to beam-column elements that can carry axial
Adding a new type of line element, the rod element
Specifically, the idea here is to set up the architecture of the LineElement class and its
subclasses so that almost all functionality is in LineElement, and subclasses only need to
define their stiffness matrix, mass matrix, and DOF list. The subclasses will define these in their
local coordinate system (with the X axis aligned along the element, and the Y axis
perpendicular to it), and LineElement will handle transformation from local coordinates into
The new convention for LineElement subclasses will be to have just three methods:
getLocalStiffnessMatrix, which gets the element’s stiffness matrix in its local coordinate
system; getLocalMassMatrix, which gets the mass matrix in the local coordinate system; and
getLocalDofList, which gives a list of the degrees of freedom of the element. The
getLocalDofList method should not bother labeling its DOF strings with the ID number of the
nodes; instead it should just label them with either “I” or “J” based on whether they’re for the
element’s node I or J (e.g. “UXI”, “UYJ”), and let the LineElement parent class take care of
putting in the node ID numbers.
The code you need to add or modify is as follows. All of this should be in the file LineElements.py.
2 freelancere byder i gennemsnit $42 for dette job
Hello. To say truth, right today I have successfully done exactly this task. I have verified solution. If your project is actual, please contact me. Vlad Krylov.