pylimer_tools package¶
Subpackages¶
- pylimer_tools.calc package
- Submodules
- pylimer_tools.calc.mehp_utilities module
- pylimer_tools.calc.miller_macosko_theory module
compute_entanglement_modulus()compute_extracted_modulus()compute_junction_modulus()compute_miller_macosko_probabilities()compute_modulus_decomposition()compute_probability_that_bifunctional_monomer_is_dangling()compute_probability_that_bifunctional_monomer_is_effective()compute_probability_that_crosslink_is_dangling()compute_probability_that_crosslink_is_effective()compute_probability_that_crosslink_with_degree_is_dangling()compute_trapping_factor()compute_weight_fraction_of_backbone()compute_weight_fraction_of_dangling_chains()compute_weight_fraction_of_soluble_material()compute_weight_fraction_of_soluble_material_from_weight_fractions()predict_gelation_point()predict_maximum_p()predict_number_density_of_junction_points()predict_number_density_of_network_strands()predict_p_from_w_sol()predict_shear_modulus()
- pylimer_tools.calc.stoichiometric_relationships module
- pylimer_tools.calc.structure_analysis module
compute_crosslinker_conversion()compute_effective_crosslinker_functionalities()compute_effective_crosslinker_functionality()compute_end_to_end_vectors()compute_extent_of_reaction()compute_fraction_of_bifunctional_reactive_sites()compute_mean_end_to_end_distances()compute_mean_end_to_end_vectors()compute_stoichiometric_imbalance()compute_weight_fractions()measure_lower_bound_weight_fraction_of_soluble_material()measure_weight_fraction_of_backbone()measure_weight_fraction_of_dangling_chains()measure_weight_fraction_of_soluble_material()
- Module contents
- pylimer_tools.io package
- Submodules
- pylimer_tools.io.bead_spring_parameter_provider module
ParameterTypeParametersParameters.get()Parameters.get_base_distance_units()Parameters.get_bead_density()Parameters.get_entanglement_density()Parameters.get_fb_stress_conversion()Parameters.get_gamma_conversion_factor()Parameters.get_kappa()Parameters.get_name()Parameters.get_sampling_cutoff()Parameters.get_unit_registry()
assemble_gaussian_parameters_from_kuhn()get_gaussian_parameters_for_polymer()get_kg_lj_parameters_for_polymer()get_kuhn_parameters_for_polymer()get_parameters_for_polymer()get_supported_polymer_names()
- pylimer_tools.io.extract_thermo_data module
- pylimer_tools.io.polymer_data module
PolymerDataPolymerDataFramePolymerDataFrame.__getitem__()PolymerDataFrame.__len__()PolymerDataFrame.__repr__()PolymerDataFrame.columnsPolymerDataFrame.head()PolymerDataFrame.indexPolymerDataFrame.iterrows()PolymerDataFrame.itertuples()PolymerDataFrame.query()PolymerDataFrame.shapePolymerDataFrame.tail()PolymerDataFrame.unique()
get_available_polymers()get_polymer_by_name()load_everaers_et_al_data()
- pylimer_tools.io.read_pylimer_tools_output_file module
- pylimer_tools.io.read_lammps_output_file module
- pylimer_tools.io.unit_styles module
- Module contents
- pylimer_tools.utils package
Submodules¶
pylimer_tools.analyse_networks module¶
Analyse Networks¶
This script provides a command-line interface (CLI) to analyze polymer networks generated by LAMMPS simulations. It reads structure files, computes various properties of the networks, and outputs statistics such as bond lengths, end-to-end distances, and stoichiometric imbalances.
pylimer_tools.basic_lammps_structure_stats module¶
pylimer_tools.displace_randomly module¶
pylimer_tools.generate_network module¶
Generate MC Network¶
Uses an MC procedure to generate a crosslinked polymer network.
- pylimer_tools.generate_network.generate_structure(params: Parameters, target_p: float | None = None, target_wsol: float | None = None, n_chains_crosslinkers: int = 0, target_f: int = 4, n_solvent_chains: int = 0, n_beads_per_solvent_chain: int = 0, n_chains_1: int = 1000, n_beads_per_chain_1: int = 0, n_chains_2: int = 0, n_beads_per_chain_2: int = 0, n_mono_chains: int = 0, n_mono_beads_per_chain: int = 0, n_beads_per_xlink: int = 1, remove_wsol: bool = False, functionalize_discrete: bool = False, disable_primary_loops: bool = False, disable_secondary_loops: bool = False, z_score_std_mult: float = 3.0) Universe[source]¶
Generate a universe with the given network generation parameter choices.
- pylimer_tools.generate_network.is_active_network(params: Parameters, target_p: float | None = None, target_wsol: float | None = None, n_chains_crosslinkers: int = 0, target_f: int = 4, n_solvent_chains: int = 0, n_beads_per_solvent_chain: int = 0, n_chains_1: int = 1000, n_beads_per_chain_1: int = 0, n_chains_2: int = 0, n_beads_per_chain_2: int = 0, n_mono_chains: int = 0, n_mono_beads_per_chain: int = 0, n_beads_per_xlink: int = 1, remove_wsol: bool = False, functionalize_discrete: bool = False, disable_primary_loops: bool = False, disable_secondary_loops: bool = False, z_score_std_mult: float = 3.0) bool[source]¶
Check whether the given network generation parameter choices may result in a network that has a modulus > 0.
- pylimer_tools.generate_network.prepare_structure_generation(params: Parameters, target_p: float | None = None, target_wsol: float | None = None, n_chains_crosslinkers: int = 0, target_f: int = 4, n_solvent_chains: int = 0, n_beads_per_solvent_chain: int = 0, n_chains_1: int = 1000, n_beads_per_chain_1: int = 0, n_chains_2: int = 0, n_beads_per_chain_2: int = 0, n_mono_chains: int = 0, n_mono_beads_per_chain: int = 0, n_beads_per_xlink: int = 1, remove_wsol: bool = False, functionalize_discrete: bool = False, disable_primary_loops: bool = False, disable_secondary_loops: bool = False, z_score_std_mult: float = 3.0) MCUniverseGenerator[source]¶
Module contents¶
The pylimer_tools package is the non-compiled part of this library. While the two packages (pylimer_tools and pylimer_tools_cpp) do interact and don’t work standalone, this distinction is nonetheless useful for the structure and functionality of the library, as well as to simplify the compilation process.
In this Python part of the library, various submodules offer functions that abstract the pylimer_tools_cpp library further, that builds a bridge to other Python libraries, such as pandas, or offer functionality that does not need to be as optimized for performance.