Skip to content

Commit 2451e31

Browse files
committed
Result Alias
1 parent 6f8da59 commit 2451e31

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.claude/settings.local.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(grep:*)",
5+
"Bash(do echo:*)",
6+
"Bash(xargs grep:*)"
7+
]
8+
}
9+
}

content/import/ResultAlias.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
+++
2+
title = "Result Aliases"
3+
4+
weight = 35
5+
+++
6+
7+
**Result Aliases** allow users to assign alternative names to simulation result properties in grid model cases. This is useful when a result has a technical or cryptic name in the simulation file and a more descriptive name is preferred throughout the project.
8+
9+
When an alias is defined, it can be used anywhere a result property is selected — in cell colors, property filters, well log curves, and more — and ResInsight will transparently resolve it to the underlying result.
10+
11+
If the alias name is identical to an existing result name, the alias result takes precedence over the original.
12+
13+
Result aliases are also useful for custom input results used in computations. For example, when exporting **COMPDAT**, specific result names may be required as input to the computation. By defining an alias that maps an existing result to the expected name, the export workflow can find and use the correct data without modifying the underlying simulation results.
14+
15+
## Accessing Result Aliases
16+
17+
Result aliases are configured in the **Property Editor** of a simulation model. Select the simulation model in the **Project Tree** and scroll to the **Result Name Aliases** group in the **Property Editor**. The group is collapsed by default.
18+
19+
## Adding an Alias
20+
21+
Click **Add Result Alias** to add a new entry to the alias table. Each entry has two fields:
22+
23+
| Field | Description |
24+
|-------|-------------|
25+
| **Result Name** | The original result name as it appears in the simulation file. A dropdown lists all available results. |
26+
| **Alias Name** | The user-defined alternative name to use instead. |
27+
28+
Fill in both fields. The alias is active immediately and available in all result selectors within the case.
29+
30+
## Removing Aliases
31+
32+
Click **Reset Result Aliases** to remove all defined aliases for the case. Individual entries can also be deleted by selecting them in the table and pressing **Delete**.
33+
34+
## Persistence
35+
36+
Aliases are saved in the ResInsight project file and are restored when the project is reopened.
37+
38+
## Scripting
39+
40+
Result aliases can be managed via the Python scripting API:
41+
42+
```python
43+
import rips
44+
45+
resinsight = rips.Instance.find()
46+
case = resinsight.project.case(case_id=0)
47+
48+
# Add an alias
49+
case.add_result_alias(result_name="MY_PORO_NAME", alias_name="PORO")
50+
51+
# Clear all aliases
52+
case.clear_result_aliases()
53+
```
54+
55+
See [Python API]({{% relref "pythoninterface" %}}) for details on connecting to ResInsight from Python.

0 commit comments

Comments
 (0)