Version 6 (modified by 13 years ago) ( diff ) | ,
---|
New Users Page
Hi and welcome to the New Users club— the best on campus!
Here you can find material on stuff we cover in our weekly meetings, or other interesting information about the AstroBEAR code.
SPECIAL TOPICS
Effectively Implementing AMR
There are some additional controls for AMR other than setting the number of levels in global.data. One can also make use of the namelist variable in physics.data named "refineVariableFactor". If this is not currently in your physics.data file, you can add it under the line for InterpOpts. The input for this variable represents the different q array elements.
Example:
refineVariableFactor = 1.d-21,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0
The input here controls the variable to which refinement is triggered. By setting a slot = 0 means that refinement will not be triggered for this variable. The smaller the number, the less the refinement.
refineVariableFactor is defined in module_control.f90, in the subroutine SetErrFlag.
Additionally, one can modify the SetErrFlags subroutine in problem.f90 to indicate precise regions of refinement.
Example:
Helpful Links
http://www.mpia.de/homes/dullemon/lectures/fluiddynamics/Chapter_5.pdf - Nicely composed introduction chapter on numerical hydrodynamics.
Attachments (7)
-
BEModwithoutobjects-1.pdf
(59.2 KB
) - added by 14 years ago.
My simple BE module for a sample on module writing
-
sampleoutfile.out.pdf
(814.4 KB
) - added by 14 years ago.
a sample outfile.out
- index.jpeg (6.7 KB ) - added by 13 years ago.
- 1.jpg (50.3 KB ) - added by 13 years ago.
- subroutine.png (19.8 KB ) - added by 13 years ago.
- page1.png (4.0 MB ) - added by 13 years ago.
- page2.png (4.6 MB ) - added by 13 years ago.