Download CO5BOLD User Manual
Transcript
2 CONTENTS Contents 1 Introduction 5 2 Equations 2.1 Basic Equations . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 A collection of thermodynamic relations (M. Steffen, AIP) . . 2.2.1 Basic thermodynamic equations . . . . . . . . . . . . . 2.2.2 Definition of often-used thermodynamic coefficients . . 2.2.3 CO5BOLD equation of state . . . . . . . . . . . . . . 2.2.4 Derived thermodynamic coefficients . . . . . . . . . . 2.2.5 Ideal gas with constant specific heats (polytropic gas) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 . 6 . 6 . 6 . 7 . 7 . 7 . 11 3 Program Files, Installation, Compilation 3.1 Quickstart: How to Compile CO5BOLD . 3.2 Compilation Procedure for CO5BOLD . . 3.3 Directory Structure . . . . . . . . . . . . . 3.4 Old Setup File for Paths . . . . . . . . . . 3.5 Fortran Files . . . . . . . . . . . . . . . . 3.6 Configure Script . . . . . . . . . . . . . . 3.7 Compiler Macros . . . . . . . . . . . . . . 3.8 Optimization, Compiler Switches . . . . . 3.8.1 General: OpenMP settings . . . . 3.8.2 General: Inlining . . . . . . . . . . 3.8.3 Cray: SV1 . . . . . . . . . . . . . . 3.8.4 Compaq: alpha . . . . . . . . . . . 3.8.5 Hewlett-Packard: V2500 . . . . . . 3.8.6 Hewlett-Packard: Itanium 2 . . . . 3.8.7 Hitachi SR8000 . . . . . . . . . . . 3.8.8 IBM . . . . . . . . . . . . . . . . . 3.8.9 Linux: PGI Compiler . . . . . . . 3.8.10 Linux: Intel Compiler . . . . . . . 3.8.11 NEC SX-5 . . . . . . . . . . . . . . 3.8.12 SGI: Origin . . . . . . . . . . . . . 3.8.13 SGI: Origin 2000/3800 at UKAFF 3.8.14 Sun: SunFire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 13 13 16 16 21 24 25 33 34 34 35 35 36 36 37 38 40 41 42 43 43 44 . . . . . . . . . . . . . . . . . 47 47 47 48 48 49 50 52 52 53 53 54 54 55 56 56 57 57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 UIO Data Format 4.1 Quickstart: Introduction to UIO . . . . . . . . . . . . 4.2 Example of UIO Data File . . . . . . . . . . . . . . . . 4.3 Structure of UIO Files . . . . . . . . . . . . . . . . . . 4.3.1 Data Representation: ASCII or Binary . . . . . 4.3.2 Data File Structure . . . . . . . . . . . . . . . 4.3.3 Tables . . . . . . . . . . . . . . . . . . . . . . . 4.3.4 Recommendations for Standard File Structure 4.4 Files & Directories & Paths . . . . . . . . . . . . . . . 4.5 Fortran90 . . . . . . . . . . . . . . . . . . . . . . . . . 4.5.1 Files . . . . . . . . . . . . . . . . . . . . . . . . 4.5.2 Use of UIO Modules in Fortran90 . . . . . . . . 4.5.3 Compiling and Makefiles . . . . . . . . . . . . . 4.5.4 Sample Calls of Fortran UIO Routines . . . . . 4.6 UNIX Scripts . . . . . . . . . . . . . . . . . . . . . . . 4.6.1 Installation of UIO UNIX Scripts . . . . . . . . 4.6.2 Quick Examination of Files: uiolook . . . . . . 4.6.3 Transformation of Files: uiocat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .