[Dune] Alugrid DGF
Simon Praetorius
simon.praetorius at tu-dresden.de
Thu Mar 17 08:25:38 CET 2022
Hi Ova,
I'm not an expert in the DGF reader/parser, but I would do it in a
second step by manual grid refinement:
1. Create the structured grid (either using DGF or any other method)
2. Mark elements in the corresponding part of the domain for refinement,
e.g.
for (auto const& e : elements(grid.leafGridView()) {
if (isInDomainPart(e.geometry().center())
grid.mark(1, e);
}
3. Adapt the grid, e.g.
grid.preAdapt();
grid.adapt();
grid.postAdapt();
4. Repeat steps 2-3 until grid is fine enough.
In my example, the `isInDomainPart(...)` function needs to be
specialized for your application.
Best,
Simon
Am 15.03.22 um 16:20 schrieb kenza bouznari:
> Hello,
>
> For my simulations I use Alugrid by reading an external file (attached):
> { using type = Dune::ALUGrid<3, 3, Dune::simplex, Dune::nonconforming>; };
> I want to know if it's possible to refine the mesh only around a part
> of my domain. If yes, how to apply it in my grid file (attached).
> Your guidance is much appreciated.
>
> Best regards,
>
> Ova
>
>
> _______________________________________________
> Dune mailing list
> Dune at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune
--
Dr. Simon Praetorius
Technische Universität Dresden
Institute of Scientific Computing
phone: +49 351 463-34432
mail: simon.praetorius at tu-dresden.de
web: https://tu-dresden.de/mn/math/wir/das-institut/beschaeftigte/simon-praetorius
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5204 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20220317/3e414c09/attachment.bin>
More information about the Dune
mailing list