neqsim-api-patterns

Provide reusable NeqSim API patterns for Java and Python thermodynamic calculations.

138|60|Updated Dec 5, 2018
One-click install
npx skills add https://github.com/equinor/neqsim --skill neqsim-api-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neqsim-api-patterns
Source: https://github.com/equinor/neqsim/tree/main/.github/skills/neqsim-api-patterns
Command: npx skills add https://github.com/equinor/neqsim --skill neqsim-api-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

NeqSim API patterns and code recipes provide developers with ready-to-use Java and Python patterns for thermodynamic calculations, reducing boilerplate and ensuring correct usage of NeqSim APIs.

Core Features & Use Cases

  • EOS selection, fluid creation, and TP/PH/PS flash workflows for rapid model setup.
  • Property access patterns for phase properties, compositions, and equations of state.
  • Real-world tutorials and examples showing common workflow patterns in industry and research.

Quick Start

Initialize a fluid with SystemSrkEos, add components with mole fractions, set the mixing rule, perform a TP flash, and read the phase properties.

Frequently Asked Questions about neqsim-api-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform a TP flash calculation in NeqSim using Python or Java?

To perform a TP flash calculation in NeqSim, initialize a fluid like SystemSrkEos, add components with mole fractions, set the mixing rule, run the TP flash, and read the resulting phase properties.

What is the correct way to select an equation of state and create a fluid in NeqSim?

Selecting an equation of state in NeqSim involves initializing a system such as SystemSrkEos, then adding components with specified mole fractions and configuring the mixing rule for accurate thermodynamic modeling.

Can I use NeqSim API patterns for both Python and Java thermodynamic calculations?

Yes, NeqSim API patterns provide ready-to-use recipes for both Python and Java thermodynamic calculations, covering fluid creation, flash workflows, and property access while enforcing Java 8 compatibility.

What's the best way to access phase properties and compositions after a flash calculation in NeqSim?

Access phase properties and compositions in NeqSim using established property access patterns, which provide safe, reusable coding conventions to extract phase data and equation of state results after flash calculations.

Does NeqSim support PH and PS flash workflows alongside standard TP flash calculations?

Yes, NeqSim API patterns cover TP, PH, and PS flash workflows, offering developers ready-to-use recipes for rapid model setup and thermodynamic calculations across typical industry use cases.

Are there reusable coding conventions for equipment patterns and unit conventions in NeqSim?

NeqSim API patterns include equipment patterns and unit conventions, providing safe, reusable coding conventions and documentation-oriented examples to reduce boilerplate in thermodynamic calculations.