Question: Your Tasks 1 ) Compute the system response ( unknown quantities ) Write the function solveSystem ( ) that takes six input arguments k _

Your Tasks
1) Compute the system response (unknown quantities)
Write the function solveSystem() that takes six input arguments k_pp, k_pf, k_fp, k_ff, u_p, p_f and returns two outputs u_f and p_p.
Input arguments:
k_pp: a 2-D NumPy array that represents the Kpp submatrix.
k_pf: a 2-D NumPy array that represents the Kpf submatrix.
k_fp: a 2-D NumPy array that represents the Kfp submatrix.
k_ff: a 2-D NumPy array that represents the Kff submatrix.
u_p: a 1-D NumPy array that stores the known prescribed displacement values Up.
p_f: a 1-D NumPy array that stores the known force values Pf.
Outputs:
u_f: a 1-D NumPy array that stores the displacement values of the free nodes Uf.
p_p: a 1-D NumPy array that stores the reaction forces on the prescribed nodes Pp.
Some things to consider:
Be aware of data types. What should the data type of u_f and p_p be?
You can use the @ character to represent matrix dot products. For example, AB can be expressed as A @ B in Python, where A, B are NumPy arrays.

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!