วันอังคารที่ 16 มิถุนายน พ.ศ. 2552

Generate Particle data for running streamline

We use 2 files to compile 1) gendata.c - read b and GenData 2) nrutil.c - some function

to gen data for running streamline, we would gen particle with initial velocity // with b at the starting point(~0.1AU) which mean must have bx2d by2d bx1d by1d as U see.
Compile by use this command:
U will get:

run it by using command "./gen5000p"

in gendata.c
  • U can adjust Energy by variable v (calculate 1st and assign it).
  • U can adjust the number of particle by variable v.

ไม่มีความคิดเห็น: