######################################################################
#
# File: simpleWave.pre
#
# Purpose: Pre file that simulates an electromagnetic wave.
#
######################################################################
##########
#
# Define variables in lines starting with ¿$¿ for later use
#
##########
# Number of grid cells
$ NX = 40
$ NY = 20
$ NZ = 20
##########
#
# Define the simulation parameters
#
##########
# The dimension and precision of the simulation
dimension = 2
floattype = double
# Time step of integration and number of steps
dt = 1.1713e-15
nsteps = 30
# Dump output into an HDF5 file every 5 time steps
dumpPeriodicity = 5
##########
#
# Define the grid: the physical problem and the number of cells
#
##########
kind = uniCartGrid
numCells = [NX NY NZ]
# All physical values in units
lengths = [1.6e-05 5.0e-05 5.0e-05]
##########
#
# Define the decomposition
#
##########
# Decomposition planes cut entire region
decompType = regular
# The periodic directions
periodicDirs = [1 2]
##########
#
# Define the EM field and describe its boundary conditions
#
##########
# Uses FDTD model on a Yee mesh
kind = yeeEmField
# Value given by function
kind = variable
lowerBounds = [0 0 0] # Lower limits
upperBounds = [1 NY NZ] # Upper limits
indices = [1] # Ey polarized
function = expression
expression = 1.e6*sin(4.71e14*t)