solution¶
-
stin.solution.plotting(array)¶ Plots the results against spatial coordinate. Every unknown being a list, has a marker as the last member of the list. This function recognizes which unknown is taken as an argument by its marker.
- Parameters
array (list of lists) – spatial coordinate; second item is a list of values of one of the unknowns.
- Returns
the return value (matplotlib figures). Shows an unknonw vs x.
- Return type
plot
-
stin.solution.run(α_G0)¶ At first, the analytical solution for a single-phase flow is used to find pressure and velocity of liquid at the point where gas influx occurs. At second, system of equation describing gas-liquid flow will be solved numerically via explicit Euler method. The system seems to be stiff (due to significant difference between pressure and velocity (and volume fraction) values. Hence, small spatial step is recommended. This function solves the system of equations for the unknowns: α_L - volume fraction of the liquid phase, α_G - volume fraction of the gaseous phase, v_L - velocity of the liquid phase, v_G - velocity of the gaseous phase, ρ_G - density of the gaseous phase, p - pressure of the mixture (i.e., of the gas-liquid flow).
- Parameters
α_G_0 (float) – Can assume any value from 0 to 1 (not including the margins).
- Returns
- the return iterable. Each item in the
iterable contains spatial variable and one of the unknowns. It is done in order to simplify dealing with plotting function.
- Return type
python list of lists of lists