Bonus Assignment #1 (Deadline: Nov 3rd)
Problem statement:
Develop a program for the bar element for 2D and 3D problems that meets the following criteria:
1. It should be general and not limited to specific problems, nodes, or elements.
2. Calculate nodal displacements.
3. Specify reaction forces.
4. Determine the stress in each element.
The program can be written in any programming language (e.g., MATLAB, Python, C, C++), and must
be submitted via NYU Brightspace.
Grading Criteria:
Constructing the global stiffness matrix (4 points)
Correct implementation of boundary conditions (2 points)
Generating results for:
o Nodal displacements (1 point)
o Reaction forces (1 point)
o Stress in each element (1 point)
Clear documentation and comments on how to run the program (1 point)
Inclusion of a test case that allows the program to be run without additional input (mandatory;
absence results in a 5-points deduction)
Programs tailored to specific problems will not be graded.
No credit will be awarded for incomplete programs.
Important Notes:
This assignment can be completed in pairs, with only one submission needed per group. Be sure
to include the names and NYU IDs of all group members in the submission comment.
Only the code file needs to be submitted; a report is not required. If you use AI Chatbot to
generate any code, include the conversation.
Provide sufficient comments to explain the program’s functionality and instructions for execution.