wiki:UsingTracers

Tracers

Using tracers is fairly straightforward in AstroBEAR. In your ProblemModuleInit routine you can create additional tracers by calling

 CALL AddTracer(iTracer, 'TracerName')

where 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…

Tracers in Objects

Most objects such as Clumps, Disks, etc… support tracer fields and will properly initialize the data associated with those. All you have to do is initialize them as follows:

 CALL CreateClump(Clump)
 CALL AddTracer(Clump%iTracer, 'MyClumpTracer')
 CALL UpdateClump(Clump)
Last modified 8 years ago Last modified on 02/22/17 12:24:52
Note: See TracWiki for help on using the wiki.