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

Go to the source code of this file.

Functions

trace void advection_centered (scalar f, vector u, scalar df)
 
trace void advection_upwind (scalar f, vector u, scalar df)
 
trace double timestep (void)
 
trace void momentum (vector u, scalar h, vector du)
 
trace void advance (double t, scalar *f, scalar *df)
 
void update (double t, scalar *f)
 
void event_defaults (void)
 Event: defaults (i = 0)
 
void event_init (void)
 Event: init (i = 0)
 
void run (void)
 

Variables

vector u []
 
vector un []
 
scalar h []
 
scalar hn []
 
scalar zb []
 
double F0 = 1.
 
double G = 1.
 
double NU = 0.
 

Function Documentation

◆ advance()

trace void advance ( double  t,
scalar f,
scalar df 
)

Definition at line 90 of file atmosphere.h.

References advection_centered(), dh, f, h, momentum(), and u.

Here is the call graph for this function:

◆ advection_centered()

trace void advection_centered ( scalar  f,
vector  u,
scalar  df 
)

Definition at line 17 of file atmosphere.h.

References _i, f, u, vector::x, and vector::y.

Referenced by advance(), and run().

Here is the caller graph for this function:

◆ advection_upwind()

trace void advection_upwind ( scalar  f,
vector  u,
scalar  df 
)

Definition at line 27 of file atmosphere.h.

References _i, f, u, vector::x, and vector::y.

◆ event_defaults()

void event_defaults ( void  )

Event: defaults (i = 0)

Boundary conditions for VOF-advected tracers usually depend on boundary conditions for the VOF field.

Event: defaults (i = 0)

The default density field is set to unity (times the metric).

We reset the multigrid parameters to their default values.

Definition at line 104 of file atmosphere.h.

References _i, and h.

◆ event_init()

void event_init ( void  )

Event: init (i = 0)

Definition at line 111 of file atmosphere.h.

◆ momentum()

trace void momentum ( vector  u,
scalar  h,
vector  du 
)

Definition at line 57 of file atmosphere.h.

References _i, d, dimension, f, F0, G, h, NU, psi, sq(), u, vector::x, vector::y, and zb.

Referenced by advance(), event_end_timestep(), and run().

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

◆ run()

void run ( void  )

Definition at line 115 of file atmosphere.h.

References _i, advance, advection_centered(), dt, dtnext(), events, f, free_grid, h, hn, inext, init_grid, iter, momentum(), N, runge_kutta(), t, timer_print(), timer_start(), timestep(), tnext, u, un, update, v, and vector::x.

Here is the call graph for this function:

◆ timestep()

trace double timestep ( void  )

Definition at line 37 of file atmosphere.h.

References CFL, dimension, dt, DT, dtmax, G, h, min, sq(), u, and vector::x.

Referenced by event_stability(), event_velocity(), and run().

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

◆ update()

void update ( double  t,
scalar f 
)

Definition at line 99 of file atmosphere.h.

Variable Documentation

◆ F0

double F0 = 1.

Definition at line 10 of file atmosphere.h.

Referenced by momentum().

◆ G

◆ h

vector h
Initial value:
{
#define nodata
Definition common.h:7
else return n
Definition curvature.h:101
Definition common.h:78

Definition at line 6 of file atmosphere.h.

Referenced by __ac_X31_hash_string(), advance(), area(), bflux(), box_matrix(), coeffs1(), coeffs2(), conserve_elevation(), constant_NNT(), correct_qz(), display_url(), eigenvalues(), energy(), equilibrium_tide_constituents(), event_acceleration(), event_defaults(), event_face_fields(), event_init(), event_pressure(), event_remap(), event_update_eta(), event_viscous_term(), fault(), geostrophic_velocity(), heap_read(), heap_write(), horizontal_diffusion(), implicit_horizontal_diffusion(), includes_point(), intersection(), intersects_point(), kdt_create(), kdt_heap_create(), kdt_heap_flush(), kdt_heap_free(), kdt_heap_get(), kdt_heap_put(), kdt_heap_resize(), kdt_heap_rewind(), kdt_heap_sort(), kdt_heap_split(), kdt_includes(), kdt_intersects(), kdt_query(), kdt_query_sum(), kdt_rect_write(), kdt_write(), kpp_bottom_layer(), kpp_do_kpp(), kpp_init_kpp(), kpp_surface_layer(), length(), main(), matrix(), matrix1(), momentum(), observations_init_observations(), prolongation_elevation(), put(), query_sum(), refine_elevation(), relative(), relax_GN(), relax_nh1(), residual_GN(), residual_nh(), residual_nh2(), residual_nh3(), restriction_elevation(), RPE(), run(), sum_add_point(), timestep(), turbulence_algebraiclength(), turbulence_dissipationeq(), turbulence_do_epsb(), turbulence_do_kb(), turbulence_do_lengthscale(), turbulence_do_tke(), turbulence_do_turbulence(), turbulence_genericeq(), turbulence_ispralength(), turbulence_kbeq(), turbulence_lengthscaleeq(), turbulence_potentialml(), turbulence_q2over2eq(), turbulence_tkeeq(), union_bound(), update_bounds(), update_green_naghdi(), update_sum(), util_adv_center(), util_diff_center(), util_diff_face(), vertical_diffusion(), vertical_fluxes(), vertical_remapping(), and vertical_viscosity().

◆ hn

scalar hn[]

Definition at line 6 of file atmosphere.h.

Referenced by bflux(), event_viscous_term(), run(), and update_saint_venant().

◆ NU

double NU = 0.

Definition at line 14 of file atmosphere.h.

Referenced by momentum().

◆ u

vector u[]

Definition at line 5 of file atmosphere.h.

Referenced by advance(), advection_centered(), advection_upwind(), momentum(), run(), and timestep().

◆ un

◆ zb