def.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ABOUT   "MOLECULAR DYNAMICS SIMULATOR BY A.V.SMIRNOV\nandrei.v.smirnov@gmail.com\n"
#define DOCTYPE   "remody"
#define REAL   double
#define TINY   1e-10
#define SMALL   1e-30
#define LARGE   1e30
#define MAXLINLEN   510
#define WORDLENGTH   64
#define ESC   0x1B
#define PI   3.14159265358979323846
#define SQRTPIo8   0.62666
#define ERROR(message)   { fprintf(stderr,"\nERROR: %s\n",message);exit(1);}
#define TRUE   1
#define FALSE   0
#define OMP
#define WAIT   for(int i=0;i<999999&&locked;i++)
#define LOCAL
#define COLLISIONTIME
#define RND   (REAL)((double)rand()/RAND_MAX)
#define MAX(a, b)   ((a)>(b)?a:b)
#define ZERO(n, x)   for (int i=0; i<(n); i++)x[i]=0.0
#define ADD(n, x, y)   for (int i=0; i<(n); i++) (x)[i] += (y)[i]
#define SUB(n, x, y)   for (int i=0; i<(n); i++) (x)[i] -= (y)[i]
#define ADDC(n, x, y, d)   for (int i=0; i<(n); i++) (x)[i] += (y)[i]*(d)
#define SUBC(n, x, y, d)   for (int i=0; i<(n); i++) (x)[i] -= (y)[i]*(d)
#define MUL(n, x, y)   for (int i=0; i<(n); i++) (x)[i] *= (y)[i]
#define MULC(n, x, c)   for (int i=0; i<(n); i++) (x)[i] *= (c)
#define DIV(n, x, y)   for (int i=0; i<(n); i++) (x)[i] /= (y)[i]
#define MULVEC(x, s)   for (int i=0; i<DIM; i++) (x)[i] *= (s)
#define ADDVEC(x, y)   for (int i=0; i<DIM; i++) (x)[i] += (y)[i]
#define COPYVEC(x, y)   for (int i=0; i<DIM; i++) (x)[i] = (y)[i]
#define ZEROVEC(x)   for (int i=0; i<DIM; i++) (x)[i] = 0.
#define SCLP(A, B)   (A[0]*B[0]+A[1]*B[1]+A[2]*B[2])
#define VECP(A, B, C)
#define LENGTH(A)   sqrt(SCLP(A,A))
#define VOIDSPECIE   nspecies
#define GAUSS   Run::gauss()
#define DIM   3
#define BoltzmannConstant   1.38066e-23
#define AtomicMassUnit   1.66053886e-27
#define AvogadroNumber   6.02214179e23
 Avogadro Number in 1/mol.
#define DOFK   3
#define DOF(cp)   MAX(2.0*((cp)*GasConstantInv-1.0),DOFK)
#define DOFI(dof)   (dof-DOFK)

Variables

const int maxcounters = 4
const REAL onethird = 1.0/3.0
const REAL twothirds = 2.0/3.0
const REAL Sqrt2 = sqrt(2.0)
const REAL Sqrt2Over2 = 0.5*Sqrt2
const REAL sqrt1p5 = sqrt(1.5)
const REAL sqrt1p25 = sqrt(1.25)
const REAL Sqrt3 = sqrt(3.0)
const REAL OneOverSqrt2 = 1.0/Sqrt2
const REAL OneOverSqrt3 = 1.0/Sqrt3
const REAL Sqrt3Over2 = 0.5*Sqrt3
const REAL GasConstant = BoltzmannConstant*AvogadroNumber
const REAL GasConstantInv = 1.0/GasConstant


Define Documentation

#define ABOUT   "MOLECULAR DYNAMICS SIMULATOR BY A.V.SMIRNOV\nandrei.v.smirnov@gmail.com\n"

Definition at line 1 of file def.h.

Referenced by Gui::menu().

#define ADD ( n,
x,
 )     for (int i=0; i<(n); i++) (x)[i] += (y)[i]

Definition at line 46 of file def.h.

#define ADDC ( n,
x,
y,
 )     for (int i=0; i<(n); i++) (x)[i] += (y)[i]*(d)

Definition at line 48 of file def.h.

#define ADDVEC ( x,
 )     for (int i=0; i<DIM; i++) (x)[i] += (y)[i]

Definition at line 54 of file def.h.

#define AtomicMassUnit   1.66053886e-27

#define AvogadroNumber   6.02214179e23

Avogadro Number in 1/mol.

Definition at line 69 of file def.h.

Referenced by Domain::Domain().

#define BoltzmannConstant   1.38066e-23

#define COLLISIONTIME

Definition at line 38 of file def.h.

#define COPYVEC ( x,
 )     for (int i=0; i<DIM; i++) (x)[i] = (y)[i]

Definition at line 55 of file def.h.

#define DIM   3

#define DIV ( n,
x,
 )     for (int i=0; i<(n); i++) (x)[i] /= (y)[i]

Definition at line 52 of file def.h.

#define DOCTYPE   "remody"

Definition at line 3 of file def.h.

Referenced by Domain::Domain(), IO::getIter(), IO::getTimeXML(), and Gui::readconf().

#define DOF ( cp   )     MAX(2.0*((cp)*GasConstantInv-1.0),DOFK)

Definition at line 77 of file def.h.

Referenced by Domain::boundary(), Domain::interact(), Domain::run(), and Molecule::Temperature().

#define DOFI ( dof   )     (dof-DOFK)

Definition at line 78 of file def.h.

Referenced by Domain::boundary(), Domain::interact(), Domain::run(), and Molecule::Temperature().

#define DOFK   3

Definition at line 75 of file def.h.

Referenced by Domain::boundary(), and Domain::interact().

#define ERROR ( message   )     { fprintf(stderr,"\nERROR: %s\n",message);exit(1);}

Definition at line 13 of file def.h.

Referenced by Gui::init().

#define ESC   0x1B

Definition at line 10 of file def.h.

Referenced by Gui::animate(), Gui::keyboard(), main(), and Domain::run().

#define FALSE   0

Definition at line 16 of file def.h.

#define GAUSS   Run::gauss()

Definition at line 63 of file def.h.

Referenced by Bulk::inject(), and Boundary::Inject().

#define LARGE   1e30

Definition at line 7 of file def.h.

Referenced by Domain::computeBounds(), Gui::initdisp(), Domain::load(), and Domain::run().

#define LENGTH (  )     sqrt(SCLP(A,A))

Definition at line 61 of file def.h.

Referenced by Geom::area(), and Domain::boundary().

#define LOCAL

Definition at line 37 of file def.h.

#define MAX ( a,
 )     ((a)>(b)?a:b)

Definition at line 42 of file def.h.

#define MAXLINLEN   510

#define MUL ( n,
x,
 )     for (int i=0; i<(n); i++) (x)[i] *= (y)[i]

Definition at line 50 of file def.h.

#define MULC ( n,
x,
 )     for (int i=0; i<(n); i++) (x)[i] *= (c)

Definition at line 51 of file def.h.

Referenced by Domain::boundary().

#define MULVEC ( x,
 )     for (int i=0; i<DIM; i++) (x)[i] *= (s)

Definition at line 53 of file def.h.

#define OMP

Definition at line 19 of file def.h.

#define PI   3.14159265358979323846

Definition at line 11 of file def.h.

Referenced by Gui::showParticle(), and Gui::showSphere().

#define REAL   double

#define RND   (REAL)((double)rand()/RAND_MAX)

#define SCLP ( A,
 )     (A[0]*B[0]+A[1]*B[1]+A[2]*B[2])

Definition at line 57 of file def.h.

Referenced by Domain::interact().

#define SMALL   1e-30

#define SQRTPIo8   0.62666

Definition at line 12 of file def.h.

#define SUB ( n,
x,
 )     for (int i=0; i<(n); i++) (x)[i] -= (y)[i]

Definition at line 47 of file def.h.

#define SUBC ( n,
x,
y,
 )     for (int i=0; i<(n); i++) (x)[i] -= (y)[i]*(d)

Definition at line 49 of file def.h.

#define TINY   1e-10

Definition at line 5 of file def.h.

Referenced by Domain::Domain().

#define TRUE   1

Definition at line 15 of file def.h.

#define VECP ( A,
B,
 ) 

Value:

A[0]=B[1]*C[2]-B[2]*C[1];\
                                                        A[1]=B[2]*C[0]-B[0]*C[2];\
                                                        A[2]=B[0]*C[1]-B[1]*C[0];

Definition at line 58 of file def.h.

Referenced by Geom::area().

#define VOIDSPECIE   nspecies

#define WAIT   for(int i=0;i<999999&&locked;i++)

#define WORDLENGTH   64

Definition at line 9 of file def.h.

Referenced by Domain::Domain(), Domain::load(), and main().

#define ZERO ( n,
 )     for (int i=0; i<(n); i++)x[i]=0.0

Definition at line 44 of file def.h.

#define ZEROVEC (  )     for (int i=0; i<DIM; i++) (x)[i] = 0.

Definition at line 56 of file def.h.


Variable Documentation

const REAL GasConstant = BoltzmannConstant*AvogadroNumber

Definition at line 72 of file def.h.

Referenced by Domain::Domain().

const REAL GasConstantInv = 1.0/GasConstant

Definition at line 73 of file def.h.

const int maxcounters = 4

const REAL OneOverSqrt2 = 1.0/Sqrt2

Definition at line 32 of file def.h.

const REAL OneOverSqrt3 = 1.0/Sqrt3

Definition at line 33 of file def.h.

const REAL onethird = 1.0/3.0

Definition at line 25 of file def.h.

Referenced by Domain::run().

const REAL sqrt1p25 = sqrt(1.25)

Definition at line 30 of file def.h.

const REAL sqrt1p5 = sqrt(1.5)

Definition at line 29 of file def.h.

const REAL Sqrt2 = sqrt(2.0)

Definition at line 27 of file def.h.

const REAL Sqrt2Over2 = 0.5*Sqrt2

Definition at line 28 of file def.h.

const REAL Sqrt3 = sqrt(3.0)

Definition at line 31 of file def.h.

const REAL Sqrt3Over2 = 0.5*Sqrt3

Definition at line 34 of file def.h.

const REAL twothirds = 2.0/3.0

Definition at line 26 of file def.h.

Referenced by Domain::run().


Generated on Tue May 26 16:10:35 2009 for ReMoDy by  doxygen 1.5.7.1