#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include "global.h"
#include "ComputeBondForce.h"
#include "ComputePairForce.h"
Go to the source code of this file.
Macros | |
#define | DEFINE_GLOBALS |
Functions | |
void | Init () |
void | SetupJob () |
void | EvalSpacetimeCorr () |
void | Trajectory () |
void | DumpState () |
void | ComputeForcesCells () |
void | ApplyBoundaryCond () |
void | EvalProps () |
void | AccumProps (int icode) |
void | PrintSummary () |
void | PrintVrms () |
void | VelocityVerletStep (int icode) |
void | ApplyForce () |
void | ApplyLeesEdwardsBoundaryCond () |
void | PrintStress () |
void | Close () |
void | PrintMomentum () |
void | DisplaceAtoms () |
void | DumpRestart () |
bool | HaltConditionCheck (double value) |
void | EvalCom () |
void | PrintCom () |
void | EvalVrms () |
void | EvalUnwrap () |
void | DumpBonds () |
void | DumpPairs () |
void | WriteBinaryRestart () |
void | PrintForceSum () |
int | main (int argc, char **argv) |
Variables | |
char * | prefix = NULL |
void AccumProps | ( | int | icode | ) |
Definition at line 25 of file AccumProps.c.
void ApplyBoundaryCond | ( | ) |
Definition at line 27 of file ApplyBoundaryCond.c.
References atomRadius, fpresult, nAtom, region, regionH, rx, ry, vx, vy, xBoundary, and yBoundary.
Referenced by main().
void ApplyForce | ( | ) |
Definition at line 25 of file ApplyForce.c.
References forceSumxExtern, forceSumyExtern, fx, fxByfy, fxExtern, fy, FyBylx, fyExtern, molID, nAtom, nAtomBlock, and regionH.
Referenced by main().
void ApplyLeesEdwardsBoundaryCond | ( | ) |
Definition at line 25 of file ApplyLeesEdwardsBoundaryCond.c.
References nAtom, region, regionH, rx, ry, and shearDisplacement.
void Close | ( | ) |
Definition at line 25 of file Close.c.
References atom1, atom2, atomID, atomIDInterface, atomMass, atomRadius, atomType, ax, ay, BondID, BondType, cellList, cfOrg, cfVal, fax, fay, fx, fy, ImageX, ImageY, indexAcf, indexCorr, isBonded, kb, molID, nAtom, nBuffAcf, nBuffCorr, Pairatom1, Pairatom2, PairID, PairXij, PairYij, ro, rx, rxUnwrap, ry, ryUnwrap, spacetimeCorr, spacetimeCorrAv, speed, viscAcf, viscAcfAv, viscAcfOrg, vx, and vy.
Referenced by main().
void ComputeForcesCells | ( | ) |
Definition at line 25 of file ComputeForcesCells.c.
References atomRadius, ax, ay, cellList, cells, discDragx, discDragy, gamman, nAtom, NDIM, RadiusIJ, RadiusIJInv, rank, region, regionH, rfAtom, rx, ry, size, Sqr, SqrRadiusIJ, uSum, virSum, vx, and vy.
void DisplaceAtoms | ( | ) |
void DumpBonds | ( | ) |
Definition at line 24 of file DumpBonds.c.
References atom1, atom2, BondID, BondLength, BondType, fpbond, nBond, nodeDragx, nodeDragy, regionH, ro, and timeNow.
Referenced by main().
void DumpPairs | ( | ) |
Definition at line 25 of file DumpPairs.c.
References discDragx, discDragy, fppair, nPairActive, Pairatom1, Pairatom2, PairID, PairXij, PairYij, regionH, and timeNow.
Referenced by main().
void DumpRestart | ( | ) |
Definition at line 25 of file DumpRestart.c.
References atom1, atom2, atomID, atomRadius, atomType, BondID, BondType, kb, molID, nAtom, nAtomType, nBond, nBondType, prefix, region, ro, rx, ry, timeNow, vx, and vy.
Referenced by main().
void DumpState | ( | ) |
Definition at line 25 of file DumpState.c.
References atomID, atomRadius, atomType, ax, ay, molID, nAtom, prefix, regionH, rx, ry, timeNow, vx, and vy.
Referenced by main().
void EvalCom | ( | ) |
Definition at line 27 of file EvalCom.c.
References atomMass, ComX, ComX0, ComXRatio, ComY, ComY0, ComYRatio, molID, nAtom, rxUnwrap, ryUnwrap, timeNow, and TotalMass.
Referenced by main().
void EvalProps | ( | ) |
Definition at line 26 of file EvalProps.c.
References atomMass, ax, ay, BondEnergyPerAtom, deltaT, density, kinEnergy, nAtom, NDIM, potEnergy, pressure, solver, Sqr, TotalBondEnergy, totEnergy, uSumPair, uSumPairPerAtom, virSum, virSumBond, virSumBondxx, virSumBondxy, virSumBondyy, virSumPair, virSumPairxx, virSumPairxy, virSumPairyy, virSumxx, virSumxy, virSumyy, vSum, vSumX, vSumY, vvSum, vx, and vy.
Referenced by main().
void EvalSpacetimeCorr | ( | ) |
Definition at line 26 of file EvalSpacetimeCorr.c.
References cfOrg, cfVal, countCorrAv, deltaT, fpdnsty, indexCorr, limitCorrAv, nAtom, nBuffCorr, NDIM, nFunCorr, nValCorr, region, rx, spacetimeCorr, spacetimeCorrAv, and stepCorr.
void EvalUnwrap | ( | ) |
void EvalVrms | ( | ) |
Definition at line 27 of file EvalVrms.c.
References nAtom, Sqr, VMeanSqr, VRootMeanSqr, VSqr, vx, and vy.
Referenced by main().
bool HaltConditionCheck | ( | double | value | ) |
Definition at line 27 of file Halt.c.
References BondEnergyPerAtom, fpresult, HaltCondition, kinEnergy, potEnergy, pressure, stepCount, timeNow, totEnergy, uSumPairPerAtom, virSum, and vSum.
Referenced by main().
void Init | ( | ) |
Definition at line 31 of file Init.c.
References atom1, atom2, atomID, atomIDInterface, atomMass, atomRadius, atomType, ax, ay, bigDiameter, BondEnergy, BondID, BondLength, BondType, cellList, cells, DampFlag, deltaT, DeltaX, DeltaY, density, discDragx, discDragy, fax, fay, fpcom, fpforce, fpresult, fpvrms, freezeAtomType, fx, fxByfy, fy, FyBylx, gamman, HaltCondition, ImageX, ImageY, inputConfig, InterfaceWidth, isBonded, kappa, kb, Kn, limitAcfAv, limitCorrAv, limitRdf, mass, mode, molID, nAtom, nAtomBlock, nAtomInterface, nAtomType, nBond, nBondType, nBuffAcf, nBuffCorr, nDiscInterface, nFunCorr, nodeDragx, nodeDragy, nPairTotal, nValAcf, nValCorr, Pairatom1, Pairatom2, PairID, PairXij, PairYij, rangeRdf, rCut, ReadBinaryRestart(), region, regionH, ro, rx, rxUnwrap, ry, ryUnwrap, shearDisplacement, shearVelocity, sizeHistRdf, solver, speed, stepAcf, stepAvg, stepCorr, stepCount, stepDump, stepEquil, stepLimit, stepRdf, stepTraj, strain, strainRate, timeNow, vx, vy, xBoundary, and yBoundary.
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 43 of file main.c.
References ApplyBoundaryCond(), ApplyForce(), bond, Close(), com, ComputeBondForce(), ComputePairForce(), deltaT, DisplaceAtoms(), DumpBonds(), DumpPairs(), DumpRestart(), DumpState(), EvalCom(), EvalProps(), EvalUnwrap(), EvalVrms(), force, fpbond, fpcom, fpforce, fppair, fpresult, fpvrms, fpxyz, HaltConditionCheck(), Init(), moreCycles, pair, prefix, PrintCom(), PrintForceSum(), PrintSummary(), PrintVrms(), result, SetupJob(), stepAvg, stepCount, stepDump, stepLimit, stepTraj, timeNow, Trajectory(), VelocityVerletStep(), vrms, VRootMeanSqr, WriteBinaryRestart(), and xyz.
void PrintCom | ( | ) |
void PrintForceSum | ( | ) |
Definition at line 28 of file PrintForceSum.c.
References atomType, forceSumxExtern, forceSumyExtern, fpforce, fx, fy, nAtom, and timeNow.
Referenced by main().
void PrintMomentum | ( | ) |
Definition at line 25 of file PrintMomentum.c.
References fpmomentum, timeNow, vSumX, and vSumY.
void PrintStress | ( | ) |
void PrintSummary | ( | ) |
Definition at line 25 of file PrintSummary.c.
References BondEnergyPerAtom, fpresult, kinEnergy, potEnergy, pressure, timeNow, totEnergy, uSumPairPerAtom, virSum, and vSum.
Referenced by main().
void PrintVrms | ( | ) |
Definition at line 27 of file PrintVrms.c.
References fpvrms, timeNow, and VRootMeanSqr.
Referenced by main().
void SetupJob | ( | ) |
Definition at line 27 of file SetupJob.c.
References AccumProps(), AllocArrays(), countCorrAv, countRdf, indexCorr, InitVacf(), nBuffCorr, nFunCorr, nValCorr, and spacetimeCorrAv.
Referenced by main().
void Trajectory | ( | ) |
Definition at line 25 of file Trajectory.c.
References atomID, atomRadius, atomType, fpxyz, fx, fy, molID, nAtom, regionH, rx, ry, timeNow, vx, and vy.
Referenced by main().
void VelocityVerletStep | ( | int | icode | ) |
Definition at line 26 of file VelocityVerletStep.c.
References atomMass, atomType, ax, ay, deltaT, freezeAtomType, fx, fy, ImageX, ImageY, nAtom, region, regionH, rx, ry, vx, and vy.
Referenced by main().
void WriteBinaryRestart | ( | ) |
Definition at line 60 of file WriteRestartBinary.c.
References atom1, atom2, atomID, atomIDInterface, atomMass, atomRadius, atomType, ax, ay, bigDiameter, BondEnergy, BondID, BondLength, BondType, discDragx, discDragy, forceSumxExtern, forceSumyExtern, fx, fy, ImageX, ImageY, InterfaceWidth, kb, molID, nAtom, nAtomBlock, nAtomInterface, nAtomType, nBond, nBondType, nDiscInterface, nodeDragx, nodeDragy, nPairActive, nPairTotal, Pairatom1, Pairatom2, PairID, PairXij, PairYij, prefix, region, ro, rx, rxUnwrap, ry, ryUnwrap, stepCount, timeNow, TotalBondEnergy, uSumPair, virSumBond, virSumBondxx, virSumBondxy, virSumBondyy, virSumPair, virSumPairxx, virSumPairxy, virSumPairyy, vx, and vy.
Referenced by main().
char* prefix = NULL |
Definition at line 13 of file main.c.
Referenced by DumpRestart(), DumpState(), main(), and WriteBinaryRestart().