Copyright by Benedikt Oswald, 2002-2007, all rights reserved.
Objective: implements class and its methods of a class, i.e. numproc in UG speak, for providing an electromagnetic current density source, based on the concept of charged particles that propagate through accelerator structures. The particles' location, velocity and momentum is used for computing equivalen electric current densities which are then fed into the right hand side of the curl-curl equaiton for the electric field.
#include "particleswarm.h"
Functions | |
static INT | ParticleSwarmSourceInit (NP_BASE *base, INT argc, char **argv) |
INT | InitParticleSwarmSource (void) |
INT InitParticleSwarmSource | ( | void | ) |
Function for initializing the particle swarm source within the UG framework at the very beginning
static INT ParticleSwarmSourceInit | ( | NP_BASE * | base, | |
INT | argc, | |||
char ** | argv | |||
) | [static] |
ParticleSwarmSourceInit - initialization function for the
# create and initialize the numproc for implementation # of the excitation of the electromagnetic problem; # the excitation NUMPROCE has the class name force # and requires following parameters to be set: # npinit <source_name> $SOURCEPOSX 0.3* # $SOURCEPOSY 0.3* # $SOURCEPOSZ 0.3* # $SOURCETYPE current / voltage # $TDSHAPE gaussian # $AMPLITUDE 1.0 # $TIMEDELAY 5.0e-9 # $SPREAD 2.0e-9;