Changes between Initial Version and Version 1 of UsingTracers


Ignore:
Timestamp:
02/22/17 12:24:52 (9 years ago)
Author:
Jonathan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • UsingTracers

    v1 v1  
     1==== Tracers ====
     2Using tracers is fairly straightforward in AstroBEAR.  In your !ProblemModuleInit routine you can create additional tracers by calling
     3{{{
     4 CALL AddTracer(iTracer, 'TracerName')
     5}}}
     6where {{{iTracer}}} is an integer that corresponds to the slot in {{{Info%q}}} and !TracerName is an optional string description of the tracer that will show up in visit etc...
     7
     8===== Tracers in Objects =====
     9Most objects such as [ClumpObjects Clumps], [DiskObjects Disks], etc... support tracer fields and will properly initialize the data associated with those.  All you have to do is initialize them as follows:
     10{{{
     11 CALL CreateClump(Clump)
     12 CALL AddTracer(Clump%iTracer, 'MyClumpTracer')
     13 CALL UpdateClump(Clump)
     14}}}