Version 2 (modified by 13 years ago) ( diff ) | ,
---|
Spectra Objects
Spectra Objects can be created within the ProblemModuleInit routine in problem.f90. To create spectras you first need to add two USE
statements to your problem.f90
USE Spectras USE Fields
Then in ProblemModuleInit declare a variable pointer of type SpectraDef
TYPE(SpectraDef), POINTER :: Spectra
Then create the Spectra and set the various parameters as in the following example
CALL CreateSpectra(Spectra) ALLOCATE(Spectra%Fields(3)) Spectra%Fields(:)%id=(/vx_Field, vy_Field, vz_Field/) Spectra%type=VECTOR_SPECT CALL CreateSpectra(Spectra) ALLOCATE(Spectra%Fields(1)) Spectra%Fields(:)%id=(/Mass_Field/) Spectra%type=SCALAR_SPECT
- For more information on the Field sub-object's properties see ProcessingFields
- If you are making several spectras, you can reuse the Spectra Pointer (with or without Nullifying it) by calling
CreateSpectra(Spectra)
for each new spectra. - The spectra are calculated using the PFFT module
Here is a full list of the various Spectra parameters with the default values in brackets:
TYPE(FieldDef), ALLOCATABLE :: Fields(:) REAL(KIND=qPREC), DIMENSION(:,:), ALLOCATABLE :: Data INTEGER :: Level=MAXIMUMSPECTRALEVEL REAL(KIND=qPREC) :: kmin REAL(KIND=qPREC) :: dk=1d0 INTEGER :: Type = SCALAR_SPECT TYPE(SpectraDef), POINTER :: next
Then at each process event (currently each frame) a curve file will be generated in the out directory ie. out/Spectra00021.curve
that will contain all of the spectra for that frame. See CurveFiles for more information on plotting curve files in visit.
Attachments (14)
- SampleSpectra.jpeg (62.9 KB ) - added by 13 years ago.
-
Screen Shot 2015-01-06 at 3.31.14 PM.png
(191.0 KB
) - added by 10 years ago.
analytic
-
Screen Shot 2015-01-06 at 3.38.19 PM.png
(74.0 KB
) - added by 10 years ago.
discrete1
-
Screen Shot 2015-01-06 at 3.08.22 PM.png
(122.5 KB
) - added by 10 years ago.
discrete2
- Screen Shot 2015-01-06 at 4.28.36 PM.png (78.7 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 10.49.34 AM.png (53.1 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 10.57.02 AM.png (52.4 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 12.05.47 PM.png (15.8 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 2.44.52 PM.png (93.3 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 2.53.55 PM.png (63.4 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 2.58.13 PM.png (107.9 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 2.57.25 PM.png (75.6 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 3.07.07 PM.png (565.2 KB ) - added by 10 years ago.
- Screen Shot 2015-01-13 at 3.15.15 PM.png (485.0 KB ) - added by 10 years ago.
Download all attachments as: .zip