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

Contains the functions needed to initialize the hydrodynamics arrays. More...

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

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
 

Detailed Description

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.

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 Init.c.

Function Documentation

void Initialization ( PolarGrid gas_density,
PolarGrid gas_v_rad,
PolarGrid gas_v_theta,
PolarGrid gas_energy,
PolarGrid gas_label 
)
void InitLabel ( PolarGrid array)

Definition at line 56 of file Init.c.

References polargrid::Field, RMAX, Rmed, and RMIN.

Referenced by Initialization().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

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