Replies: 1 comment 1 reply
-
Hi! Apologies for the late reply. JutulDarcy is a bit complex when coming from MRST, but it should be possible to do the modifications here as well. The key idea is that JutulDarcy works with types, and you add additional function overloads to get the results you want. Here are a few examples from Jutul.jl that are examples of prototyping: https://sintefmath.github.io/Jutul.jl/dev/#An-example For modifying the reservoir simulator, it depends a bit on the kind of physics you want to add. Do you have an example of the kind of equations you are working with? The short answer is that JutulDarcy automatically takes care of Div - you have to write the implementation of the value that goes in the accumulation term and the "face flux" for a given component. One place to look at how this is done is the thermal equations, that get added as an additional set of energy conservation equations to an existing flow system: https://github.com/sintefmath/JutulDarcy.jl/tree/main/src/thermal Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi- I'm newbie to JutulDarcy but have been using MRST for a while, especially for prototyping (like adding custom physics). As expected, I’m hitting some performance limits with MRST, so I’m hoping to switch to JutulDarcy when performance becomes a concern. I learned MRST using this tutorial: (https://folk.ntnu.no/andreas/hasselt17/introMRST.pdf), and I was wondering if there's anything similar for JutulDarcy. Specifically, I’m looking for guidance on how to initialise AD variables (like initVariablesADI in MRST) and use operators like Grad and Div to add more physics. Right now, I’m working on a code in MRST where I’ve added sorption/diffusion, but I’m struggling to get started with JutulDarcy. Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions