|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#include <discharge.h>
Data Fields | |
| double | Q_b |
| bid | b |
| scalar | limit |
| double | value |
| double | prec |
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.
| bid Eta_b::b |
Definition at line 23 of file discharge.h.
| scalar Eta_b::limit |
Definition at line 25 of file discharge.h.
| double Eta_b::prec |
Definition at line 27 of file discharge.h.
| double Eta_b::Q_b |
Definition at line 22 of file discharge.h.
| double Eta_b::value |
Definition at line 26 of file discharge.h.