Changes between Version 13 and Version 14 of ModulesOnAstroBear
- Timestamp:
- 07/12/11 19:26:31 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModulesOnAstroBear
v13 v14 55 55 56 56 {{{ 57 ! DataDeclarations makes the InfoDef type available, GlobalDeclarations is required for grid information, and PhysicsDeclarations is useful for some physical quantities like gamma.58 ! 57 ! DataDeclarations makes the InfoDef type available, GlobalDeclarations is required for grid information, 58 ! and PhysicsDeclarations is useful for certain physical quantities like gamma. 59 59 USE DataDeclarations 60 60 USE GlobalDeclarations … … 65 65 ==== Simulation Data ==== 66 66 67 All AstroBEAR modules have at least one thing in common: initializing the problem domain. Within our code, the problem domain's data is held in {{{InfoDef}}} structures, which is why so many module subroutines take an {{{InfoDef}}} structure as a parameter. To make use of the {{{InfoDef}}} structure this statement is required at the beginning of {{{problem.f90}}}: 68 {{{ 69 USE DataDeclarations 70 }}} 67 All AstroBEAR modules have at least one thing in common: initializing the problem domain. Within our code, the problem domain's data is held in {{{InfoDef}}} structures, which is why so many module subroutines take an {{{InfoDef}}} structure as a parameter. 71 68 72 69 There are two major data arrays in {{{InfoDef}}}: the {{{q}}} array and the {{{aux}}} array. {{{q}}} holds the cell-centered data and is used by all AstroBEAR simulations. The {{{q}}} array takes the form {{{q(x,y,z,variable)}}} where {{{variable}}} is itself a 1D array that holds the physical quantities such as density, momentum, energy, etc. The order of the quantities in the {{{variable}}} array is {{{(rho, px, py, pz, E)}}}. The {{{aux}}} array holds face-centered data, and is only used in MHD problems. If you are running a strictly hydrodynamic problem or a hydrodynamic + elliptic problem, then you will not need {{{aux}}}.