The FARGO_THORIN code developer's guide
|
Contains the function to evaluate and write the disk torques acting on planets and also the function to get the thickness smoothing parameter. More...
#include "fargo.h"
Go to the source code of this file.
Functions | |
void | UpdateLog (PolarGrid *Rho, PlanetarySystem *psys) |
Calculates and writes the disk torques (both specific and normalized) acting on the planets. More... | |
real | ThicknessSmoothing (real x, real y) |
Computes the local thickness from the sound speed and applies the thickness smoothing parameter. More... | |
Variables | |
boolean | OpenInner |
boolean | NonReflecting |
Contains the function to evaluate and write the disk torques acting on planets and also the function to get the thickness smoothing parameter.
The original ComputeForce() function was discarded, the torque computation follows from the formalism of the vertical averaging which directly provides the planet accelerations. The normalised torque is now part of the output. UpdateLog() is called from AdvanceSystemFromDisk() when needed.
Copyright (c) 2017 Ondřej Chrenko. See the LICENSE file of the distribution.
Definition in file Force.c.
Computes the local thickness from the sound speed and applies the thickness smoothing parameter.
Definition at line 75 of file Force.c.
References polargrid::Field, Max_or_active, MPI_Allreduce(), MPI_COMM_WORLD, MPI_DOUBLE, MPI_MAX, polargrid::Nsec, OmegaInv, PI, Rinf, Rsup, SoundSpeed, SQRT_ADIABIND_INV, THICKNESSSMOOTHING, and Zero_or_active.
Referenced by FillForcesArrays().
void UpdateLog | ( | PolarGrid * | Rho, |
PlanetarySystem * | psys | ||
) |
Calculates and writes the disk torques (both specific and normalized) acting on the planets.
Uses the accelerations provided by the vertical averaging approach.
Definition at line 27 of file Force.c.
References ADIABIND, planetary_system::ax, planetary_system::ay, CPU_Number, CPU_Rank, polargrid::Field, fopenp(), GetGlobalIFrac(), planetary_system::mass, MAX1D, mpi_make1Dprofile(), planetary_system::nb, OUTPUTDIR, PhysicalTime, SoundSpeed, SQRT_ADIABIND_INV, planetary_system::x, and planetary_system::y.
Referenced by AdvanceSystemFromDisk().
boolean NonReflecting |
Definition at line 30 of file Interpret.c.