The FARGO_THORIN code developer's guide
|
Contains the functions needed to initialize the hydrodynamics arrays. More...
#include "fargo.h"
Go to the source code of this file.
Functions | |
void | ReadfromFile (PolarGrid *array, char *fileprefix, int filenumber) |
void | InitLabel (PolarGrid *array) |
void | Initialization (PolarGrid *gas_density, PolarGrid *gas_v_rad, PolarGrid *gas_v_theta, PolarGrid *gas_energy, PolarGrid *gas_label) |
void | ReadfromAsciiFile (PolarGrid *array, char *path) |
Enables to read a polar grid array from an ascii file. More... | |
Variables | |
boolean | Restart |
int | NbRestart |
Contains the functions needed to initialize the hydrodynamics arrays.
These can be initialized by reading a given output (in the case of a restart) or by calling a function, InitEuler (), which contains analytic prescription for the different hydrodynamics fields. Note that this function InitEuler() is located in SourceEuler.c, which itself calls InitGas(), in the file Pframeforce.c. Also, note that the present file contains InitLabel(), which sets the initial value of a passive scalar.
Definition in file Init.c.
void Initialization | ( | PolarGrid * | gas_density, |
PolarGrid * | gas_v_rad, | ||
PolarGrid * | gas_v_theta, | ||
PolarGrid * | gas_energy, | ||
PolarGrid * | gas_label | ||
) |
Definition at line 72 of file Init.c.
References ADIABIND, CheckRebin(), ComputePressureField(), ComputeSoundSpeed(), ComputeTemperatureField(), DampInit, DENSINFILE, EnergyEq, EquilPebbleDisk(), FillVtheta(), InitEuler(), InitFromFile, InitLabel(), mastererr(), MPI_Barrier(), MPI_COMM_WORLD, NbRestart, Pebbles, ReadfromAsciiFile(), ReadfromFile(), ReadPrevDim(), RefillEnergy(), RefillSigma(), Restart, RestartPebbleDisk(), TEMPERINFILE, VRADINFILE, VTHETAINFILE, and WriteDim().
Referenced by main().
void InitLabel | ( | PolarGrid * | array | ) |
Definition at line 56 of file Init.c.
References polargrid::Field, RMAX, Rmed, and RMIN.
Referenced by Initialization().
void ReadfromAsciiFile | ( | PolarGrid * | array, |
char * | path | ||
) |
Enables to read a polar grid array from an ascii file.
Definition at line 148 of file Init.c.
References CPU_Number, CPU_Rank, fargostat, IMIN, MPI_Barrier(), MPI_COMM_WORLD, MPI_INT, MPI_Recv(), and MPI_Send().
Referenced by Initialization().
void ReadfromFile | ( | PolarGrid * | array, |
char * | fileprefix, | ||
int | filenumber | ||
) |
Definition at line 23 of file Init.c.
References CPU_Number, CPU_Rank, fargostat, IMIN, MPI_Barrier(), MPI_COMM_WORLD, MPI_INT, MPI_Recv(), MPI_Send(), and OUTPUTDIR.
Referenced by Initialization(), and RestartPebbleDisk().
int NbRestart |
Definition at line 15 of file main.c.
Referenced by Initialization(), and main().
boolean Restart |
Definition at line 14 of file main.c.
Referenced by Initialization().