Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
rpe.h File Reference
#include "utils.h"
#include "fractions.h"
Include dependency graph for rpe.h:

Go to the source code of this file.

Data Structures

struct  _Zarea
 
struct  Parcel
 

Macros

#define A(i)   (a->A[i])
 

Typedefs

typedef struct _Zarea Zarea
 

Functions

double area_integral (Zarea *a, double z1, double z2, double *Az)
 
double area_z2 (Zarea *a, double z1, double dv, double *Az)
 
Zarea zarea (scalar zb, double *A, double *V, int n, double max=0., double min=0.)
 
Zarea zvolume (scalar zb, double *A, double *V, int n, double max=0., double min=0.)
 
double volumez (Zarea s, double volume)
 
double zareaval (Zarea s, double z)
 
double barycenter (Zarea s, double z1, double z2)
 
int heavier_than (const void *a, const void *b)
 
double energy (double *PE=NULL, double *KE=NULL)
 
size_t psort (void **base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
 
trace double RPE (int n=100)
 

Macro Definition Documentation

◆ A

#define A (   i)    (a->A[i])

Definition at line 57 of file rpe.h.

Typedef Documentation

◆ Zarea

Definition at line 55 of file rpe.h.

Function Documentation

◆ area_integral()

double area_integral ( Zarea a,
double  z1,
double  z2,
double Az 
)

Definition at line 59 of file rpe.h.

References a, A, assert, cube(), i, min, n, sq(), _Zarea::V, x, and z.

Referenced by area_z2().

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

◆ area_z2()

double area_z2 ( Zarea a,
double  z1,
double  dv,
double Az 
)

Definition at line 124 of file rpe.h.

References a, area_integral(), assert, dry, dv, x, and z.

Referenced by RPE().

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

◆ barycenter()

double barycenter ( Zarea  s,
double  z1,
double  z2 
)

Definition at line 209 of file rpe.h.

References a, assert, i, n, s, x, z, and zareaval().

Referenced by RPE().

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

◆ energy()

double energy ( double PE = NULL,
double KE = NULL 
)

Definition at line 234 of file rpe.h.

References dimension, drho, dv, foreach_layer, G, h, sq(), T, u, w, x, z, and zb.

Referenced by event_end_timestep().

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

◆ heavier_than()

int heavier_than ( const void a,
const void b 
)

Definition at line 228 of file rpe.h.

References a, b, and x.

Referenced by RPE().

Here is the caller graph for this function:

◆ psort()

size_t psort ( void **  base,
size_t  nmemb,
size_t  size,
int(*)(const void *, const void *)  compar 
)

Definition at line 259 of file rpe.h.

References free(), i, size, and x.

Referenced by RPE().

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

◆ RPE()

trace double RPE ( int  n = 100)

Definition at line 301 of file rpe.h.

References _i, A, area_z2(), assert, barycenter(), drho, dv, foreach_layer, free(), G, h, heavier_than(), HUGE, i, n, nl, p, psort(), RPE(), statsf(), sum, T, volumez(), x, z, zarea(), and zb.

Referenced by RPE().

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

◆ volumez()

double volumez ( Zarea  s,
double  volume 
)

Definition at line 182 of file rpe.h.

References a, b, c, i, s, and x.

Referenced by RPE().

Here is the caller graph for this function:

◆ zarea()

Zarea zarea ( scalar  zb,
double A,
double V,
int  n,
double  max = 0.,
double  min = 0. 
)

Definition at line 140 of file rpe.h.

References a, A, area(), b, dv, f, fractions(), i, max, min, stats::min, n, sf, statsf(), _Zarea::V, val(), x, and zb.

Referenced by RPE(), and zvolume().

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

◆ zareaval()

double zareaval ( Zarea  s,
double  z 
)

Definition at line 197 of file rpe.h.

References assert, j, s, x, and z.

Referenced by barycenter().

Here is the caller graph for this function:

◆ zvolume()

Zarea zvolume ( scalar  zb,
double A,
double V,
int  n,
double  max = 0.,
double  min = 0. 
)

Definition at line 169 of file rpe.h.

References A, i, max, min, n, s, _Zarea::V, x, zarea(), and zb.

Here is the call graph for this function: