Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
infiniteDisplacement.m
Go to the documentation of this file.
1%function infiniteDisplacement
2syms Ax Ay Az Bx By Bz qx qy qz u L x y z real
3
4A=[Ax Ay Az]'; % initial point of the source segment
5B=[Bx By Bz]'; % final point of the source segment
6t=(B-A)/L; % the tangent vector
7S=A*(1-u)+B*u; % the source point moving along A->B as a function of u in [0,1]
8X=[x y z]'; % the field point
9Rv=X-S; % the R vector (source to field)
10R=sqrt(dot(Rv,Rv)); % the magnitude of the R vector
11q=[qx qy qz]'; % The q vector
12
13
14%I=int(dot(t,cross(q,Rv))/(R*(R-dot(q,Rv))),u,0,1);
15I=int(Rv/dot(Rv,Rv));
16disp('Done integration')
17Is=simple(I);
18Is
19
20
initial point of the source segment B
the tangent vector S
The q vector I
function infiniteDisplacement syms Ax Ay Az Bx By Bz qx qy qz u L x y z real A
the magnitude of the R vector q
id z()
the R vector(source to field) R
the field point Rv
final point of the source segment t
disp('Done integration') Is
a
Definition int_R.m:14
x
Definition int_R.m:12
REAL u[4]
void in