Hi Mojdeh, you are welcome to give us more details, otherwise it is not easy to give you explicit advice.
You can access the TimeManager in (e.g. the source term routines of) your problem by this->timeManager(), and with that its methods, e.g. this->timeManager().timeStepSize(), see http://www.dumux.org/doxygen-stable/html-2.4/a00524.php With that it should be possible to do a time integral. You can keep a member variable that stores the integrated value so far and add the value required by the current time step. This will require some bookkeeping, since you don't want to accidentally add too often. You can use the methods preTimeStep and postTimeStep of your problem to be sure that you only add once per time step. Hope this helps. Kind regards Bernd On Thu, 10 Apr 2014 15:41:38 +0200 (CEST) mojdeh rasoulzadeh <[email protected]> wrote: >Dear DuMuxes, >I would be greateful if you can help me to implement a source term in the form >of an integral over time in DuMux. >Has anybody deleoped such a thing already? >Best Rgds, >Mojdeh _______________________________________________________________ !!!! CMWR 2014: 10th - 13th June 2014 in Stuttgart !!!! Please visit www.cmwr14.de _______________________________________________________________ Bernd Flemisch phone: +49 711 685 69162 IWS, Universitaet Stuttgart fax: +49 711 685 67020 Pfaffenwaldring 61 email: [email protected] D-70569 Stuttgart url: www.hydrosys.uni-stuttgart.de _______________________________________________________________ _______________________________________________ Dumux mailing list [email protected] https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
