Line | |
---|
1 | subroutine rotate |
---|
2 | c---rotate particle cordinates around axis |
---|
3 | c--------------------------------------------------------------------------- |
---|
4 | c |
---|
5 | include 'param_sz.h' |
---|
6 | include 'pcordcom.h' |
---|
7 | include 'syscom.h' |
---|
8 | include 'ucom.h' |
---|
9 | c |
---|
10 | c-------------------------------------------------------------------------- |
---|
11 | c* |
---|
12 | ne=rne |
---|
13 | ang=el(4,ne) |
---|
14 | r=sqrt(x**2+y**2) |
---|
15 | rbg=sqrt(bgx**2+bgy**2) |
---|
16 | phi=atan2(y,x)-ang |
---|
17 | bgphi=atan2(bgy,bgx)-ang |
---|
18 | x=r*cos(phi) |
---|
19 | y=r*sin(phi) |
---|
20 | bgx=rbg*cos(bgphi) |
---|
21 | bgy=rbg*sin(bgphi) |
---|
22 | return |
---|
23 | end |
---|
24 | c++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++* |
---|
Note: See
TracBrowser
for help on using the repository browser.