-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathXb.m
35 lines (27 loc) · 1.26 KB
/
Xb.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
33
34
35
function xyb = Xb(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 R ;
r = R ;
global O P1 P2 P3 P4 P5 CMP ;
switch Domain
case 1
x = O(1)+r*cos(pi/4*s) ;
y = O(2)+r*sin(pi/4*s) ;
case 2
x = O(1)+r*cos(pi/4+pi/4*s) ;
y = O(2)+r*sin(pi/4+pi/4*s) ;
end
xyb = [x ; y] ;