Dear Timo, Thank you for your response. It works now!
Kenza, Le mar. 5 oct. 2021 à 11:36, <dumux-requ...@listserv.uni-stuttgart.de> a écrit : > Send DuMux mailing list submissions to > dumux@listserv.uni-stuttgart.de > > To subscribe or unsubscribe via the World Wide Web, visit > https://listserv.uni-stuttgart.de/mailman/listinfo/dumux > or, via email, send a message with subject or body 'help' to > dumux-requ...@listserv.uni-stuttgart.de > > You can reach the person managing the list at > dumux-ow...@listserv.uni-stuttgart.de > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of DuMux digest..." > > > Today's Topics: > > 1. How to stop a gas injection? (kenza bouznari) > 2. Re: How to stop a gas injection? (Timo Koch) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 5 Oct 2021 11:31:57 -0400 > From: kenza bouznari <bouznari.ke...@gmail.com> > To: dumux@listserv.uni-stuttgart.de > Subject: [DuMux] How to stop a gas injection? > Message-ID: > < > caflw-nnohzwed2pkapadp1poo0j6ngm71aokpynov_yj-yy...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hello everyone, > > How can I stop a gas injection from a source after a certain time? > > I already tried to follow the instructions in > dumux_course/exercises/exercise-runtimeparams. There must be something that > I am not implementing correctly and I couldn't found out what is it. > > PS: I am using 2p2c / chemicalnonequilibrium model. I attached the > problem.hh and the input file I'm using. > > Thanks for your help, > Best regards > > KB > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://listserv.uni-stuttgart.de/pipermail/dumux/attachments/20211005/489c5989/attachment-0001.htm > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: params.input > Type: application/octet-stream > Size: 1119 bytes > Desc: not available > URL: < > http://listserv.uni-stuttgart.de/pipermail/dumux/attachments/20211005/489c5989/attachment-0002.obj > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: problem.hh > Type: application/octet-stream > Size: 15965 bytes > Desc: not available > URL: < > http://listserv.uni-stuttgart.de/pipermail/dumux/attachments/20211005/489c5989/attachment-0003.obj > > > > ------------------------------ > > Message: 2 > Date: Tue, 5 Oct 2021 17:35:54 +0200 > From: Timo Koch <koch_t...@hotmail.com> > To: DuMuX User Forum <dumux@listserv.uni-stuttgart.de> > Subject: Re: [DuMux] How to stop a gas injection? > Message-ID: > < > am7pr01mb68993c46be95adaf7650552180...@am7pr01mb6899.eurprd01.prod.exchangelabs.com > > > > Content-Type: text/plain; charset="utf-8" > > Hi Kenza, > > in your problem you have a ?setTime? function. Do you actually call this > function in your main.cc <http://main.cc/>? > You have to tell the problem what the current time is at the beginning of > each time loop. > In an implicit Euler time stepping procedure you probably want to do > > problem->setTime(timeLoop->time() + timeLoop->timeStepSize()); > at the beginning of each time loop. > > Timo > > > On 5. Oct 2021, at 17:31, kenza bouznari <bouznari.ke...@gmail.com> > wrote: > > > > Hello everyone, > > > > How can I stop a gas injection from a source after a certain time? > > > > I already tried to follow the instructions in > dumux_course/exercises/exercise-runtimeparams. There must be something that > I am not implementing correctly and I couldn't found out what is it. > > > > PS: I am using 2p2c / chemicalnonequilibrium model. I attached the > problem.hh and the input file I'm using. > > > > Thanks for your help, > > Best regards > > > > KB > > > > > > <params.input><problem.hh>_______________________________________________ > > DuMux mailing list > > DuMux@listserv.uni-stuttgart.de > > https://listserv.uni-stuttgart.de/mailman/listinfo/dumux > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://listserv.uni-stuttgart.de/pipermail/dumux/attachments/20211005/269cbd96/attachment.htm > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > DuMux mailing list > DuMux@listserv.uni-stuttgart.de > https://listserv.uni-stuttgart.de/mailman/listinfo/dumux > > > ------------------------------ > > End of DuMux Digest, Vol 127, Issue 3 > ************************************* >
_______________________________________________ DuMux mailing list DuMux@listserv.uni-stuttgart.de https://listserv.uni-stuttgart.de/mailman/listinfo/dumux