The FARGO_THORIN code developer's guide
 All Data Structures Files Functions Variables Typedefs Macros
Functions | Variables
Output.c File Reference

Contains most of the functions that write the output files. More...

#include "fargo.h"
Include dependency graph for Output.c:

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
 

Detailed Description

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.

Author
THORIN modifications by Ondřej Chrenko chren.nosp@m.ko@s.nosp@m.irrah.nosp@m..tro.nosp@m.ja.mf.nosp@m.f.cu.nosp@m.ni.cz, Copyright (C) 2017; original code by Frédéric Masset

Definition in file Output.c.

Function Documentation

void ActualizeQbalance ( )

Definition at line 239 of file Output.c.

References polargrid::Field, polargrid::Nrad, polargrid::Nsec, Qbalance, Qminus, and Qplus.

Referenced by SendOutput().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void EmptyPlanetSystemFile ( PlanetarySystem sys)

Definition at line 21 of file Output.c.

References CPU_Master, fopenp(), planetary_system::nb, and OUTPUTDIR.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void RestartPlanetarySystem ( int  timestep,
PlanetarySystem sys 
)

Definition at line 139 of file Output.c.

References GetfromPlanetFile(), and planetary_system::x.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void WriteDim ( )

Definition at line 191 of file Output.c.

References CPU_Master, fopenp(), GLOBALNRAD, NINTERM, NSEC, NTOT, OUTPUTDIR, and RMAX.

Referenced by Initialization().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Variable Documentation

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().

real MplanetVirtual
static
real OmegaFrame

Definition at line 20 of file global.h.

Referenced by DumpOmegaFrame(), WriteBigPlanetFile(), and WritePlanetFile().

real VXplanet
static
real VYplanet
static
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().

real Xplanet
static
real Yplanet
static