Hi,


based on Beatrix' answer we have developed a well output procedure which writes 
things like injection/production rates and compositions in a file. The 
procedure iterates over the elements in the postTimeStep() method and sums up 
or averages when the well is perforated in several grid cells. This works fine 
as long as the simulation is running only on one process. However, in parallel 
we are getting the output for each process separately and overlapping cells are 
considered two times.

Is it possible to use an iterator which runs over all elements only once also 
in parallel?



Regards Birger



Von: Dumux [mailto:[email protected]] Im Auftrag von 
Beatrix
Gesendet: Donnerstag, 29. Oktober 2015 18:03
An: DuMuX User Forum
Betreff: Re: [DuMuX] curves of oil production



Hi,

you want to plot the flux over a specific boundary over time, is that right?
You can do that in a postTimeStep-function, using either the 
dumux/io/gnuplotinterface.hh or just writing the data in a file and plotting 
with another program afterwards. In the postTimeStep you need to iterate over 
all elements and all intersections until you find those you want to calculate 
the flux over. Calculate and sum up the fluxes over the interfaces and write 
them out for each time step.

I attach an example where this is done using the gnuplotinterface and also an 
outputFile. You need to adapt it of course for your setup and add the private 
variables:
Dumux::GnuplotInterface<double> gnuplot_;
std::ofstream outputFile_;

Also include the gnuplotinterface.hh.

Cheers
Beatrix



On 28.10.2015 05:36, Ait Mahiout Latifa wrote:

Hi,

is it possible to obtain curves for oil production at the output as a function 
of time, after simulation with decoupled tutorial problem? If yes, how we can 
obtain it?




Kind regards.








_______________________________________________
Dumux mailing list
[email protected] <mailto:[email protected]>
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux





_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to