Re: [DuMux] DuMux Digest, Vol 127, Issue 3

2021-10-05 Thread kenza bouznari
Dear Timo,

Thank you for your response. It works now!

Kenza,

Le mar. 5 oct. 2021 à 11:36,  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 
> 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 
> To: DuMuX User Forum 
> 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 
> 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
> >
> >
> > ___
> > 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


Re: [DuMux] How to setup dumux in an IDE?

2021-10-05 Thread Christoph Grüninger

Hi Siroos,
you have to run dunecontrol for all your modules first. Then you can use 
an IDE for DuMuX and it should be able to build a specific target.


If you use clangd, even the auto-completion should kind of work. I have 
never tried it myself, but I read about it.


Bye
Christoph


Am 04.10.21 um 08:33 schrieb Siroos Azizmohammadi:

Dear Christoph,

Thank you for your reply and the instructions.
As you mentioned, the dependencies to Dune modules cause problems when 
trying to setup Dumux with IDEs. I have tried Qt with a similar 
procedure you explained but FindPkgConfig.cmake cannot find the Dune 
packages and not start the Dune project even if Qt6 fully supports CMake.


Best regards - Siroos

___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


Re: [DuMux] How to stop a gas injection?

2021-10-05 Thread Timo Koch
Hi Kenza,

in your problem you have a “setTime” function. Do you actually call this 
function in your 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  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
> 
> 
> ___
> DuMux mailing list
> DuMux@listserv.uni-stuttgart.de
> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


[DuMux] How to stop a gas injection?

2021-10-05 Thread kenza bouznari
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
Description: Binary data


problem.hh
Description: Binary data
___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux