File: cherenkov-radiation.ctl

package info (click to toggle)
meep-openmpi 1.25.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 64,556 kB
  • sloc: cpp: 32,214; python: 27,958; lisp: 1,225; makefile: 505; sh: 249; ansic: 131; javascript: 5
file content (24 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;; moving point charge with superluminal phase velocity in dielectric media emitting Cherenkov radiation

(set-param! resolution 10)

(define-param sx 60)
(define-param sy 60)
(set! geometry-lattice (make lattice (size sx sy no-size)))

(define-param dpml 1.0)
(set! pml-layers (list (make pml (thickness dpml))))

(set! default-material (make dielectric (index 1.5)))

(define-param v 0.7) ; velocity of point charge

(set! symmetries (list (make mirror-sym (direction Y))))

(run-until (/ sx v)
	   (lambda ()
	     (change-sources! (list (make source
				      (src (make continuous-src (frequency 1e-10)))
				      (component Ex)
				      (center (+ (* -0.5 sx) dpml (* v (meep-time))))))))
	              (at-every 2 (output-png Hz "-vZc dkbluered -M 1")))