The FARGO_THORIN code developer's guide
|
Total mass and angular momentum monitoring, and boundary conditions. More...
#include "fargo.h"
Go to the source code of this file.
Variables | |
boolean | OpenInner |
boolean | NonReflecting |
boolean | OuterSourceMass |
Total mass and angular momentum monitoring, and boundary conditions.
In addition, this file contains a few low-level functions that manipulate PolarGrid 's or initialize the forces evaluation.
Definition in file SideEuler.c.
void ApplyBoundaryCondition | ( | PolarGrid * | Vrad, |
PolarGrid * | Vtheta, | ||
PolarGrid * | Rho, | ||
PolarGrid * | Energy, | ||
real | dt | ||
) |
Definition at line 384 of file SideEuler.c.
References ApplyOuterSourceMass(), ComputeSoundSpeed(), Damping, DampingBoundary(), EnergyEq, NonReflecting, NonReflectingBoundary(), OpenBoundary(), OpenInner, OuterSourceMass, and YES.
Definition at line 354 of file SideEuler.c.
References CPU_Number, CPU_Rank, IMPOSEDDISKDRIFT, polargrid::Nrad, Rinf, SigmaMed, and SIGMASLOPE.
Referenced by ApplyBoundaryCondition().
Definition at line 398 of file SideEuler.c.
References Rmed.
void DampingBoundary | ( | PolarGrid * | Vrad, |
PolarGrid * | Vtheta, | ||
PolarGrid * | Rho, | ||
PolarGrid * | Energy, | ||
real | step | ||
) |
Imposes the wave-killing boundary condition.
Currently, the condition is set to always damp the radial velocity to zero. Additionaly, the density, azimuthal velocity and energy can be damped to their initial values.
Definition at line 270 of file SideEuler.c.
References DAMPINGRMAXFRAC, DAMPINGRMINFRAC, DampInit, EnergyMed, Max_or_active, OmegaFrame, RMAX, Rmed, RMIN, SigmaMed, VthetaMed, WaveKiller, and Zero_or_active.
Referenced by ApplyBoundaryCondition().
void DampPebbles | ( | PolarGrid * | PebbleDens, |
PolarGrid * | PebbleVrad, | ||
PolarGrid * | PebbleVtheta, | ||
real | dt | ||
) |
Damps the pebble disk inside the wave-killing zones towards its equilibrium state.
Definition at line 317 of file SideEuler.c.
References DAMPINGRMAXFRAC, DAMPINGRMINFRAC, Max_or_active, polargrid::Nsec, OmegaFrame, PebDensInit, PebVradInit, PebVthetaInit, RMAX, Rmed, RMIN, WaveKiller, and Zero_or_active.
Definition at line 74 of file SideEuler.c.
References polargrid::Field.
Definition at line 45 of file SideEuler.c.
References CPU_Number, CPU_Rank, FakeSequential, fargostat, Max_or_active, MPI_Allreduce(), MPI_Bcast(), MPI_COMM_WORLD, MPI_DOUBLE, MPI_Recv(), MPI_Send(), MPI_SUM, polargrid::Nsec, OmegaFrame, Rmed, Surf, and Zero_or_active.
Definition at line 416 of file SideEuler.c.
References CPU_Number, CPU_Rank, FakeSequential, fargostat, Max_or_active, MPI_Allreduce(), MPI_Bcast(), MPI_COMM_WORLD, MPI_DOUBLE, MPI_Recv(), MPI_Send(), MPI_SUM, OmegaFrame, Rinf, Rmed, Rsup, Surf, vt_cent, and Zero_or_active.
Definition at line 18 of file SideEuler.c.
References CPU_Number, CPU_Rank, FakeSequential, fargostat, Max_or_active, MPI_Allreduce(), MPI_Bcast(), MPI_COMM_WORLD, MPI_DOUBLE, MPI_Recv(), MPI_Send(), MPI_SUM, polargrid::Nsec, Surf, and Zero_or_active.
void InitComputeAccel | ( | ) |
Definition at line 93 of file SideEuler.c.
References CellAbscissa, CellOrdinate, CreatePolarGrid(), polargrid::Field, NRAD, polargrid::Nrad, NSEC, polargrid::Nsec, PI, and Rmed.
Referenced by main().
Definition at line 135 of file SideEuler.c.
References CPU_Number, CPU_Rank, EnergyMed, polargrid::Field, NSEC, PI, Rinf, Rmed, SigmaMed, and SoundSpeed.
Referenced by ApplyBoundaryCondition().
Definition at line 112 of file SideEuler.c.
References CPU_Rank, and SigmaMed.
Referenced by ApplyBoundaryCondition().
void SetWaveKillingZones | ( | ) |
Sets the wave-killing factors within the damping zones; inspired by de Val-Borro et al.
(2006).
Definition at line 242 of file SideEuler.c.
References DAMPINGPERIODFRAC, DAMPINGRMAXFRAC, DAMPINGRMINFRAC, Max_or_active, PI, RMAX, Rmed, RMIN, WaveKiller, and Zero_or_active.
Referenced by InitEuler().
boolean NonReflecting |
Definition at line 30 of file Interpret.c.
Referenced by ApplyBoundaryCondition(), and ReadVariables().
boolean OpenInner |
Definition at line 14 of file main.c.
Referenced by ApplyBoundaryCondition().
boolean OuterSourceMass |
Definition at line 30 of file Interpret.c.
Referenced by ApplyBoundaryCondition(), and ReadVariables().