poreana.utils

Here popular basic methods are noted.

Functions

column(data)

Convert given row list matrix into column list matrix

file_to_text(link, link_output[, link_dens])

This function converts an output directory in txt file.

load(link[, file_type])

Load pickled object files, yaml files, and hd5 files.

mkdirp(directory)

Create directory if it does not exist.

mmol_g_to_mumol_m2(c, SBET)

Convert the concentration \(\frac{\text{mmol}}{\text{g}}\) to \(\frac{\mu\text{mol}}{\text{m}^2}\).

mmol_l_to_mols(c, V)

Convert the concentration in \(\frac{\text{mmol}}{\text{l}}\) to number of molecules.

mols_to_mmol_l(N, V)

Convert the number of molecules to concentration in \(\frac{\text{mmol}}{\text{l}}\).

mols_to_mumol_m2(N, A)

Convert the number of molecules to concentration in \(\frac{\mu\text{mol}}{\text{m}^2}\).

mumol_m2_to_mols(c, A)

Convert the concentration in \(\frac{\mu\text{mol}}{\text{m}^2}\) to number of molecules.

num_dens_to_mass_dens(dens)

Convert number density \(\rho \left(\frac{\text{#}}{\text{nm}^3}\right)\) into mass density \(\rho_{\text{m}} \left(\frac{\text{kg}}{\text{m}^3}\right)\) from the dictonary from function pa.density.bins() with

save(obj, link)

Save an object files, yaml files, and hd5 files using pickle in the specified link.

tic()

MATLAB tic replica - return current time.

toc(t[, message, is_print])

MATLAB toc replica - return time difference to tic and alternatively print a message.