!LQrdVpOJEohPSWMlmf:matrix.org

Smilei users

295 Members
github.com/SmileiPIC/Smilei4 Servers

Load older messages


SenderMessageTime
6 Dec 2024
@fredpz:matrix.orgfredpzI think your approach is correct, but I didn't check your calculations exactly. Just make sure you account for the missing dimension correctly17:29:59
@bh48buga:matrix.tu-darmstadt.deBen Heller (TUDa)could you please explain in a bit more detail why the missing dimension in 2d is relevant for the conversion?18:26:58
@bh48buga:matrix.tu-darmstadt.deBen Heller (TUDa)Even though the simulation is only 2d, shouldn't i be able to convert the weight into the particle number relatively similar to AM geometry?18:29:01
@fredpz:matrix.orgfredpzNo you cannot. The macro particles, in 2d, represent a number of particles per unit length (of the missing dimension)18:52:20
7 Dec 2024
@bh48buga:matrix.tu-darmstadt.deBen Heller (TUDa)ok I will look into that, thank you09:12:42
9 Dec 2024
@nkehoe26:matrix.orgnkehoe26Hello, I've recently started using the AM geometry and I want to obtain the E_y field was you would using Field diagnostic in cartesian. I have used a Probe diagnostic across the entire x,y plane but this returns the complex e_y field, correct? How can you get the real component to convert to SI units (V/m)14:14:48
@nkehoe26:matrix.orgnkehoe26 * Hello, I've recently started using the AM geometry and I want to obtain the E_y field as you would using Field diagnostic in cartesian. I have used a Probe diagnostic across the entire x,y plane but this returns the complex e_y field, correct? How can you get the real component to convert to SI units (V/m) 14:22:47
@beck-llr:matrix.orgbeck-llrNo, the probe diagnostic returns the (real valued) Ey field reconstructed from all AM modes.14:32:50
@nkehoe26:matrix.orgnkehoe26 When I give happi the unit 'V\m' it just plots it from 1 to -1 and not from ~5e13 to -5e13 v\m 14:33:42
@beck-llr:matrix.orgbeck-llrDis you specify a reference angular frequency in your namelist ?14:35:55
@beck-llr:matrix.orgbeck-llr * Did you specify a reference angular frequency in your namelist ?14:36:03
@nkehoe26:matrix.orgnkehoe26Ey0000001510.png
Download Ey0000001510.png
14:38:09
@nkehoe26:matrix.orgnkehoe26

Yes I did, doing these steps:

import happi
sim=happi.Open('.')
sim.Probe('instant2 fields',  'Ey',  units=['um','fs','v/m']).animate(saveAs='Ey')

I get this output

14:38:11
@nkehoe26:matrix.orgnkehoe26The colour bar doesn't change14:38:29
@fredpz:matrix.orgfredpz use vmin and vmax 14:45:13
@nkehoe26:matrix.orgnkehoe26 Okay, I think it could be an issue using .animate() 14:45:30
@nkehoe26:matrix.orgnkehoe26 If I use .plot() for a single tilmestep it plots correct but not with .animate() 14:46:00
@beck-llr:matrix.orgbeck-llr Yes in animate the range of the colorbar is not dynamically adjusted. IT just takes the range of t=0 I guess. 14:46:43
@nkehoe26:matrix.orgnkehoe26Ey0000002718.png
Download Ey0000002718.png
14:46:44
@nkehoe26:matrix.orgnkehoe26 This is using .animate() 14:46:50
@beck-llr:matrix.orgbeck-llr * Yes in animate the range of the colorbar is not dynamically adjusted. It just takes the range of t=0 I guess. 14:46:52
@nkehoe26:matrix.orgnkehoe26EyTest.png
Download EyTest.png
14:47:01
@nkehoe26:matrix.orgnkehoe26 This is using .plot() 14:47:03
@nkehoe26:matrix.orgnkehoe26Same timestep and units given14:47:16
@beck-llr:matrix.orgbeck-llr try .animate(vmin=6e-13, vmax=6e13) 14:47:39
@beck-llr:matrix.orgbeck-llr * try .animate(vmin=-6e-13, vmax=6e13) 14:47:47
@fredpz:matrix.orgfredpz or vsym=6e13 14:47:55
@nkehoe26:matrix.orgnkehoe26Ey0000002718.png
Download Ey0000002718.png
14:49:54
@nkehoe26:matrix.orgnkehoe26This seems to have fixed it14:49:57
@nkehoe26:matrix.orgnkehoe26Thank you14:50:15

There are no newer messages yet.


Back to Room ListRoom Version: 5