Transient mesh refinement for heat equation

Numerical methods and mathematical models of Elmer
Post Reply
PierreAntonetti
Posts: 22
Joined: 06 Oct 2023, 14:31
Antispam: Yes

Transient mesh refinement for heat equation

Post by PierreAntonetti »

Hi,

I can't find any example which handle a thermal simulation with amr time-stepping strategy.
When activating the amr, the vtu meshes (generated using ResultOutputs solver) do not contains the adapted mesh (only the original). How to make the adapted mesh be the current mesh ?

Thanks.
kevinarden
Posts: 2316
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Transient mesh refinement for heat equation

Post by kevinarden »

16.3 Keywords related to the adaptive solution

Adaptive Save Mesh = Logical True

https://www.nic.funet.fi/pub/sci/physic ... Manual.pdf
PierreAntonetti
Posts: 22
Joined: 06 Oct 2023, 14:31
Antispam: Yes

Re: Transient mesh refinement for heat equation

Post by PierreAntonetti »

Hi Kevin,

Thanks for helping. I already tried that in the Solver HeatSolve section :

Code: Select all

!Adaptive Mesh Refinement = True
Adaptive Remesh = False ! cause the mesh is generated with gmsh, so need to use the RGB alogorith
Adaptive Save Mesh = True
with the following in the Simulation section :

Code: Select all

Simulation Type = Transient
Steady State Max Iterations = 5
Unfortunately I didn't see the mesh changing.

I have the same problem when using the Timestepping mode :

Code: Select all

Adaptative Timestepping = Logical True
Adaptative Time Error = Real 1.0e-3
Adaptative Min Timestep = Real 0.1
Adaptative Max Timestep = Real 120
I'd like to get a coupling adaptative mesh refinement and timestepping strategies.

Thanks.
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Transient mesh refinement for heat equation

Post by Rich_B »

Hello,

To get specific advice, it usually helps to post a working example, with sif file, geometry file, and how to generate the mesh. For gmsh, add the *.msh file, or add the *.geo file with meshing instructions. Compress the files into an archive and attach to your post. The forum allows up to 3 attachments per post, up to 1 MB per attachment.

Rich.
PierreAntonetti
Posts: 22
Joined: 06 Oct 2023, 14:31
Antispam: Yes

Re: Transient mesh refinement for heat equation

Post by PierreAntonetti »

Hi Rich,

Sorry, i'm new in this forum ;-)

Here the attached zip file. The mesh was generated with gmsh and converted with "ElmerGrid 14 2" and apply ViewFactors

Thanks
Attachments
case.zip
(45.61 KiB) Downloaded 37 times
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Transient mesh refinement for heat equation

Post by Rich_B »

Hello Pierre,

Attached is an archive with two modified sif files, one without AMR, the other with AMR.

Hope this helps.

Rich.

Edit: the two sif files are for steady state solutions.
Attachments
HeatEqAutoMeshRefinement.zip
(134.79 KiB) Downloaded 32 times
Last edited by Rich_B on 13 Oct 2023, 17:30, edited 1 time in total.
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Transient mesh refinement for heat equation

Post by Rich_B »

and here are three screenshots, showing auto refinement steps zero, one, and then step ten.

Rich.
refine0.png
refine0.png (27.6 KiB) Viewed 572 times
refine1.png
refine1.png (28.76 KiB) Viewed 572 times
refine10.png
refine10.png (46.66 KiB) Viewed 572 times
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Transient mesh refinement for heat equation

Post by Rich_B »

Hello,

Attached are two sif files that use the original mesh files. These two sif files are transient solutions, one without amr, the other with amr.

Rich.
Attachments
case-trans-amr-yes.sif
(3.93 KiB) Downloaded 32 times
case-trans-amr-no.sif
(3.95 KiB) Downloaded 32 times
Post Reply