|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Data Structures | |
| struct | Eta_b |
Functions | |
| static double | bflux (struct Eta_b p, double eta_b) |
| static double | falsepos (struct Eta_b p, double binf, double qinf, double bsup, double qsup) |
| To find the water level \(\eta_b\) corresponding to the flow rate \(Q_b\) we want to impose, we need to invert the function above i.e. | |
| double | eta_b (double Q_b, bid b, scalar limit={-1}, double value=0, double prec=0.001) |
Given a target flux \(Q_b\) and a boundary \(b\) (optionally limited to points for which limit[] = value), this function returns the corresponding water level \(\eta_b\).
We try to find good bounds on the solution.
Definition at line 89 of file discharge.h.
Referenced by bflux().
|
static |
To find the water level \(\eta_b\) corresponding to the flow rate \(Q_b\) we want to impose, we need to invert the function above i.e.
find \(\eta_b\) such that
\[ Q[z_b,u_n](\eta_b) = Q_b \]
We do this using the false position method.
Definition at line 58 of file discharge.h.
References bflux(), LINENO, n, p, and x.