Re: [DuMux] Calculate solution at a given position

2024-02-19 Thread Etienne Ahusborde

Dear Timo,

Thanks for your reply.

I will try your proposal.

Regards

Etienne

Le 18/02/2024 à 00:36, Timo Koch a écrit :

Dear Etienne,

yes there is. But it’s not direct. You can use evalSolution (from 
dumux/discretization/evalsolution.hh) but for that you need an element.
To find the element that your designated point is in you can use the 
boundingBoxTree of the gridView for an efficient query.
In dumux/geometry/intersectingentities.hh you find 
intersectingEntities, which you can use similar to this


|auto entities = intersectingEntities(point, 
|gridGeometry.boundingBoxTree())

auto element = gridGeometry.element(entities[0]);

to get the element that contains your point.

Best wishes
Timo


On 13 Feb 2024, at 12:10, Michel Kern  wrote:

Bonne question,  je ne trouve pas non plus a+
Michel

Envoyé depuis mon appareil Galaxy


 Message d'origine 
De : Etienne Ahusborde 
Date : 13/02/2024 10:34 (GMT+01:00)
À : dumux@listserv.uni-stuttgart.de
Objet : [DuMux] Calculate solution at a given position

Dear Users,

I'd like to inquire whether there's a feature in DuMuX that can
calculate a specific quantity, such as pressure, at a designated point.

Thanks in advance

Regards

Etienne

___
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 mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


Re: [DuMux] Calculate solution at a given position

2024-02-17 Thread Timo Koch
Dear Etienne,

yes there is. But it’s not direct. You can use evalSolution (from 
dumux/discretization/evalsolution.hh) but for that you need an element.
To find the element that your designated point is in you can use the 
boundingBoxTree of the gridView for an efficient query.
In dumux/geometry/intersectingentities.hh you find intersectingEntities, which 
you can use similar to this

auto entities = intersectingEntities(point, gridGeometry.boundingBoxTree())
auto element = gridGeometry.element(entities[0]);

to get the element that contains your point.

Best wishes
Timo

On 13 Feb 2024, at 12:10, Michel Kern  wrote:

Bonne question,  je ne trouve pas non plus a+
Michel

Envoyé depuis mon appareil Galaxy


 Message d'origine 
De : Etienne Ahusborde 
Date : 13/02/2024 10:34 (GMT+01:00)
À : dumux@listserv.uni-stuttgart.de
Objet : [DuMux] Calculate solution at a given position

Dear Users,

I'd like to inquire whether there's a feature in DuMuX that can
calculate a specific quantity, such as pressure, at a designated point.

Thanks in advance

Regards

Etienne

___
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 mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


Re: [DuMux] Calculate solution at a given position

2024-02-13 Thread Michel Kern
Sorry, was intended to be private. Sorry for the double noiseMichel KernEnvoyé 
depuis mon appareil Galaxy
 Message d'origine De : Michel Kern  Date 
: 13/02/2024  12:10  (GMT+01:00) À : DuMux User Mailing List 
 Objet : Re: [DuMux] Calculate solution at a 
given position Bonne question,  je ne trouve pas non plus a+MichelEnvoyé depuis 
mon appareil Galaxy Message d'origine De : Etienne Ahusborde 
 Date : 13/02/2024  10:34  (GMT+01:00) À : 
dumux@listserv.uni-stuttgart.de Objet : [DuMux] Calculate solution at a given 
position Dear Users,I'd like to inquire whether there's a feature in DuMuX that 
can calculate a specific quantity, such as pressure, at a designated 
point.Thanks in 
advanceRegardsEtienne___DuMux 
mailing 
listdu...@listserv.uni-stuttgart.dehttps://listserv.uni-stuttgart.de/mailman/listinfo/dumux___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux


Re: [DuMux] Calculate solution at a given position

2024-02-13 Thread Michel Kern
Bonne question,  je ne trouve pas non plus a+MichelEnvoyé depuis mon appareil 
Galaxy
 Message d'origine De : Etienne Ahusborde 
 Date : 13/02/2024  10:34  (GMT+01:00) À : 
dumux@listserv.uni-stuttgart.de Objet : [DuMux] Calculate solution at a given 
position Dear Users,I'd like to inquire whether there's a feature in DuMuX that 
can calculate a specific quantity, such as pressure, at a designated 
point.Thanks in 
advanceRegardsEtienne___DuMux 
mailing 
listdu...@listserv.uni-stuttgart.dehttps://listserv.uni-stuttgart.de/mailman/listinfo/dumux___
DuMux mailing list
DuMux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux