: Martin Oliver Steinhauser
: Computer Simulation in Physics and Engineering
: Walter de Gruyter GmbH& Co.KG
: 9783110256062
: 1
: CHF 180.80
:
: Physik, Astronomie
: English
: 529
: Wasserzeichen
: PC/MAC/eReader/Tablet
: PDF
< >This work is a needed reference for widely used techniques and methods of computer simulation in physics and other disciplines, such as materials science. The work conveys both: the theoretical foundations of computer simulation as well as applications and 'tricks of the trade', that often are scattered across various papers. Thus it will meet a need and fill a gap for every scientist who needs computer simulations for his/her task at hand. In addition to being a reference, case studies and exercises for use as course reading are included.


< >Martin Oliver Steinhauser, Fraunhofer-Institute for High-Speed Dynamics, Ernst-Mach-Institute, EMI, Freiburg, Germany.

Preface5
1 Introduction to computer simulation21
1.1 Physics and computational physics21
1.2 Choice of programming language25
1.3 Outfitting your PC for scientific computing33
1.4 History of computing in a nutshell37
1.5 Number representation: bits and bytes in computer memory42
1.5.1 Addition and subtraction of dual integer numbers44
1.5.2 Basic data types49
1.6 The role of algorithms in scientific computing61
1.6.1 Efficient and inefficient calculations63
1.6.2 Asymptotic analysis of algorithms71
1.6.3 Merge sort and divide-and-conquer76
1.7 Theory, modeling and computer simulation79
1.7.1 What is a theory?79
1.7.2 What is a model?87
1.7.3 Model systems: particles or fields?92
1.7.4 The linear chain as a model system94
1.7.5 From modeling to computer simulation98
1.8 Exercises101
1.8.1 Addition of bit patterns of 1 byte duals101
1.8.2 Subtracting dual numbers using two’s complement101
1.8.3 Comparison of running times101
1.8.4 Asymptotic notation102
1.9 Chapter literature103
2 Scientific Computing in C104
2.1 Introduction104
2.1.1 Basics of a UNIX/Linux programming environment107
2.2 First steps in C119
2.2.1 Variables in C121
2.2.2 Global variables123
2.2.3 Operators in C124
2.2.4 Control structures128
2.2.5 Scientific “Hello world!”131
2.2.6 Streams - input/output functionality136
2.2.7 The preprocessor and symbolic constants139
2.2.8 The function scanf()142
2.3 Programming examples of rounding errors and loss of precision145
2.3.1 Algorithms for calculating e-x150
2.3.2 Algorithm for summing 1/n153
2.4 Details on C-Arrays157
2.4.1 Direct initialization of certain array elements (C99)161
2.4.2 Arrays with variable length (C99)161
2.4.3 Arrays as function parameters162
2.4.4 Pointers164
2.4.5 Pointers as function parameters172
2.4.6 Pointers to functions as function parameters174
2.4.7 Strings179
2.5 Structures and their representation in computer memory181
2.5.1 Blending structs and arrays183
2.6 Numerical differentiation and integration185
2.6.1 Numerical differentiation186
2.6.2 Case study: the second derivative of ex189
2.6.3 Numerical integration196
2.7 Remarks on programming and software engineering201
2.7.1 Good software development practices201
2.7.2 Reduction of complexity204
2.7.3 Designing a program208
2.7.4 Readability of a program209
2.7.5 Focus your attention by using conventions210
2.8 Ways to improve your programs211
2.9 Exercises213
2.9.1 Questions213
2.9.2 Errors in programs214
2.9.3 printf()-statement217
2.9.4 Assignments218
2.9.5 Loops219
2.9.6 Recurrence219
2.9.7 Macros220
2.9.8 Strings220
2.9.9 Structs221
2.10 Projects223
2.10.1 Decimal and binary representation223
2.10.2 Nearest machine number223
2.10.3 Calculating e -x223
2.10.4 Loss of precision224
2.10.5 Summing series224
2.10.6 Recurrence in orthogonal functions225
2.10.7 The Towers of Hanoi225
2.10.8 Spherical harmonics and Legendre polynomials227
2.10.9 Memory diagram of a battle228
2.10.10 Computing derivatives numerically228
2.11 Chapter literature230
3 Fundamentals of statistical physics231
3.1 Introduction and basic ideas232
3.1.1 The macrostate236
3.1.2 The microstate238
3.1.3 Information conservation in statistical physics239
3.1.4 Equations of motion in classical mechanics245
3.1.5 Statistical physics in phase space249
3.2 Elementary statistics255
3.2.1 Random Walk256
3.2.2 Discrete and continuous probability distributions261
3.2.3 Reduced probability distributions262
3.2.4 Important distributions in physics and engineering264
3.3 Equilibrium distribution269
3.3.1 The most probable distribution271
3.3.2 A statistical definition of temperature273
3.3.3 The Boltzmann distribution and the partition function275
3.4 The canonical ensemble278
3.5 Exercises281
3.5.1 Trajectories of the one-dimensional harmonic oscillator in phase space281
3.5.2 Important integrals of statistical physics281
3.5.3 Probability, e