Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
Eta_b Struct Reference

#include <discharge.h>

Collaboration diagram for Eta_b:
[legend]

Data Fields

double Q_b
 
bid b
 
scalar limit
 
double value
 
double prec
 

Detailed Description

Shallow-water flux computation at boundaries

In order to impose a given flow rate \(Q_b\) through a boundary \(b\), when solving the Saint-Venant equations, we need to compute the water level \(\eta_b\) corresponding to this flow rate. The flow rate \(Q\) is a complicated, non-linear function of the water level, the bathymetry \(z_b\) and the velocity normal to the boundary \(u_n\).

We first define a function which, given \(\eta_b\) and the current topography and velocity fields (defined by the Saint-Venant solver), returns the flow rate through boundary b.

The extent of the boundary can also be limited to points for which limit[] = value.

Definition at line 20 of file discharge.h.

Field Documentation

◆ b

bid Eta_b::b

Definition at line 23 of file discharge.h.

◆ limit

scalar Eta_b::limit

Definition at line 25 of file discharge.h.

◆ prec

double Eta_b::prec

Definition at line 27 of file discharge.h.

◆ Q_b

double Eta_b::Q_b

Definition at line 22 of file discharge.h.

◆ value

double Eta_b::value

Definition at line 26 of file discharge.h.


The documentation for this struct was generated from the following file: