跳到主要内容

Field information

Description

[fieldInfo] block is used to add external field and define the solver order for Maxwell equations:

Options

  • useExternalFields: whether use external field (will be added to local field when pushing particles, or calculate the vacuum refractive indexes)
  • e[x,y,z]str: the electric components of the external field;
  • b[x,y,z]str: same as above for magnetic components;
  • fieldOrder: field solver order, can be 2 or 4 for Yee solver (explicit);
plane wave laser:
[fieldInfo]
useExternalFields = false
exstr = "100.0 * cos(t + z - 47.12) * exp(-((t + z - 47.12) / 31.42)^2 -((x^2 + y^2) / 18.85)^2)"
eystr = " 5.0 * sin(t + z - 47.12) * exp(-((t + z - 47.12) / 31.42)^2 -((x^2 + y^2) / 18.85)^2)"
ezstr = "0.0"
bxstr = " 5.0 * sin(t + z - 47.12) * exp(-((t + z - 47.12) / 31.42)^2 -((x^2 + y^2) / 18.85)^2)"
bystr = "-100.0 * cos(t + z - 47.12) * exp(-((t + z - 47.12) / 31.42)^2 -((x^2 + y^2) / 18.85)^2)"
bzstr = "0.0"
fieldOrder = 2
提示

Use this method to start a single particle simulation.