GfsParticle

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:19, 17 July 2012
GeordieMcBain (Talk | contribs)
(general tidy and rewrite)
← Previous diff
Current revision
Popinet (Talk | contribs)
(removed redundant/confusing syntax definition for GfsParticleList)
Line 1: Line 1:
-A GfsParticle is the basic inert Lagrangian particle of the type that constitutes a [[GfsParticleList]]; each is characterised by an ID number (an [http://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint unsigned integer]) and an initial (X, Y, Z) position.+A GfsParticle is a basic inert Lagrangian particle.
-Although GfsParticle is derived from [[GfsEvent]], it inherits neither its read nor write methods, so timing (start, end ...) is not specified individually but only for whole [[GfsParticleList]]s; thus the syntax in parameter files is:+The syntax in parameter files is
- [[GfsParticleList]] *LIST { + ID X Y Z
- start = 0.1 istart = 10 ( step = 1.2 | istep = 10 ) end = 0.4 iend = 123 +
- } [[GfsParticle]] { ID X Y Z } ...+
-Here the syntax of the optional name LIST and the timing parameters as for the GfsEvent that GfsParticleList is derived from. The (here elided) end of the line describes the [[GfsParticleForce]]s.+where <code>ID</code> is a unique identifier (an [http://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint unsigned integer]) and <code>(X,Y,Z)</code> the particle position.
 + 
 +Although GfsParticle is derived from [[GfsEvent]], it inherits neither its read nor write methods, so timing (start, end ...) is not specified individually but only for whole [[GfsEventList]]s of particles.
Particles with more properties can be created using the [[GfsParticulate]] subclass. Particles with more properties can be created using the [[GfsParticulate]] subclass.
<examples/> <examples/>

Current revision

A GfsParticle is a basic inert Lagrangian particle.

The syntax in parameter files is

ID X Y Z

where ID is a unique identifier (an unsigned integer) and (X,Y,Z) the particle position.

Although GfsParticle is derived from GfsEvent, it inherits neither its read nor write methods, so timing (start, end ...) is not specified individually but only for whole GfsEventLists of particles.

Particles with more properties can be created using the GfsParticulate subclass.


Personal tools
communication