Skip to content

🚀 Build & Save Component ThermoDB

Choose a tag to compare

@sinagilassi sinagilassi released this 17 Sep 17:15
· 1345 commits to main since this release

🧩 Component ThermoDB Builder

Easily build a ThermoDB for any chemical component using a reference content block. Just specify the component name, formula, and state, and let build_component_thermodb_from_reference do the rest!

  • Example:
    thermodb_component = build_component_thermodb_from_reference(
        component_name="carbon dioxide",
        component_formula="CO2",
        component_state="g",
        reference_content=REFERENCE_CONTENT,
    )

💾 Save Your ThermoDB

Now you can save your generated ThermoDB to disk for future use!
Set thermodb_save=True and provide a path and name to persist your data.

  • Example:
    thermodb_component_save = build_component_thermodb_from_reference(
        ...,
        thermodb_save=True,
        thermodb_save_path=parent_path,
        thermodb_name="CO2_thermodb",
    )

🛠️ Flexible State Handling

Ignore specific state properties when building your ThermoDB.
Use the ignore_state_props argument to customize which properties to skip.

  • Example:
    thermodb_component_ignore_state = build_component_thermodb_from_reference(
        ...,
        ignore_state_props=["Cp_IG"],
    )

✅ Validation & Checks

Each ThermoDB object includes a .check() method to validate its integrity and ensure your data is correct.

  • Example:
    print(thermodb_component.thermodb.check())

Enjoy streamlined ThermoDB creation, saving, and validation for your chemical data workflows!