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

global.c File Reference

Computes global physical properties of the system. More...

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

Go to the source code of this file.

Functions

void compute_global_quantities_of_system (void)


Detailed Description

Computes global physical properties of the system.

Definition in file global.c.


Function Documentation

void compute_global_quantities_of_system void   ) 
 

This routine computes various global properties of the particle distribution and stores the result in the struct `SysState'. Currently, not all the information that's computed here is actually used (e.g. momentum is not really used anywhere), just the energies are written to a log-file every once in a while.

< adiabatic index of simulated gas

< adiabatic index of simulated gas

Definition at line 22 of file global.c.

References All, state_of_system::AngMomentum, state_of_system::AngMomentumComp, state_of_system::CenterOfMass, state_of_system::CenterOfMassComp, global_data_all_processes::ComovingIntegrationOn, sph_particle_data::DtEntropy, state_of_system::EnergyInt, state_of_system::EnergyIntComp, state_of_system::EnergyKin, state_of_system::EnergyKinComp, state_of_system::EnergyPot, state_of_system::EnergyPotComp, state_of_system::EnergyTot, state_of_system::EnergyTotComp, sph_particle_data::Entropy, GAMMA_MINUS1, get_gravkick_factor(), get_hydrokick_factor(), particle_data::GravAccel, particle_data::GravPM, sph_particle_data::HydroAccel, particle_data::Mass, state_of_system::Mass, state_of_system::MassComp, state_of_system::Momentum, state_of_system::MomentumComp, P, global_data_all_processes::PM_Ti_begstep, global_data_all_processes::PM_Ti_endstep, particle_data::Pos, particle_data::Potential, pow(), SphP, SysState, ThisTask, particle_data::Ti_begstep, global_data_all_processes::Ti_Current, particle_data::Ti_endstep, global_data_all_processes::Time, global_data_all_processes::Timebase_interval, particle_data::Type, and particle_data::Vel.


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