Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vsHPC Simulation CenterNew to Visual Studio Code? Get it now.
vsHPC Simulation Center

vsHPC Simulation Center

Rogério Ferreira da Cunha

|
329 installs
| (0) | Free
Reservoir HPC Control Center for Launching and Managing Flow and Geomechanics Simulations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vsHPC Simulation Center

Submit and monitor reservoir simulations on HPC clusters, compare SR3 results, and prepare charts and reports directly in VS Code.

vsHPC connects your project workspace to configured simulators and SLURM through SSH. It brings job management, Git revision tracking, SR3 dashboards, RWX reports, and geomechanical diagnostics into the same editor.


SR3 Viewer Showcase

SR3 dashboards for analyzing and comparing simulation results.


What You Can Do

Workflow Capabilities
Submit simulations Use configured solvers, resources, path mappings, and dynamic macros; submit with or without Git preparation.
Monitor jobs Inspect SLURM states, CMG progress, logs, result folders, and job history; cancel selected jobs.
Analyze SR3 results Compare simulations, build multi-axis charts, change units, aggregate bars, and reuse dashboard templates.
Prepare RWX reports Calculate monthly series and summaries using SR3 data and source-specific RWE associations.
Share results Export chart images, configurable PowerPoint presentations, and CSV data.
Manage result files Generate squeeze SR3 files and choose original or _sqz sources.
Inspect geomechanics Query cell properties from .outh5 files and compare two selections.
Automate workflows Request submissions and job listings from external scripts through the VS Code URI handler.

Getting Started

  1. Install: Search for vsHPC Simulation Center in the VS Code Marketplace.
  2. Open your project folder: Use File > Open Folder, not just an individual model file.
  3. Load configuration: Obtain a compatible vshpc.json from your HPC support team. In the Command Palette, run vsHPC: Carregar Configurações Customizadas (JSON). The extension walkthrough also guides setup.
  4. Check SSH and path mapping: Configure authentication and confirm that your workspace maps to the correct cluster folder. The required network or VPN access and simulators must already be available.
  5. Set scheduler options: In workspace settings, configure vshpc.scheduler.slurm, for example -A your_account -p your_partition. Select the simulator, version, cores, nodes, and tasks per node appropriate for your cluster.
  6. Submit: Use the model file's vsHPC context submenu to choose the configured submission workflow. Review the configuration before launching a production job.
Menu and Configuration

Command titles are currently in Portuguese. Cluster connections, solver definitions, and submission conventions depend on your team's vshpc.json; the extension does not provision a cluster or install simulators.

Copilot Workflows (Planned For 1.7.2)

The bundled vsHPC workflow skill supports two modes: explain manual operations without executing them, or use the extension's eleven native tools for requested inspection, limited configuration changes, confirmed submissions, resumable job tracking and SR3 templates/dashboards.

Try: "Explain how to submit without Git; do not make changes", "Inspect this model's configuration", or "Build an oil/water dashboard from these SR3 files". See prompt examples and limitations and the operation/template reference.

Use a current VS Code and GitHub Copilot Chat with Agent Skills and the vsHPC tools enabled. The Language Model Tool API is stable since VS Code 1.95; automatic skill discovery additionally requires support for contributes.chatSkills. The extension retains its VS Code 1.75 minimum; older hosts keep the manual workflows.

Each submission/configuration/file write requires a native per-operation modal confirmation, even if Chat tools are auto-approved. Never send passwords, tokens or private keys through Chat. Only trusted workspace files can be used. The extension persists operation IDs without credentials and monitors accepted jobs every 60 seconds while VS Code is open. Interrupted sends are not retried.

This is an initial assisted delivery, not complete end-to-end automation. Bootstrap, authentication, path mappings, include inspection, remote result retrieval/log validation, job cancellation and advanced RWX/zonal/composite-well editing remain manual. Saved templates, template dispatch and data delivery are reported separately. SR3 discovery includes Git-ignored files without a terminal; targeted catalogs separate origin/variable pagination and native/display units. Dashboards open transiently unless saving is explicitly requested. Typed ACKs confirm application and chart integration updates, not visual/scientific validity; visual confirmation remains necessary. HPC inspection never infers solver, Slurm or write access from a basic SSH test. Job completion never certifies scientific validity. No cluster operation is required to test the tools: npm run test:copilot runs isolated mocks and temporary filesystem discovery checks. These do not replace an actual F5 Viewer test.

Submit and Monitor

Submission and Git Preparation

Submit models through the configured Git-based or direct workflow. Dynamic macros resolve paths and solver parameters, while Git metadata records the revision associated with a simulation. Model validation blocks submission when the selected model is missing, unreadable, or still a Git LFS pointer.

Git LFS preparation recovers and validates required content, including historical revisions, without overwriting local edits.

Use vsHPC: Git LFS: Verificar e baixar arquivos do projeto from the Command Palette or the vsHPC context submenu to recover pending LFS pointers before simulation. It operates over SSH in the project's mapped Unix folder, reports progress in vsHPC Log, and preserves edited files. Configure the workspace to cluster path mapping first; Python 3.6+ is required on the cluster, and Git LFS is required to recover pointers. This command does not submit a job or fetch other commits; it validates the size and SHA-256 of recovered files.

Context Menu

Image: Use the VS Code context menu to submit simulations.

Jobs and History

Use the Jobs panel to filter cluster jobs, inspect SLURM states, track supported CMG simulation progress, open remote logs, and cancel selected jobs. Job state and simulation progress are separate: not every solver provides a progress percentage.

Access result folders and SR3 files from job actions when available. Job records retain simulation metadata for later review and result analysis.

Jobs Monitor

Image: The Jobs Panel showing active simulations, progress bars, and "Action" buttons.

Analyze SR3 Results

Open a .sr3 file with vsHPC: Abrir SR3 Viewer, its context menu, or the SR3 action in the Jobs panel. The native dashboard works without a template.rwe or producer/injector/sector associations.

  • Multiple simulations: Add sources from the simulation picker, filter by folder, assign aliases and colors, and compare curves or differences against a selected reference.
  • Custom charts: Combine available well, group, and sector series; assign up to four Y-axes; control drawing order independently of axis assignment.
  • Units and resolution: Change display units locally. Zoom-coupled resolution moves between monthly, weekly, daily, and raw detail while limiting rendered points for responsiveness.
  • Bar charts: Aggregate arbitrary series using maximum, minimum, last value, last non-zero value, or nearest-date selection.
  • Templates: Save and reuse chart selections, units, axes, colors, drawing order, and bar operation/date choices.
  • Native recovery factors: Plot sector FRO, FRO_old, FRG, and FRG_old when recorded in the file, as percentages or fractions.
  • Numerical diagnostics: Explore recorded SPECIAL HISTORY values such as elapsed time, timestep and iteration counts, material-balance error, and memory usage.
  • Well zones: Select matching special-history variables and plot zones as independent curves alongside regular well variables.

Availability is checked separately for each simulation. Templates cannot supply variables that were not recorded in a source file. Rates can be read from HDF5 or derived from cumulative volumes according to vshpc.sr3.readRatesFromHDF5.

SR3 Viewer Setup

Prepare RWX Reports

The RWX surface provides standardized reports calculated from the loaded SR3 simulations. It does not require importing a .rwx file or an Excel workbook.

Each simulation needs a compatible template.rwe associating its production and injection groups with model sectors. Review Associações de grupos e setores (RWE); if automatic discovery does not find the file, use Selecionar RWE…. Reload associations after changing it.

  • Séries: Choose field or module relations to inspect monthly production, injection, recovery, reservoir-condition balance, cumulative and discounted oil, CO2-equivalence, and molar indicators where their required inputs are available.
  • Resumo: Select an indicator family and a Curva-Base to compare accumulated values and differences between simulations. Hiding the base curve does not remove it from comparison calculations.
  • Configurar RWX: Adjust calculation dates, discount rate, BOE factor, prices, gas assumptions, and time-axis scale. Calculation dates and chart scale are distinct controls.
  • Reusable setup: Save the RWX configuration through a dashboard template. Return to native charts with Voltar ao dashboard SR3.

RWX uses a configured monthly calendar and Excel/RWX calculation conventions, including six-significant-digit preparation of operands. Its calculated outputs are not interchangeable with raw simulator samples or native recovery factors. Missing inputs are reported as unavailable, not silently treated as zero. Without valid RWE associations, the native SR3 dashboard remains usable.

Export Data and Charts

Output Use
SR3 CSV Export recorded samples or daily data for further analysis.
RWX CSV Export the selected monthly series or summary, with percentage series expressed in % and summary percentage differences in percentage points.
PowerPoint Export charts with configurable fit and background options.
PNG Save individual chart images.

RWX CSV and PowerPoint exports respect the active section, filters, and visible curves. Wait until data loading and calculation finish before exporting. For SR3, select raw or daily CSV according to your analysis; chart display resolution is distinct from export sampling.

Generate Squeeze SR3 Files

Use vsHPC: Gerar Squeeze from a .dat or .sr3 context menu to prepare a single file or scan a directory for conversion. Review processable and skipped targets, track active conversions, and access their jobs from the Jobs panel. Active-target checks prevent duplicate conversion submissions.

Conversion requires a compatible script configured through vshpc.sr3.squeezeScriptPath or your team's vshpc.json. Set vshpc.sr3.preferSqz to prefer available _sqz.sr3 files when opening or adding simulations; the source picker also lets you choose originals.

Inspect Geomechanical Results

Run vsHPC: Abrir Diagnóstico Geomecânico on a .outh5 file. Select a date and zero-based cell coordinates i, j, and k to inspect displacement, facies, plastic strain, and stress components. Select a second result file to compare values and differences.

Current limitation: Stress components are read from the initial state. Displacement, facies, and plastic strain use the selected timestep, falling back to the initial state when a property is unavailable there. Do not interpret every table value as an evolved value at the selected date. The file must contain the expected properties. This viewer is independent of SR3 and RWE.

Automate with the External API

External scripts and agents can request conventional submissions, submissions for multiple Git commits, and filtered cluster job listings through VS Code URI handling. This is not an HTTP server or a standalone headless service.

See the External API documentation for routes, parameters, limits, and Python, PowerShell, CMD, and Node.js examples.

Important operational prerequisites:

  1. VS Code must be running.
  2. The extension must be installed and enabled.
  3. The extension must already be configured.
  4. The target project folder must be open in VS Code (Open Folder).
  5. vshpc.externalApi.enabled must be enabled; it is disabled by default.

Remote-SSH Note

If you use VS Code through Remote-SSH behind a corporate proxy, remember that the VS Code Server and remote extensions run on the remote host. In that setup, proxy variables such as HTTP_PROXY and HTTPS_PROXY must be available on the remote side, preferably through ~/.vscode-server/server-env-setup. After changing them, run Remote-SSH: Kill VS Code Server on Host and reconnect.


SR3 Availability and Settings

Zone Charts

The SR3 Viewer can expose variables stored in the SPECIAL HISTORY group as zone charts in the existing WELLS workflow. After selecting a well, matching special-history variables appear together with the regular well variables. Select one of the available descriptions, such as Oil Surface Rate or Water Surface Rate, and then choose one or more zones.

The viewer keeps each selected zone as an independent curve. Zone names are included in the chart legend, templates, and CSV export. Regular variables such as OILRATSC continue to work as before.

Zone time series are displayed and exported as absolute values by default because production values in SPECIAL HISTORY may use a negative sign convention. Set vshpc.sr3.absoluteZoneValues to false to preserve the original signs read from the SR3 file. This setting affects only series with an explicit zone; regular SR3 variables are unchanged.

This feature depends on the setting vshpc.sr3.specialHistoryVariablePattern. The default value is the regexp used by the Mero SR3 fixture:

^(?<variable>\S+)\s+(?<description>.+?)\s+"(?<well>.+)_(?<zone>[^"]+)"$

The named groups are required:

  • variable: the physical SR3 keyword, for example CRLLRATE;
  • description: the description that distinguishes curves sharing one keyword, for example Oil Surface Rate and Water Surface Rate;
  • well: the selected well name;
  • zone: the suffix after the last underscore in the quoted name.

The regexp is applied to the raw text of /TimeSeries/SPECIAL HISTORY/Variables. Leave the setting empty to disable zone charts. An invalid pattern or a file without the expected special-history group disables only the zone catalog; regular SR3 groups remain available. The pattern must match the structure of the SR3 files used by your team, so review it when files come from another simulator or export workflow.

Native Recovery Factors and SPECIAL HISTORY

SECTORS includes FRO, FRO_old, FRG and FRG_old when their corresponding OILSECRECO, OILSECRECOO, GASSECRECO and GASSECRECOO columns are present. These are the simulator's recorded recovery factors. Recovery factors can be displayed as percentages or fractions, preserving their original signs.

SPECIAL HISTORY exposes the optional diagnostics ELTSCUM, ELTSRATE, TSTEPCUM, NCYCCUM, SOLITCUM, TSCUTCUM, DELTIME, NCYCPTS, SOLITPN, MBERROR, AVGIMPL and MEMUSAGE. They appear only when recorded in the SR3, usually through the model's OUTSRF SPECIAL requests. No RWE file or zone regexp is required. Availability is checked separately for each simulation, including when reopening chart templates.

Elapsed time uses seconds; ELTSRATE uses seconds per simulated day; DELTIME uses days; memory uses MB. Counts and ratios retain their recorded values. The zone absolute-value setting and production-rate derivation setting do not change these diagnostics.

Raw CSV retains the recorded samples. Daily CSV uses end-of-day values for recovery factors and the last recorded value within each series' coverage for diagnostics, including the final partial day. Daily exports retain surrounding samples for interpolation when the selected period starts between records.


Documentation and Support

  • Release notes
  • External API reference and examples
  • Model include checking
  • SR3 reader technical notes

For a compatible vshpc.json, cluster access, solver setup, and team-specific submission conventions, contact your local HPC support team. When reporting an issue, include the extension version, solver/version, job ID if applicable, and relevant vsHPC Log output. Remove credentials and other sensitive data before sharing logs.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft