Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meaning of vAc #2

Open
jhlq opened this issue Jun 28, 2024 · 9 comments
Open

Meaning of vAc #2

jhlq opened this issue Jun 28, 2024 · 9 comments

Comments

@jhlq
Copy link

jhlq commented Jun 28, 2024

Is vAc volts AC power? What is its physical interpretation in the algorithm?

@iwhoppock
Copy link
Owner

iwhoppock commented Jun 30, 2024 via email

@jhlq
Copy link
Author

jhlq commented Jun 30, 2024

Ok, thanks.
This article: https://edutinker.com/glossary/alfven-speed/
Says:
"The Alfvén speed is given by the equation:
V_A = B / (4πρ)^(1/2)
where B is the magnetic field, and ρ is the mass density of the plasma."
Is that what I should set vAc to?
Why did you divide by the speed of light?

@iwhoppock
Copy link
Owner

iwhoppock commented Jun 30, 2024 via email

@iwhoppock
Copy link
Owner

iwhoppock commented Jun 30, 2024 via email

@jhlq
Copy link
Author

jhlq commented Jul 1, 2024

Alright, thanks.

Another question, can the Boris algorithm handle spatially varying magnetic fields? It doesn't take into account the gradient of B so I guess not? I set up a magnetic mirror simulation and particles don't bounce no matter how large B gets.

@iwhoppock
Copy link
Owner

iwhoppock commented Jul 1, 2024 via email

@jhlq
Copy link
Author

jhlq commented Jul 1, 2024

I cloned your dipole.py and plugged in a magnetic mirror field: https://gitlab.com/marcus.appelros/fusion/-/blob/main/dipole.py

There is no bounce..:
noMirror

@jhlq
Copy link
Author

jhlq commented Jul 2, 2024

The magnetic field I used was unphysical, when I fixed it so divergence is zero the Boris algorithm does bounce, but not at the correct place, also the point it bounces at shifts..:
Screenshot from 2024-07-02 09-16-33
It should bounce back and fourth between x=1 and -1

@jhlq
Copy link
Author

jhlq commented Jul 2, 2024

I used the mirror field from this repo: https://github.com/BoschSamuel/Simulation-of-a-Tokamak-Fusion-Reactor/blob/master/B1.m
I turned off the central coil and scaled so B=1 at the origin.
Now it bounces between fixed points but it still doesn't bounce when B=2 but rather when B=45...
The code is here: https://gitlab.com/marcus.appelros/fusion/-/blob/main/Bosch/t0.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants