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

Calculation of the viscous force. More...

#include "fargo.h"
Include dependency graph for Viscosity.c:

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 PolarGridDRR
 
static PolarGridDRP
 
static PolarGridDPP
 

Detailed Description

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.

Author
THORIN modifications by 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, Copyright (C) 2017; original code by Frédéric Masset

Definition in file Viscosity.c.

Function Documentation

real AspectRatio ( real  rad)

Definition at line 50 of file Viscosity.c.

References ASPECTRATIO, LAMBDADOUBLING, PhysicalTime, PhysicalTimeInitial, TRANSITIONRADIUS, TRANSITIONRATIO, and TRANSITIONWIDTH.

Referenced by ImposeKeplerianEdges().

Here is the caller graph for this function:

real FViscosity ( real  rad)

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

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void InitViscosity ( )

Definition at line 67 of file Viscosity.c.

References CreatePolarGrid(), DivergenceVelocity, NRAD, NSEC, TAUPP, TAURP, and TAURR.

Referenced by InitEuler().

Here is the call graph for this function:

Here is the caller graph for this function:

void UpdateDivVelocAndStressTensor ( PolarGrid Vrad,
PolarGrid Vtheta,
PolarGrid Rho 
)

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.

Here is the call graph for this function:

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.

Variable Documentation

PolarGrid * DPP
static

Definition at line 23 of file Viscosity.c.

PolarGrid * DRP
static

Definition at line 23 of file Viscosity.c.

PolarGrid* DRR
static

Definition at line 23 of file Viscosity.c.