input_file_skill

Parse and patch OPM Flow DATA keyword blocks with natural language instructions.

4.1k|1.1k|Updated Oct 19, 2023
One-click install
npx skills add https://github.com/NVIDIA/GenerativeAIExamples --skill input-file-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: input_file_skill
Source: https://github.com/NVIDIA/GenerativeAIExamples/tree/main/industries/energy/simulation-workflow-agent/sim_agent/src/simulator_agent/skills/input_file_skill
Command: npx skills add https://github.com/NVIDIA/GenerativeAIExamples --skill input-file-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langchain_core, pydantic, llm_provider, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Parse, modify, and patch OPM Flow DATA files to streamline reservoir-simulation workflows, reducing manual editing and errors.

Core Features & Use Cases

  • Parse an OPM DATA file to identify sections and structure.
  • Modify content with natural language instructions while preserving the rest of the file.
  • Patch specific keyword blocks (e.g., WELLDIMS, WCONINJE) without rewriting the entire file.
  • Use this in scenarios where you need rapid, auditable adjustments to simulation inputs.

Quick Start

Run a quick edit workflow: parse SPE1CASE1.DATA to view sections, then modify the WCONINJE block to adjust injection rate.

Frequently Asked Questions about input_file_skill

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

FAQPage Schema
How do I patch specific keyword blocks in an OPM Flow DATA file?

Patch specific keyword blocks in an OPM Flow DATA file by parsing the structure and applying natural language modifications to target sections. This preserves the rest of the file while returning updated simulation inputs with precise changes.

Can I edit reservoir simulation input files using natural language instructions?

Edit reservoir simulation input files using natural language instructions to modify or patch specific keyword blocks. The parser identifies file sections and applies changes while preserving unaffected content.

What is the best way to modify WCONINJE or WELLDIMS blocks without rewriting the entire simulator input file?

Modify WCONINJE or WELLDIMS blocks without rewriting the entire simulator input file by targeting specific keyword blocks for patching. This approach preserves surrounding data and ensures rapid, auditable adjustments to simulation inputs.

How does parsing OPM DATA files help with reservoir-simulation workflows?

Parsing OPM DATA files helps reservoir-simulation workflows by identifying sections and structure to streamline modifications. This reduces manual editing and errors when updating specific keyword blocks.

Does this input file parser handle missing files or invalid syntax?

The input file parser provides error handling for missing files or invalid syntax during the OPM DATA file modification process. This ensures reliable patching of keyword blocks when adjusting simulation inputs.

Are Python dependencies required to parse and modify OPM Flow DATA files?

Python dependencies including langchain_core, pydantic, and llm_provider are required to parse and modify OPM Flow DATA files. These support the natural language processing used for patching specific keyword blocks.