The FARGO_THORIN code developer's guide
|
Calculation of the viscous force. More...
#include "fargo.h"
Go to the source code of this file.
Functions | |
real | FViscosity (real rad) |
real | AspectRatio (real rad) |
void | InitViscosity () |
void | UpdateDivVelocAndStressTensor (PolarGrid *Vrad, PolarGrid *Vtheta, PolarGrid *Rho) |
A function derived from the original ViscousTerms(). More... | |
void | UpdateVelocityWithViscousTerms (PolarGrid *Vrad, PolarGrid *Vtheta, PolarGrid *Rho, real DeltaT) |
A function derived from the original ViscousTerms(). More... | |
void | ImposeKeplerianEdges (PolarGrid *Vtheta) |
A function derived from the original ViscousTerms(). More... | |
Variables | |
static PolarGrid * | DRR |
static PolarGrid * | DRP |
static PolarGrid * | DPP |
Calculation of the viscous force.
The function FViscosity() returns the (kinematic) viscosity as a function of the radius (it handles all case: alpha or uniform viscosity, and inner cavity with a different viscosity). The update of the velocity is done in ViscousTerm(), which properly evaluate the stress tensor in 2D cylindrical coordinates. This file also contains the function AspectRatio(), which gives the aspect ratio as a function of the radius, in the case of a temperature jump in the disk (much in the manner as cavities arising from a viscosity jump are handled, hence the location of this function). Note that AspectRatio() does not feature the FLARINGINDEX, which is taken into account by the calling function.
Definition in file Viscosity.c.
Definition at line 50 of file Viscosity.c.
References ASPECTRATIO, LAMBDADOUBLING, PhysicalTime, PhysicalTimeInitial, TRANSITIONRADIUS, TRANSITIONRATIO, and TRANSITIONWIDTH.
Referenced by ImposeKeplerianEdges().
Definition at line 26 of file Viscosity.c.
References ALPHAVISCOSITY, ASPECTRATIO, CAVITYRADIUS, CAVITYRATIO, CAVITYWIDTH, GlobalRmed, globcsvec, LAMBDADOUBLING, PhysicalTime, PhysicalTimeInitial, VISCOSITY, and ViscosityAlpha.
Referenced by UpdateDivVelocAndStressTensor().
void ImposeKeplerianEdges | ( | PolarGrid * | Vtheta | ) |
A function derived from the original ViscousTerms().
Definition at line 215 of file Viscosity.c.
References AspectRatio(), CPU_Number, CPU_Rank, FLARINGINDEX, G, polargrid::Nrad, OmegaFrame, Rmed, and SIGMASLOPE.
void InitViscosity | ( | ) |
Definition at line 67 of file Viscosity.c.
References CreatePolarGrid(), DivergenceVelocity, NRAD, NSEC, TAUPP, TAURP, and TAURR.
Referenced by InitEuler().
A function derived from the original ViscousTerms().
Definition at line 79 of file Viscosity.c.
References DivergenceVelocity, polargrid::Field, FViscosity(), InvDiffRmed, InvDiffRsup, InvRinf, InvRmed, polargrid::Nrad, Rinf, Rmed, Rsup, TAUPP, TAURP, and TAURR.
void UpdateVelocityWithViscousTerms | ( | PolarGrid * | Vrad, |
PolarGrid * | Vtheta, | ||
PolarGrid * | Rho, | ||
real | DeltaT | ||
) |
A function derived from the original ViscousTerms().
Definition at line 159 of file Viscosity.c.
References polargrid::Field, InvDiffRmed, InvDiffRsup, InvRinf, InvRmed, polargrid::Nrad, Rinf, Rmed, Rsup, TAUPP, TAURP, and TAURR.
|
static |
Definition at line 23 of file Viscosity.c.
|
static |
Definition at line 23 of file Viscosity.c.
|
static |
Definition at line 23 of file Viscosity.c.