forked from chaos-polymtl/lethe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tracer flow rate at boundaries (chaos-polymtl#1197)
Description An application of the tracer physics is to obtain the residence time distribution (RTD) of a flow through a domain. This PR adds the post-processing option that outputs the tracer flow rate at every boundary, providing the data for RTD analyses. In addition, a bug where the conditions to allow boundary conditions to update their values were too strict was rectified. Each physics is now responsible for deciding when to update their boundary conditions, and this condition was already based on whether boundary conditions were time-dependent. Co-authored-by: Amishga Alphonius <[email protected]> Co-authored-by: hepap <[email protected]> Former-commit-id: fd4481e
- Loading branch information
1 parent
c87b389
commit e15c232
Showing
14 changed files
with
423 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Running on 1 MPI rank(s)... | ||
Number of active cells: 64 | ||
Number of degrees of freedom: 243 | ||
Volume of triangulation: 0.04 | ||
Number of tracer degrees of freedom: 81 | ||
Tracer statistics : | ||
Min : 0 | ||
Max : 0.788675 | ||
Average : 0.0625 | ||
Std-Dev : 0.19432 | ||
------------------ | ||
Tracer flow rates | ||
------------------ | ||
Tracer flow rate at the boundaries: | ||
boundary 0: 8.2 | ||
boundary 1: 0 | ||
boundary 2: 0 | ||
boundary 3: 0 | ||
|
||
***************************** | ||
Steady iteration: 1/1 | ||
***************************** | ||
Tracer statistics : | ||
Min : 1 | ||
Max : 1 | ||
Average : 1 | ||
Std-Dev : 3.37941e-09 | ||
------------------ | ||
Tracer flow rates | ||
------------------ | ||
Tracer flow rate at the boundaries: | ||
boundary 0: 0.2 | ||
boundary 1: -0.200001 | ||
boundary 2: 9.02388e-10 | ||
boundary 3: 2.18592e-09 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
set dimension = 2 | ||
|
||
subsection simulation control | ||
set output frequency = 1 | ||
end | ||
|
||
subsection physical properties | ||
subsection fluid 0 | ||
set kinematic viscosity = 0.01 | ||
set tracer diffusivity = 1 | ||
end | ||
end | ||
|
||
subsection multiphysics | ||
set tracer = true | ||
end | ||
|
||
subsection mesh | ||
set type = dealii | ||
set grid type = subdivided_hyper_rectangle | ||
set grid arguments = 1, 1: -0.1, -0.1: 0.1, 0.1 : true | ||
set initial refinement = 3 | ||
end | ||
|
||
subsection boundary conditions | ||
set number = 4 | ||
set time dependent = true | ||
subsection bc 0 | ||
set id = 0 | ||
set type = function | ||
subsection u | ||
set Function expression = 1 | ||
end | ||
end | ||
subsection bc 1 | ||
set id = 1 | ||
set type = outlet | ||
end | ||
subsection bc 2 | ||
set id = 2 | ||
set type = noslip | ||
end | ||
subsection bc 3 | ||
set id = 3 | ||
set type = noslip | ||
end | ||
end | ||
|
||
subsection boundary conditions tracer | ||
set number = 1 | ||
subsection bc 0 | ||
set id = 0 | ||
set type = dirichlet | ||
subsection dirichlet | ||
set Function expression = 1 | ||
end | ||
end | ||
end | ||
|
||
subsection post-processing | ||
set verbosity = verbose | ||
set calculate tracer statistics = true | ||
set tracer statistics name = tracer_statistics | ||
set calculate tracer flow rate = true | ||
set tracer flow rate name = tracer_flow_rate_test | ||
end | ||
|
||
subsection non-linear solver | ||
subsection fluid dynamics | ||
set verbosity = quiet | ||
set tolerance = 1e-4 | ||
set max iterations = 10 | ||
end | ||
subsection tracer | ||
set verbosity = quiet | ||
set tolerance = 1e-7 | ||
set max iterations = 30 | ||
end | ||
end | ||
|
||
subsection linear solver | ||
subsection fluid dynamics | ||
set verbosity = quiet | ||
end | ||
subsection tracer | ||
set verbosity = quiet | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.