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

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"
Include dependency graph for Force.c:

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
 

Detailed Description

Contains the function to evaluate and write the disk torques acting on planets and also the function to get the thickness smoothing parameter.

Author
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

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.

LICENSE

Copyright (c) 2017 Ondřej Chrenko. See the LICENSE file of the distribution.

Definition in file Force.c.

Function Documentation

real ThicknessSmoothing ( real  x,
real  y 
)

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

boolean NonReflecting

Definition at line 30 of file Interpret.c.

boolean OpenInner

Definition at line 14 of file main.c.