32 real x, y, r, m, ax, ay;
34 real r2, ifrac, frac, rhopl, cspl, omega, h, norm;
43 for (i = 0; i < nb; i++) {
53 frac = ifrac-floor(ifrac);
55 rhopl = rho1D[ii]*(1.0-frac) + rho1D[ii+1]*frac;
56 cspl = cs1D[ii]*(1.0-frac) + cs1D[ii+1]*frac;
64 sprintf (filename,
"%stqwk%d.dat",
OUTPUTDIR, i);
65 out =
fopenp (filename,
"a");
66 fprintf (out,
"%#.18g\t%#.18g\t%#.18g\t%#.18g\t%#.18g\t%#.18g\t%#.18g\n",
PhysicalTime,tq,tq_norm,x,y,ax,ay);
78 real smlength=0.0, globsmlength, r, ang, H, csavrg;
88 if (ang < 0.0) ang += 2.0*
PI;
90 while (
Rsup[i] < r) i++;
92 for (j=0; j<ns; j++) {
double real
Definition of the type 'real' used throughout the code.
real * x
x-coordinate of the planets
real ThicknessSmoothing(real x, real y)
Computes the local thickness from the sound speed and applies the thickness smoothing parameter...
real * y
y-coordinate of the planets
A structure used to store any scalar fied on the computational domain.
FILE * fopenp(char *string, char *mode)
real * mass
Masses of the planets.
Contains all the information about a planetary system at a given instant in time. ...
void MPI_Allreduce(void *ptr, void *ptr2, int count, int type, int foo3, int foo4)
real * ay
ay-coordinate of the planets' acceleration from the disk
Contains all the include directives requested by the code.
int Nsec
Azimuthal size of the grid, in number of zones.
real * ax
ax-coordinate of the planets' acceleration from the disk
real GetGlobalIFrac(real r)
void UpdateLog(PolarGrid *Rho, PlanetarySystem *psys)
Calculates and writes the disk torques (both specific and normalized) acting on the planets...
void mpi_make1Dprofile(real *gridfield, real *axifield)