Skip to content

Commit

Permalink
Make dcdd shock capture optional for heat transfer (chaos-polymtl#1268)
Browse files Browse the repository at this point in the history
Description
DCDD stabilization was always used for the heat equation. DCDD usage sometimes lead to results that were not expected. More investigation will be needed in the future to understand what is the effect of adding the DCDD stabilization.

DCDD is now disabled by default. A new assembler has been created in order to take it into account.

Testing
Modified existing tests using heat transfer.

Co-authored-by: Bruno Blais <blais.bruno@gmail.com>
Former-commit-id: b6090ce
  • Loading branch information
mivaia and blaisb authored Sep 7, 2024
1 parent ce65d07 commit ec52f77
Show file tree
Hide file tree
Showing 21 changed files with 845 additions and 685 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to the Lethe project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/).

## [Master] - 2024-08-29

### Changed

- MINOR Rendered discontinuity-capturing directional dissipation optional for the heat transfer. [#1268](https://github.com/chaos-polymtl/lethe/pull/1268)

## [Master] - 2024-08-27

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,43 @@ Initial condition using average velocity profile
Number of thermal degrees of freedom: 4225
Number of VOF degrees of freedom: 4225
Temperature statistics on fluid :
Min : 0
Max : 0.788675
Average : 0.00769043
Std-Dev : 0.0709978
Min : 0
Max : 0.788675
Average : 0.00769043
Std-Dev : 0.0709978

*******************************************************************************
Transient iteration: 1 Time: 0.1 Time step: 0.1 CFL: 0
*******************************************************************************
Temperature statistics on fluid :
Min : 2.7801e-17
Max : 0.946974
Average : 0.0360919
Std-Dev : 0.136556
Min : 2.2789e-17
Max : 0.922141
Average : 0.0310477
Std-Dev : 0.121336

*******************************************************************************
Transient iteration: 2 Time: 0.2 Time step: 0.1 CFL: 5.27749
*******************************************************************************
Temperature statistics on fluid :
Min : 2.98746e-16
Max : 0.976436
Average : 0.0532096
Std-Dev : 0.165839
Min : 2.4991e-16
Max : 0.964069
Average : 0.0460612
Std-Dev : 0.14901

*******************************************************************************
Transient iteration: 3 Time: 0.3 Time step: 0.1 CFL: 15.8325
*******************************************************************************
Temperature statistics on fluid :
Min : 1.99946e-15
Max : 0.982787
Average : 0.0654717
Std-Dev : 0.182144
Min : 1.67295e-15
Max : 0.976503
Average : 0.0579197
Std-Dev : 0.166727

*******************************************************************************
Transient iteration: 4 Time: 0.4 Time step: 0.1 CFL: 15.8325
*******************************************************************************
Temperature statistics on fluid :
Min : 1.0449e-14
Max : 0.985964
Average : 0.0758285
Std-Dev : 0.194116
Min : 8.70109e-15
Max : 0.982048
Average : 0.0681518
Std-Dev : 0.179897
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Enstrophy : 299.29
Kinetic energy : 0.0039173

*******************************************************************************
Transient iteration: 4 Time: 0.004 Time step: 0.001 CFL: 0.309984
Transient iteration: 4 Time: 0.004 Time step: 0.001 CFL: 0.309985
*******************************************************************************
Enstrophy : 513.68
Kinetic energy : 0.0079425
Enstrophy : 513.69
Kinetic energy : 0.0079426

*******************************************************************************
Transient iteration: 5 Time: 0.005 Time step: 0.001 CFL: 0.403155
Transient iteration: 5 Time: 0.005 Time step: 0.001 CFL: 0.403157
*******************************************************************************
Enstrophy : 705.36
Kinetic energy : 0.012344
8 changes: 4 additions & 4 deletions applications_tests/lethe-fluid/heat_transfer_ale_bar.output
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Running on 1 MPI rank(s)...
*****************************
Steady iteration: 1/1
*****************************
L2 error velocity : 3.99229e-09
L2 error temperature : 3.66401e-17
L2 error velocity : 3.90823e-09
L2 error temperature : 3.53821e-17
cells error_velocity error_pressure
1024 3.992290e-09 - 5.353477e-08 -
1024 3.908229e-09 - 5.203464e-08 -
cells error_temperature
1024 3.664015e-17 -
1024 3.538213e-17 -
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ Total pressure drop: 0.000387415 Pa
*********************************************************************************
Transient iteration: 4 Time: 0.04 Time step: 0.01 CFL: 0.00018059
*********************************************************************************
Pressure drop: -5.18862e-05 Pa
Total pressure drop: -5.18862e-05 Pa
Pressure drop: -5.18939e-05 Pa
Total pressure drop: -5.18939e-05 Pa
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ Total pressure drop: -0.000383511 Pa
**********************************************************************************
Transient iteration: 4 Time: 0.04 Time step: 0.01 CFL: 0.000178358
**********************************************************************************
Pressure drop: 7.23862e-06 Pa
Total pressure drop: 7.23862e-06 Pa
Pressure drop: 7.24257e-06 Pa
Total pressure drop: 7.24257e-06 Pa
Loading

0 comments on commit ec52f77

Please sign in to comment.