-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathXt.m
32 lines (25 loc) · 1.24 KB
/
Xt.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function xyt = Xt(s,Domain)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Code originally written by : Siva Srinivas Kolukula, PhD |
% Structural Mechanics Laboratory |
% Indira Gandhi Center for Atomic Research | |
% E-mail : [email protected] |
% web-link: https://sites.google.com/site/kolukulasivasrinivas/ |
% |
% Code is modified by: Jin Yang, PhD (2019@Caltech) |
% Contact: Jin Yang, [email protected] -or- [email protected] |
%--------------------------------------------------------------------------
%
% Version 1 : 15 November 2013
% Modified version: June 02, 2021; May 18, 2022
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
global O P1 P2 P3 P4 P5 CMP ;
switch Domain
case 1
x = P2(1)+(P3(1)-P2(1))*s ;
y = P2(2)+(P3(2)-P2(2))*s ;
case 2
x = P4(1)+(P3(1)-P4(1))*s ;
y = P4(2)+(P3(2)-P4(2))*s ;
end
xyt = [x ; y] ;