协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
skill-097【开发与工程】Simulate chemical reactions and predict outcomes based on provided reactants, conditions, and chemical properties.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill allows users to simulate chemical reactions by inputting reactants, conditions, and chemical properties. The output includes predicted products and reaction yield, enabling chemists to hypothesize outcomes and optimize conditions for desired results.
To use this simulator, you need to specify the following parameters:
from reaction_simulator import ReactionSimulator
# Initialize the reaction simulator
simulator = ReactionSimulator()
# Define reactants and conditions
reactants = ["H2", "O2"]
conditions = {"temperature": 300, "pressure": 1}
# Run the simulation
products = simulator.simulate(reactants, conditions)
print(products)
The simulator predicts the products and potential yield of the reaction:
# Example of predicting a reaction
reactants = ["C6H12O6", "O2"]
conditions = {"temperature": 37, "pressure": 1}
# Simulate the reaction
predicted_products = simulator.predict(reactants, conditions)
print(f"Predicted Products: {predicted_products}")
The simulator can also compute reaction kinetics and thermodynamic properties if you provide the necessary data:
kinetic_data = {"activation_energy": 50, "frequency_factor": 1e12}
thermo_data = {"enthalpy_change": -280, "entropy_change": -200}
# Calculate kinetics and thermodynamics
results = simulator.advanced_calculation(reactants, conditions, kinetic_data, thermo_data)
print(results)
For detailed guidance on input parameters and simulation options, refer to the detailed documentation at docs/reaction_simulator.md.