-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description Previously, the tracer physics used with the Sharp IB solver could not consider material dependent physical properties: both fluid and solid had the same diffusivity. Now, physical properties of immersed solids are defined using the solid 0 section, though only one solid can be used at the moment. A tracer diffusivity model based on the signed distance function used in the Sharp IB has been added, which allows to smooth the diffusivity transition at the fluid/solid interface. The architecture is there for future models and could serve as a base for reactive physics models used in heterogeneous catalysis. Testing [tests/core/immersed_solid_diffusivity_tanh] Unit test for the tanh diffusivity transition model. [applications_tests/lethe-fluid-sharp/tracer_around_sphere] 2D application test where the tracer physics is used with the Sharp IB solver. This also tests the new diffusivity model. Documentation [doc/source/parameters/cfd/physical_properties] The new model has been added in new section where immersed solids models will be added in the future. Co-authored-by: hepap <47506601+hepap@users.noreply.github.com> Co-authored-by: Bruno Blais <blais.bruno@gmail.com>
- Loading branch information
1 parent
49a2616
commit e7bfe64
Showing
22 changed files
with
641 additions
and
45 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
34 changes: 34 additions & 0 deletions
34
applications_tests/lethe-fluid-sharp/tracer_around_sphere.output
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,34 @@ | ||
Running on 1 MPI rank(s)... | ||
Number of active cells: 128 | ||
Number of degrees of freedom: 459 | ||
Volume of triangulation: 0.5 | ||
Number of tracer degrees of freedom: 153 | ||
Initial refinement around IB particles - Step : 1 of 3 | ||
Number of active cells: 176 | ||
Number of degrees of freedom: 627 | ||
Volume of triangulation: 0.5 | ||
Number of tracer degrees of freedom: 209 | ||
Initial refinement around IB particles - Step : 2 of 3 | ||
Number of active cells: 284 | ||
Number of degrees of freedom: 987 | ||
Volume of triangulation: 0.5 | ||
Number of tracer degrees of freedom: 329 | ||
Initial refinement around IB particles - Step : 3 of 3 | ||
Number of active cells: 500 | ||
Number of degrees of freedom: 1719 | ||
Volume of triangulation: 0.5 | ||
Number of tracer degrees of freedom: 573 | ||
Tracer statistics : | ||
Min : 0 | ||
Max : 0.7887 | ||
Average : 0.01367 | ||
Std-Dev : 0.09216 | ||
|
||
***************************** | ||
Steady iteration: 1/1 | ||
***************************** | ||
Tracer statistics : | ||
Min : -0.0071 | ||
Max : 1.007 | ||
Average : 0.441 | ||
Std-Dev : 0.3645 |
133 changes: 133 additions & 0 deletions
133
applications_tests/lethe-fluid-sharp/tracer_around_sphere.prm
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,133 @@ | ||
set dimension = 2 | ||
|
||
subsection simulation control | ||
set method = steady | ||
set output frequency = 0 | ||
set log precision = 4 | ||
end | ||
|
||
subsection FEM | ||
set velocity order = 1 | ||
set pressure order = 1 | ||
end | ||
|
||
subsection physical properties | ||
set number of fluids = 1 | ||
subsection fluid 0 | ||
set kinematic viscosity = 0.01 | ||
set tracer diffusivity model = immersed solid tanh | ||
subsection immersed solid tanh | ||
set tracer diffusivity inside = 0 | ||
set tracer diffusivity outside = 1e-5 | ||
set thickness = 0.005 | ||
end | ||
end | ||
end | ||
|
||
subsection multiphysics | ||
set fluid dynamics = true | ||
set tracer = true | ||
end | ||
|
||
subsection mesh | ||
set type = dealii | ||
set grid type = subdivided_hyper_rectangle | ||
set grid arguments = 2, 1: -1.25, -0.25: -0.25, 0.25: true | ||
set initial refinement = 3 | ||
end | ||
|
||
subsection boundary conditions | ||
set number = 4 | ||
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 = if(y>0,1,0) | ||
end | ||
end | ||
end | ||
|
||
subsection post-processing | ||
set verbosity = verbose | ||
set calculate tracer statistics = true | ||
set tracer statistics name = tracer_statistics | ||
end | ||
|
||
subsection particles | ||
set number of particles = 1 | ||
set assemble Navier-Stokes inside particles = false | ||
|
||
subsection extrapolation function | ||
set stencil order = 1 | ||
end | ||
subsection output | ||
set calculate force = false | ||
end | ||
subsection local mesh refinement | ||
set initial refinement = 3 | ||
set refine mesh inside radius factor = 1 | ||
set refine mesh outside radius factor = 1 | ||
end | ||
subsection particle info 0 | ||
set type = sphere | ||
set shape arguments = 0.06 | ||
subsection position | ||
set Function expression = -0.75; 0 | ||
end | ||
end | ||
end | ||
|
||
subsection mesh adaptation | ||
set type = kelly | ||
set variable = pressure | ||
set fraction type = number | ||
set max number elements = 200000000 | ||
set max refinement level = 6 | ||
set min refinement level = 0 | ||
set frequency = 0 | ||
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
Oops, something went wrong.