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:
datafile : 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:
nnode : an integer representing the number of nodes.
nelen : an integer representing the number of spring elements.
nload : an integer representing the number of nonzero nodal forces.
npredisp : an integer representing the number of nodes with prescribed displacement.
elemnode : a D NumPy array of size elem containing the leftright node numbers for all string elements.
elemstiffval : a D NumPy array of length nelem containing the stiffness values for all string elements, matching the order of elennode
forcenode : a D NumPy array of length containing the node numbers of the nodes that have nonzero forces on them.
forceval : a D NumPy array of length load containing the corresponding force values.
dispnode : a D NumPy array of length npredisp containing the node numbers of the nodes that have prescribed displacement.
dispval : a D NumPy array of length predisp containing the corresponding prescribed displacement values.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
