Question: Your Task Input argument: data _ file : a string representing the file path to a txt file containing data for the spring system. Outputs

Your Task
Input argument:
data_file : a string representing the file path to a txt file containing data for the spring system.
Outputs (should be returned in the order given below):
n_node : an integer representing the number of nodes.
n_elen : an integer representing the number of spring elements.
n_load : an integer representing the number of nonzero nodal forces.
n_pre_disp : an integer representing the number of nodes with prescribed displacement.
elem_node : a 2-D NumPy array of size (n_elem 2) containing the left/right node numbers for all string elements.
elem_stiff_val : a 1-D NumPy array of length n_elem containing the stiffness values for all string elements, matching the order of elen_node -
force_node : a 1-D NumPy array of length n?load containing the node numbers of the nodes that have nonzero forces on them.
force_val : a 1-D NumPy array of length n_load containing the corresponding force values.
disp_node : a 1-D NumPy array of length n_pre_disp containing the node numbers of the nodes that have prescribed displacement.
disp_val : a 1-D NumPy array of length n_pre_disp containing the corresponding prescribed displacement values.
Your Task Input argument: data _ file : a string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!