Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
viscosity-embed.h File Reference
#include "poisson.h"
Include dependency graph for viscosity-embed.h:

Go to the source code of this file.

Data Structures

struct  Viscosity
 

Macros

#define lambda   ((coord){0.,0.,0.})
 

Functions

static void relax_diffusion (scalar *a, scalar *b, int l, void *data)
 
static double residual_diffusion (scalar *a, scalar *b, scalar *resl, void *data)
 
trace mgstats viscosity (vector u, vector mu, scalar rho, double dt, int nrelax=4, scalar *res=NULL)
 

Variables

double TOLERANCE_MU = 0.
 

Macro Definition Documentation

◆ lambda

#define lambda   ((coord){0.,0.,0.})

Definition at line 48 of file viscosity-embed.h.

Function Documentation

◆ relax_diffusion()

static void relax_diffusion ( scalar a,
scalar b,
int  l,
void data 
)
static

Definition at line 54 of file viscosity-embed.h.

References _i, a, b, c, d, data, dimension, dt, embed_flux(), l, lambda, mu, p, point, rho, s, SEPS, sq(), u, vector, vector::x, and x.

Referenced by viscosity().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ residual_diffusion()

static double residual_diffusion ( scalar a,
scalar b,
scalar resl,
void data 
)
static

Definition at line 92 of file viscosity-embed.h.

References _i, a, b, c, d, data, dimension, dt, embed_flux(), face_gradient_x, g, lambda, max, mu, p, point, rho, s, u, vector, vector::x, and x.

Referenced by viscosity().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ viscosity()

trace mgstats viscosity ( vector  u,
vector  mu,
scalar  rho,
double  dt,
int  nrelax = 4,
scalar res = NULL 
)

Definition at line 147 of file viscosity-embed.h.

References _i, antisymmetry(), dimension, dt, embed, embed_flux(), Viscosity::embed_flux, mg_solve(), mu, p, relax_diffusion(), residual_diffusion(), restriction, rho, TOLERANCE, TOLERANCE_MU, u, vector::x, and x.

Referenced by event_pressure(), and event_viscous_term().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ TOLERANCE_MU

double TOLERANCE_MU = 0.

Definition at line 144 of file viscosity-embed.h.

Referenced by viscosity().