particleswarm.c File Reference


Detailed Description

This is the implementation file for the particleswarm electromagnetic source, used for the self-consistent finite element time domain maxwell solver that models propagation of charged particles through accelerators.

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.

Author:
Benedikt Oswald
Date:
2007 apr 04, benedikt oswald
Warning:
none
Attention:
none required
Bug:
this is a research code.
Todo:
it would be useful to import precomputed cavity fields.

#include "particleswarm.h"

Functions

static INT ParticleSwarmSourceInit (NP_BASE *base, INT argc, char **argv)
INT InitParticleSwarmSource (void)


Function Documentation

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;


Generated on Fri Oct 26 14:04:29 2007 for acheron3d by  doxygen 1.4.7