I have a column of an oil and gas mixture, where gas-to-oil ratio varies along the height of the column. The ratio also varies with time.
To get the total amount of gas in the column at any one time, i would like to integrate over the volume (height). Then I would like to integrate this total gas integral over time.
Is there a way to do this spatial integration inside Adams?
Thank you for your reply, Jesper. I may end up doing a subroutine as you suggest. Hexagon is suggesting doing it in EASY5. In parallel with that, I'm thinking of discretizing the volume into 10 sections, storing the states in an array, and using the INTEGR function, which fits a cubic spline between the points. Do you think I might run into a problem with that approach?
Easy5 is not a bad idea for anything gas related. If you have a MSC.One license, test it out. You can then export the model from E5 as an FMU and import into Adams.
The idea to discretizing the volume is interesting, but I'm not sure it will work as you think. INTEGR is a design time (View) function and will not work during simulation.