Version 1 (modified by 13 years ago) ( diff ) | ,
---|
Projection Objects
Projection Objects can be created within the ProblemModuleInit routine in problem.f90. To create projections you first need to add two USE
statements to your problem.f90
USE Projections USE Fields
Then in ProblemModuleInit declare a variable pointer of type ProjectionDef
TYPE(ProjectionDef), POINTER :: Projection
Then create the Projection and set the various parameters as in the following example
CALL CreateProjection(Projection) Projection%Field%id=CoolingStrength_Field Projection%Field%component=GASCOMP Projection%Field%name='Cooling_Strength' Projection%dim=3d0
- For more information on the Field sub-object's properties see ProcessingFields
- If you are making several projections, you can reuse the Projection Pointer (with or without Nullifying it) by calling
CreateProjection(Projection)
for each new projection.
Here is a full list of the various Projection parameters with the default values
INTEGER :: dim = 3 ! projection axis REAL(KIND=qPREC) :: pow=1d0 ! power to multiply field by before summing INTEGER :: PlotLevel=MAXIMUMPLOTLEVEL ! Sets resolution of output to that of PlotLevel. ! (MAXIMUMPLOTLEVEL uses the current finest level of resolution)
At each process event (currently each frame) a bov/dat file pair will be generated in the out directory ie. out/cooling_strength_along_3_00014.bov
and out/cooling_strength_along_3_00014.dat
. The .bov
file contains information about the data as well as the location of the actual data file .dat
which contains the raw unformatted binary data. Visit will only recognize the .bov
files. After opening the file, there will be a 2D dataset with a single variable projection that contains the integrated values.
Attachments (1)
- SampleProjection.png (61.8 KB ) - added by 13 years ago.
Download all attachments as: .zip