
Ocean Framework, C++, SWIG, C#
Petrobras was part of an international consortium of operators backing the development of Turmy, a software developed by MINES ParisTech that numerically models the time evolution of sinuous channels in subaqueous environments. Unlike traditional approaches, which reproduce these systems from pre-defined geometric shapes, Turmy analytically solves a simplified form of the Navier-Stokes equation, computing the current velocities that determine the eroded and deposited portions at each time step. The result is a sediment distribution model in which channel geometry emerges from the physics of the flow itself, not from a geometric imposition.
The Turmy numerical core was written in C++ and operated independently, outside Petrobras' integrated reservoir modeling environment.
Modeling sinuous channels in complex depositional environments is not a geometry problem, it is a flow dynamics problem. In contexts where reservoir architecture depends directly on these patterns, the difference between a visually acceptable model and a model that truly represents the system is decisive.
The challenge was to bring the full power of Turmy's numerical core, written in C++, into Petrobras' modeling ecosystem, integrating it natively into Petrel® without requiring a rewrite of the calculation engine or compromising the ongoing development carried out by MINES ParisTech and the consortium of operators.
DeepSoft developed a .NET wrapper layer around the entire C++ numerical core of Turmy, using SWIG to expose the original computation classes and routines as objects directly consumable from any .NET application. This architecture preserved the original numerical core intact, maintaining compatibility with the evolution led by MINES ParisTech while enabling direct consumption of the C++ code by modern applications.
On top of this layer, DeepSoft also developed the Ocean plug-in for Petrel, natively integrating the Turmy computation engine into Petrobras' geological modeling environment. A specialized graphical interface replaced the original software's command line operation, allowing geologists to configure, execute, and visualize the dynamic modeling of sinuous channels without leaving Petrel.

The integration allowed Petrobras geologists to explore within Petrel an approach in which sinuous channels, depositional patterns, and spatial organization reflect actual flow behavior, rather than pre-defined geometric approximations.

The strategy of .NET wrappers over the original C++ code ensured that all evolution of the numerical core, led by the international consortium with MINES ParisTech, remained directly usable by Petrobras with no porting overhead.

The Turmy physics based modeling engine became a native tool inside Petrel, eliminating the need for exports and imports between separate environments and bringing a flow dynamics based depositional approach into the daily routine of modeling teams.