微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > Particle-in-cell(localization problem)

Particle-in-cell(localization problem)

时间:03-30 整理:3721RD 点击:
I am new in PIC method.
I want to learn this method. I generate few particles in my simulation domain and also have corresponding velocities. For example...X & Y cordinate of each particle and parrale as well as perpendicular velocities of each particle. Now I want to use Boris Scheme for particle advancement.

I have problem in localization. How I can localize my particle w.r.t origin of the simulation domain? I have done like this...

NPART=NO. OF PARTICLE,HZ=SPACE DISCRITIZATION, XP=X CORDINATE OF PARTICLE, WL,WR=WEIGHT FACTOR, L1,L2=PARTICLE DISTANCE FROM NODE AND NODE+1

DO 400 I=1,NPART
KXP=INT(XP(I)/HZ)
L1(I)=((XP(I))-(KXP*HZ))
L2(I)=HZ-L1(I)
WL(I)=L1(I)/HZ
WR(I)=L2(I)/HZ
ENDDO

NOW I WANT TO KNOW HOW I CAN DO LOCALIZATION FOR Y CORDINATE OF THE ELECTRONS?
PLEASE HELP ME...
PLEASE GUIDE ME...
REGARDS

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top