Version 1 (modified by 13 years ago) ( diff ) | ,
---|
Camera Objects
Camera Objects can be created within the ProblemModuleInit routine in problem.f90. To create Cameras you first need to add two USE
statements to your problem.f90
USE Cameras USE Fields
Then in ProblemModuleInit declare a variable pointer of type CameraDef
TYPE(CameraDef), POINTER :: Camera
Then create the Camera and set the various parameters as in the following example
CALL CreateCamera(Camera) Camera%pos = (/4d0,-10d0,4d0/) Camera%UpVector = (/0d0,0d0,1d0/) Camera%Focus = (/4d0,4d0,4d0/) Camera%FOV = (/30d0,3d0/)
- Camera's are currently only used by the Projection Object
Here is a full list of the various Camera parameters with the default values in brackets:
REAL(KIND=qPREC), DIMENSION(3) :: pos = DEFAULTCAMERAPOS ! Will choose a point at a distance in -y to see the entire domain. REAL(KIND=qPREC), DIMENSION(3) :: UpVector=(/0d0,0d0,1d0/) REAL(KIND=qPREC), DIMENSION(3) :: Focus = CENTER !Will select the center of the simulation domain REAL(KIND=qPREC) :: FOV= (/30d0, 30d0/)
Attachments (11)
- rotating.gif (4.1 MB ) - added by 13 years ago.
- CubeRotate.gif (12.9 MB ) - added by 13 years ago.
-
problem.f90
(3.5 KB
) - added by 10 years ago.
problem.f90 for clump example
-
physics.data
(9.6 KB
) - added by 10 years ago.
physics.data for clump example
-
global.data
(5.2 KB
) - added by 10 years ago.
global.data for clump example
-
problem.data
(324 bytes
) - added by 10 years ago.
problem.data for clump example
-
solver.data
(1.4 KB
) - added by 10 years ago.
solver.data for clump example
-
mesh0000.png
(51.6 KB
) - added by 10 years ago.
mesh illustration for clump example
-
nowind_justclump1_0000.png
(42.0 KB
) - added by 10 years ago.
png for clump example
-
nowind_justclump1.gif
(5.8 MB
) - added by 10 years ago.
movie of clump example
-
problem.data.png
(47.5 KB
) - added by 10 years ago.
png of problem.data file
Note:
See TracWiki
for help on using the wiki.