Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
I'd like to check a simple-span beam for the effects of a torsion load along the beam span. This requires some element-wise operations as well as a function for angle of rotation. Attached is the portion of the sheet where I'm running into a vector/scalar error. I'm running Prime version 7.0.
I'd like for the output to include the first, second and third derivatives of the angle of rotation at 3 points along the beam span (the load point in addition to both ends of the beam). Is there a good way to manipulate the matrix setup or include the derivative functions within the main function in order to produce an output?
Solved! Go to Solution.
You can't define the derivative with respect to a vector (z).
I redefined your function theta so that it works with scalar arguments and then call them vectorized with the vector z as argument. Because the values of alpha vary wrt the values of z, I had to define theta and its derivatives as a function in z AND alpha.
Hope it helps. Can't save as Prime 7, so here is a full screenshot:
You can't define the derivative with respect to a vector (z).
I redefined your function theta so that it works with scalar arguments and then call them vectorized with the vector z as argument. Because the values of alpha vary wrt the values of z, I had to define theta and its derivatives as a function in z AND alpha.
Hope it helps. Can't save as Prime 7, so here is a full screenshot:
Thanks so much for the quick response! Appreciate the help