- Example provided in the
inorganic_example.py
under the IONIC REACTION section:- Initialization: Set up the simulator
ChemicalReactionSimulator
. - Input: Build a reactants dictionary
reactants_dict
{Name: Moles}. - Product Prediction:
.simulate_reaction
method, returns a dictionary {Name: Moles}. - Characterization Calculation:
.get_information
method, returns a dictionary {Property: Content}.
- Initialization: Set up the simulator
- Example provided in the
organic_example.py
under the ORGANIC REACTION section:- Initialization: Set up the simulator
OrganicReactionSimulator
. - Input: Build a reactants dictionary
reactants_dict
{Name: Mass}. - Product Prediction:
.simulate_reaction
method, returns a dictionary of products {Name: Mass}. - Characterization Calculation:
.get_information
method, returns: a dictionary of product states {Name: State}, a list of dictionaries containing detailed product information [{Property: Content}, ...].
- Initialization: Set up the simulator
-
Class ChemicalReactionSimulator
Ionic Reactionsimulate_reaction(input, input_sol_vol)
: Simulates the process of ionic reactionsDatabase.py
: Inorganic information databaseChemicalDatabase
: Manages a collection of chemical substancesReactionDatabase
: Manages a collection of ionic reactions
charge_balance()
: Determines the charge balance of reactantstemperature()
: Enthalpy and temperature calculation
mix_solutions(products)
: Calculate colorcolor_dilution()
: Calculate the color of substances at different concentrationsmix_color()
: Mixed solution color
ph_calculation(product)
: Calculate pHionization_constant(tem)
: Calculate the ionization constant of water
get_information(products)
: Output all characterization results- Contains
enthalpy
,color
,temperature
,ph
,volume
,state
- Contains
reset()
: Reset reactant information
-
Class OrganicReactionSimulator
Organic Reactionsimulate_reaction(input)
: Simulate organic reactionsrxn4chemistry package
get_info()
: Get detailed information about the productsget_info_organic()
: Web scraping