Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using *VOPER for vector multiplication

Status
Not open for further replies.

urun4fun123

Mechanical
Dec 16, 2007
4
DK
Hi

I've defined a Vector {R} 100x1 and a vector {U} 100x1 in ANSYS using making an array. Then i want to calculate the product {U}^T*{R}.
I cant find a command to get the transpose of a vector, but I can define the {U} as 1x100 instead.

I have done that but if try to make the multiplication:

x=*{R}

then x is only the product of: U(1,1)*R(1,1)

How is it possible to perform the vector multiplication?

 
Replies continue below

Recommended for you

So what you want do do is a the scalar product of 2 vectors. This can be done using two commands:

*voper,R,R,mult,U
*vscfun,dotproduct,sum,R

Regards,
Alex
 
The transpose is found with the *MFUN command:

*DIM,UT,,1,100
*MFUN,UT(1),tran,U(1)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top