Hello,
Currently I have two single dimension arrays. I am interested to know if I can modify program by combining them to a matrix giving same result.
E.g.
A(X), B(Y) used for M=P*A(1)+Q*B(2)
Proposed-
A(X,Y) used for M=P*A(1,Y)+Q*B(X,2)
Program should understand that it has to...
Hello,
I am calculating Unit vector for non orthogonal Cartesian grid. To calculate Unit Vector I need to project eg. y and x distance of east face of cell on i and j axis resp. I am using following formula-
Unit vector= Ue
Surface area= Se=sqrt(dx2+dy2)
Ue=(dy/se)i-(dx/se)j
Can anybody...
Hello tiny-tim,
I have attached detailed picture. I have to calculate unit vector for surface-E Ne. For given Cartesian coordinates, how I can calculate surface normal?
E.g. 2D Cartesian mesh- I got surface-E at an angle θ.
Thank you for reply.
But I need to calculate unit normal vector for surface F. I am looking for formula that calculates normal vector of surface with any given angle.
Hello,
I am trying to calculate normal vector for surface F Nf (see attached picture) to calculate velocity component for U. I tried to get more info but got confused.
Please tell me how I can calculate Nf.
Thanks in advance.
means-
If we consider one direction like picture I have attached in last post.
U- Velocity(known)
U'-Velocity(unknown)
Uv-Velocity Vector
Then if I am transferring velocity value
U'=U.Uv
Where U_v=\left(\frac{U}{|U|}\right )
But this becomes U'=U. I think this is wrong as...
Thanks for reply.
I am trying to multiply velocity with unit vector to transfer velocity without calculating at perticular location. Please see attached picture. Please tell me if I m using right equation and its values.
John,
I need to use following equation to calculate velocity for 2D...
Hello,
I am trying to calculate unit vector for velocity (vel= (U*Unit vector)/unit vector). But if I consider calculation by angle change e.g. unit vector= cos(theta) at certain angle velocity becomes infinity.
Please inform me how I can take care of this problem.
Thanks in advance.