The FARGO_THORIN code developer's guide
|
Contains most of the functions that write the output files. More...
#include "fargo.h"
Go to the source code of this file.
Functions | |
void | EmptyPlanetSystemFile (PlanetarySystem *sys) |
void | WritePlanetFile (int TimeStep, int n) |
void | WritePlanetSystemFile (PlanetarySystem *sys, int t) |
void | WriteBigPlanetFile (int TimeStep, int n) |
void | WriteBigPlanetSystemFile (PlanetarySystem *sys, int t) |
real | GetfromPlanetFile (int TimeStep, int column, int n) |
void | RestartPlanetarySystem (int timestep, PlanetarySystem *sys) |
void | WriteDiskPolar (PolarGrid *array, int number) |
void | WriteDim () |
void | SendOutput (int index, PolarGrid *dens, PolarGrid *gasvr, PolarGrid *gasvt, PolarGrid *gasenerg, PolarGrid *label) |
void | ActualizeQbalance () |
void | DumpOmegaFrame (int TimeStep) |
Writes the angular velocity of the coordinate system. More... | |
real | GetOmegaFrame (int TimeStep) |
Finds the angular velocity of the coordinate system in 'omegaframe.dat' at a given TimeStep. More... | |
Variables | |
static real | Xplanet |
static real | Yplanet |
static real | VXplanet |
static real | VYplanet |
static real | MplanetVirtual |
real | LostMass |
real | OmegaFrame |
boolean | Write_Density |
boolean | Write_Velocity |
boolean | IsDisk |
Contains most of the functions that write the output files.
In addition to the writing of hydrodynamics files (handled by SendOutput ()), this file also contains the functions that update the planet.dat and bigplanet.dat files, and the functions that seek information about the planets at a restart.
Definition in file Output.c.
void ActualizeQbalance | ( | ) |
Definition at line 239 of file Output.c.
References polargrid::Field, polargrid::Nrad, polargrid::Nsec, Qbalance, Qminus, and Qplus.
Referenced by SendOutput().
void DumpOmegaFrame | ( | int | TimeStep | ) |
Writes the angular velocity of the coordinate system.
Definition at line 259 of file Output.c.
References CPU_Master, fopenp(), OmegaFrame, and OUTPUTDIR.
Referenced by main().
void EmptyPlanetSystemFile | ( | PlanetarySystem * | sys | ) |
Definition at line 21 of file Output.c.
References CPU_Master, fopenp(), planetary_system::nb, and OUTPUTDIR.
real GetfromPlanetFile | ( | int | TimeStep, |
int | column, | ||
int | n | ||
) |
Definition at line 101 of file Output.c.
References mastererr(), OUTPUTDIR, and prs_exit().
Referenced by RestartPlanetarySystem().
real GetOmegaFrame | ( | int | TimeStep | ) |
Finds the angular velocity of the coordinate system in 'omegaframe.dat' at a given TimeStep.
Definition at line 279 of file Output.c.
References mastererr(), OUTPUTDIR, and prs_exit().
Referenced by main().
void RestartPlanetarySystem | ( | int | timestep, |
PlanetarySystem * | sys | ||
) |
Definition at line 139 of file Output.c.
References GetfromPlanetFile(), and planetary_system::x.
void SendOutput | ( | int | index, |
PolarGrid * | dens, | ||
PolarGrid * | gasvr, | ||
PolarGrid * | gasvt, | ||
PolarGrid * | gasenerg, | ||
PolarGrid * | label | ||
) |
Definition at line 202 of file Output.c.
References ActualizeQbalance(), AdvecteLabel, CPU_Master, CPU_Number, DivergenceVelocity, IsDisk, merge(), Merge, MPI_Barrier(), MPI_COMM_WORLD, NO, Pebbles, Qbalance, Qplus, Temperature, Write_Density, Write_Divergence, Write_Energy, Write_Qbalance, Write_Qplus, Write_Temperature, Write_Velocity, WriteDiskPolar(), WritePebbles(), and YES.
Referenced by main().
void WriteBigPlanetFile | ( | int | TimeStep, |
int | n | ||
) |
Definition at line 71 of file Output.c.
References CPU_Master, fopenp(), LostMass, MplanetVirtual, OmegaFrame, OUTPUTDIR, PhysicalTime, VXplanet, VYplanet, Xplanet, and Yplanet.
Referenced by WriteBigPlanetSystemFile().
void WriteBigPlanetSystemFile | ( | PlanetarySystem * | sys, |
int | t | ||
) |
Definition at line 85 of file Output.c.
References MplanetVirtual, planetary_system::nb, VXplanet, VYplanet, WriteBigPlanetFile(), Xplanet, and Yplanet.
void WriteDim | ( | ) |
Definition at line 191 of file Output.c.
References CPU_Master, fopenp(), GLOBALNRAD, NINTERM, NSEC, NTOT, OUTPUTDIR, and RMAX.
Referenced by Initialization().
void WriteDiskPolar | ( | PolarGrid * | array, |
int | number | ||
) |
Definition at line 153 of file Output.c.
References CPU_Master, CPU_Number, CPU_Rank, CPUOVERLAP, polargrid::Field, fopenp(), masterprint(), MPI_Barrier(), MPI_COMM_WORLD, and OUTPUTDIR.
Referenced by AdvanceSystemFromDisk(), AlgoGas(), InitPebblesViaFlux(), SendOutput(), and WritePebbles().
void WritePlanetFile | ( | int | TimeStep, |
int | n | ||
) |
Definition at line 36 of file Output.c.
References CPU_Master, fopenp(), LostMass, MplanetVirtual, OmegaFrame, OUTPUTDIR, PhysicalTime, VXplanet, VYplanet, Xplanet, and Yplanet.
Referenced by WritePlanetSystemFile().
void WritePlanetSystemFile | ( | PlanetarySystem * | sys, |
int | t | ||
) |
Definition at line 54 of file Output.c.
References MplanetVirtual, planetary_system::nb, VXplanet, VYplanet, WritePlanetFile(), Xplanet, and Yplanet.
boolean IsDisk |
Definition at line 30 of file Interpret.c.
Referenced by SendOutput().
real LostMass |
Definition at line 32 of file TransportEuler.c.
Referenced by OneWindRad(), WriteBigPlanetFile(), and WritePlanetFile().
|
static |
Definition at line 17 of file Output.c.
Referenced by WriteBigPlanetFile(), WriteBigPlanetSystemFile(), WritePlanetFile(), and WritePlanetSystemFile().
real OmegaFrame |
Definition at line 20 of file global.h.
Referenced by DumpOmegaFrame(), WriteBigPlanetFile(), and WritePlanetFile().
|
static |
Definition at line 17 of file Output.c.
Referenced by AccreteOntoPlanets(), AccretePebblesOntoPlanets(), WriteBigPlanetFile(), WriteBigPlanetSystemFile(), WritePlanetFile(), and WritePlanetSystemFile().
|
static |
Definition at line 17 of file Output.c.
Referenced by AccreteOntoPlanets(), AccretePebblesOntoPlanets(), WriteBigPlanetFile(), WriteBigPlanetSystemFile(), WritePlanetFile(), and WritePlanetSystemFile().
boolean Write_Density |
Definition at line 31 of file Interpret.c.
Referenced by ReadVariables(), and SendOutput().
boolean Write_Velocity |
Definition at line 31 of file Interpret.c.
Referenced by ReadVariables(), and SendOutput().
|
static |
Definition at line 17 of file Output.c.
Referenced by AccreteOntoPlanets(), AccretePebblesOntoPlanets(), ParametricAccretion(), WriteBigPlanetFile(), WriteBigPlanetSystemFile(), WritePlanetFile(), and WritePlanetSystemFile().
|
static |
Definition at line 17 of file Output.c.
Referenced by AccreteOntoPlanets(), AccretePebblesOntoPlanets(), ParametricAccretion(), WriteBigPlanetFile(), WriteBigPlanetSystemFile(), WritePlanetFile(), and WritePlanetSystemFile().