Acquire Basic Information

To acquire the adsorption isotherm and other basic information about the sample being edited, the calls mic.isotherm, mic.sample_information, and mic.adsorptive_data are applied.

This script produces a graph of the adsorption and desorption isotherms for both relative and absolute pressure, and prints summaries of the sample information and the adsorptive properties.

Copy
import mic

prel, qads, n_ads, warm_fs, cold_fs, mass, desc = mic.isotherm('rel')
mic.graph( 'Graphical Report 1', 'Relative Pressure (P/Po)', 'Quantity Adsorbed (cm³/g STP)' )
mic.graph.add( 'Sample Isotherm', prel, qads )

pabs, qads, n_ads, warm_fs, cold_fs, mass, desc = mic.isotherm('abs')
mic.graph( 'Graphical Report 2', 'Absolute Pressure (mmHg)', 'Quantity Adsorbed (cm³/g STP)' )
mic.graph.add( 'Sample Isotherm', pabs, qads )

mass = mic.sample_information('sample mass')
Tanl = mic.sample_information('analysis temperature')
dens = mic.sample_information('sample density')

mic.summary( "Sample Information" )
mic.summary.add( "Sample Information",
                 [ "Number of adsorption points:",
                   "Warm free space:",
                   "Cold free space:",
                   "Sample mass:",
                   "Description:",
                   "Analysis temperature:",
                   "Sample density:" ],
                 [ '{:d}'.format(n_ads),
                   '{:8.3f}'.format(warm_fs) + ' cm³',
                   '{:8.3f}'.format(cold_fs) + ' cm³',
                   '{:8.3f}'.format(mass) + ' g',
                   desc,
                   '{:8.3f}'.format(Tanl) + ' K',
                   '{:8.3f}'.format(dens) + ' g/cm³' ] )

csa, hsd, dcf, mol_weight, analysis_gas = mic.adsorptive_data()

mic.summary.add( "Adsorptive Data",
                 [ "Cross sectional area:",
                   "Hard sphere diameter:",
                   "Density conversion factor:",
                   "Molecular weight:",
                   "Analysis gas:" ],
                 [ '{:8.3f}'.format(csa) + ' nm²',
                   '{:8.3f}'.format(hsd) + ' Å',
                   '{:8.3f}'.format(dcf),
                   '{:8.3f}'.format(mol_weight),
                   analysis_gas ] )

Note the calls to mic.isotherm and mic.adsorptive_data above are each returning results as a list with elements of varying return type.