Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

predict.c File Reference

drift particles by a small time interval More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include <gsl/gsl_math.h>
#include "allvars.h"
#include "proto.h"

Go to the source code of this file.


void move_particles (int time0, int time1)
void do_box_wrapping (void)

Detailed Description

drift particles by a small time interval

This function contains code to implement a drift operation on all the particles, which represents one part of the leapfrog integration scheme.

Definition in file predict.c.

Function Documentation

void do_box_wrapping void   ) 

This function makes sure that all particle coordinates (Pos) are periodically mapped onto the interval [0, BoxSize]. After this function has been called, a new domain decomposition should be done, which will also force a new tree construction.

Definition at line 103 of file predict.c.

References All, global_data_all_processes::BoxSize, P, and particle_data::Pos.

Referenced by domain_Decomposition().

void move_particles int  time0,
int  time1

This function drifts all particles from the current time to the future: time0 - > time1

If there is no explicit tree construction in the following timestep, the tree nodes are also drifted and updated accordingly. Note: For periodic boundary conditions, the mapping of coordinates onto the interval [0,All.BoxSize] is only done before the domain decomposition, or for outputs to snapshot files. This simplifies dynamic tree updates, and allows the domain decomposition to be carried out only every once in a while.

< adiabatic index of simulated gas

Definition at line 31 of file predict.c.

References All, global_data_all_processes::ComovingIntegrationOn, global_data_all_processes::CPU_Predict, NODE::d, sph_particle_data::Density, sph_particle_data::DtEntropy, sph_particle_data::Entropy, Extnodes, force_update_len(), force_update_pseudoparticles(), GAMMA, get_drift_factor(), get_gravkick_factor(), get_hydrokick_factor(), particle_data::GravAccel, particle_data::GravPM, sph_particle_data::Hsml, sph_particle_data::HydroAccel, global_data_all_processes::MaxPart, global_data_all_processes::MinGasHsml, Nodes, global_data_all_processes::NumForcesSinceLastDomainDecomp, P, particle_data::Pos, pow(), sph_particle_data::Pressure, NODE::s, second(), SphP, particle_data::Ti_begstep, global_data_all_processes::Ti_Current, particle_data::Ti_endstep, global_data_all_processes::Timebase_interval, timediff(), global_data_all_processes::TotNumPart, global_data_all_processes::TreeDomainUpdateFrequency, particle_data::Type, NODE::u, particle_data::Vel, sph_particle_data::VelPred, and extNODE::vs.

Generated on Sun May 22 17:33:30 2005 for GADGET-2 by  doxygen