-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement temperature-dependant solid domain contraints in VOF #1048
Merged
+712
−104
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
450fd58
Implement temperature-dependant solid domain contraints in VOF
AmishgaAlphonius 107c55d
Correct typos
AmishgaAlphonius 69b8ecb
Rename subsection and function
AmishgaAlphonius 6f0317c
Apply suggestions from code review
AmishgaAlphonius 5e96906
Apply suggestions from code review
AmishgaAlphonius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
62 changes: 62 additions & 0 deletions
62
applications_tests/lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain.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,62 @@ | ||
Running on 1 MPI rank(s)... | ||
Number of active cells: 256 | ||
Number of degrees of freedom: 867 | ||
Volume of triangulation: 0.0625 | ||
Number of thermal degrees of freedom: 289 | ||
Number of VOF degrees of freedom: 289 | ||
Pressure drop: 0 Pa | ||
Total pressure drop: 0 Pa | ||
|
||
--------------- | ||
VOF Barycenter | ||
--------------- | ||
time x_vof y_vof vx_vof vy_vof | ||
0.000000 0.125000 0.058681 0.000000 0.000000 | ||
|
||
******************************************************************************* | ||
Transient iteration: 1 Time: 0.1 Time step: 0.1 CFL: 0 | ||
******************************************************************************* | ||
Pressure drop: -0.366978 Pa | ||
Total pressure drop: -0.366978 Pa | ||
|
||
--------------- | ||
VOF Barycenter | ||
--------------- | ||
time x_vof y_vof vx_vof vy_vof | ||
0.100000 0.125000 0.058681 -0.000009 -0.000023 | ||
|
||
********************************************************************************* | ||
Transient iteration: 2 Time: 0.2 Time step: 0.1 CFL: 0.00412505 | ||
********************************************************************************* | ||
Pressure drop: -0.367039 Pa | ||
Total pressure drop: -0.367039 Pa | ||
|
||
--------------- | ||
VOF Barycenter | ||
--------------- | ||
time x_vof y_vof vx_vof vy_vof | ||
0.200000 0.124998 0.058682 -0.000002 0.000006 | ||
|
||
********************************************************************************* | ||
Transient iteration: 3 Time: 0.3 Time step: 0.1 CFL: 0.00230552 | ||
********************************************************************************* | ||
Pressure drop: -0.367051 Pa | ||
Total pressure drop: -0.367051 Pa | ||
|
||
--------------- | ||
VOF Barycenter | ||
--------------- | ||
time x_vof y_vof vx_vof vy_vof | ||
0.300000 0.124995 0.058684 0.000003 0.000031 | ||
|
||
******************************************************************************** | ||
Transient iteration: 4 Time: 0.4 Time step: 0.1 CFL: 0.0016325 | ||
******************************************************************************** | ||
Pressure drop: -0.367145 Pa | ||
Total pressure drop: -0.367145 Pa | ||
|
||
--------------- | ||
VOF Barycenter | ||
--------------- | ||
time x_vof y_vof vx_vof vy_vof | ||
0.400000 0.124992 0.058687 0.000002 0.000032 |
231 changes: 231 additions & 0 deletions
231
applications_tests/lethe-fluid/heat_transfer_vof_phase_change_constrain_solid_domain.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,231 @@ | ||
# Listing of Parameters | ||
#---------------------- | ||
|
||
set dimension = 2 | ||
|
||
#--------------------------------------------------- | ||
# Simulation Control | ||
#--------------------------------------------------- | ||
|
||
subsection simulation control | ||
set method = bdf1 | ||
set time end = 0.4 | ||
set time step = 0.1 | ||
set output frequency = 1 | ||
AmishgaAlphonius marked this conversation as resolved.
Show resolved
Hide resolved
|
||
end | ||
|
||
#--------------------------------------------------- | ||
# Multiphysics | ||
#--------------------------------------------------- | ||
|
||
subsection multiphysics | ||
set heat transfer = true | ||
set fluid dynamics = true | ||
set VOF = true | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Initial condition | ||
#--------------------------------------------------- | ||
|
||
subsection initial conditions | ||
subsection temperature | ||
set Function expression = (40-25)*(0.25-x)*4+25 | ||
end | ||
subsection VOF | ||
set Function expression = if(y>=0.125, 0, 1) | ||
end | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Source term | ||
#--------------------------------------------------- | ||
|
||
subsection source term | ||
subsection xyz | ||
set Function expression = 5 ; 0 ; 0 | ||
end | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Physical Properties | ||
#--------------------------------------------------- | ||
|
||
subsection physical properties | ||
set number of fluids = 2 | ||
set reference temperature = 30 | ||
subsection fluid 0 | ||
set thermal conductivity = 0.5 | ||
set thermal expansion model = phase_change | ||
set rheological model = phase_change | ||
set specific heat model = phase_change | ||
subsection phase change | ||
set latent enthalpy = 200 | ||
set liquidus temperature = 30 | ||
set solidus temperature = 29.8 | ||
set viscosity liquid = 0.0001 | ||
set viscosity solid = 10 | ||
end | ||
end | ||
subsection fluid 1 | ||
set thermal conductivity = 0.5 | ||
set thermal expansion model = phase_change | ||
set rheological model = phase_change | ||
set specific heat model = phase_change | ||
subsection phase change | ||
set latent enthalpy = 200 | ||
set liquidus temperature = 35 | ||
set solidus temperature = 34.8 | ||
set viscosity liquid = 0.0001 | ||
set viscosity solid = 10 | ||
end | ||
end | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Mesh | ||
#--------------------------------------------------- | ||
|
||
subsection mesh | ||
set type = dealii | ||
set grid type = hyper_cube | ||
set grid arguments = 0 : 0.25 : true | ||
set initial refinement = 4 | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Boundary Conditions | ||
#--------------------------------------------------- | ||
|
||
subsection boundary conditions | ||
set number = 4 | ||
subsection bc 0 | ||
set id = 0 | ||
set type = noslip | ||
end | ||
subsection bc 1 | ||
set id = 1 | ||
set type = noslip | ||
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 heat transfer | ||
set number = 2 | ||
subsection bc 0 | ||
set id = 0 | ||
set type = temperature | ||
subsection value | ||
set Function expression = 40 | ||
end | ||
end | ||
subsection bc 1 | ||
set id = 1 | ||
set type = temperature | ||
subsection value | ||
set Function expression = 25 | ||
end | ||
end | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Constrain Stasis | ||
#--------------------------------------------------- | ||
|
||
subsection constrain stasis | ||
set enable = true | ||
set number of constraints = 2 | ||
subsection constraint 0 | ||
set fluid id = 0 | ||
set phase fraction tolerance = 1e-4 | ||
set min temperature = 0 | ||
set max temperature = 29 | ||
end | ||
subsection constraint 1 | ||
set fluid id = 1 | ||
set phase fraction tolerance = 1e-4 | ||
set min temperature = 0 | ||
set max temperature = 34 | ||
end | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Post-processing | ||
#--------------------------------------------------- | ||
|
||
subsection post-processing | ||
set verbosity = verbose | ||
set calculate pressure drop = true | ||
set calculate mass conservation = false | ||
AmishgaAlphonius marked this conversation as resolved.
Show resolved
Hide resolved
|
||
set calculate barycenter = true | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Non-Linear Solver Control | ||
#--------------------------------------------------- | ||
|
||
subsection non-linear solver | ||
subsection fluid dynamics | ||
set tolerance = 1e-4 | ||
set max iterations = 5 | ||
set verbosity = quiet | ||
end | ||
subsection heat transfer | ||
set tolerance = 1e-3 | ||
set max iterations = 20 | ||
set verbosity = quiet | ||
end | ||
subsection VOF | ||
set tolerance = 1e-9 | ||
set max iterations = 20 | ||
set verbosity = quiet | ||
end | ||
end | ||
|
||
#--------------------------------------------------- | ||
# Linear Solver Control | ||
#--------------------------------------------------- | ||
|
||
subsection linear solver | ||
subsection fluid dynamics | ||
set verbosity = quiet | ||
set method = gmres | ||
set max iters = 1000 | ||
set relative residual = 1e-3 | ||
set minimum residual = 1e-5 | ||
set preconditioner = ilu | ||
set ilu preconditioner fill = 0 | ||
set ilu preconditioner absolute tolerance = 1e-12 | ||
set ilu preconditioner relative tolerance = 1.00 | ||
set max krylov vectors = 1000 | ||
end | ||
subsection heat transfer | ||
set verbosity = quiet | ||
set method = gmres | ||
set max iters = 1000 | ||
set relative residual = 1e-3 | ||
set minimum residual = 1e-5 | ||
set preconditioner = ilu | ||
set ilu preconditioner fill = 0 | ||
set ilu preconditioner absolute tolerance = 1e-12 | ||
set ilu preconditioner relative tolerance = 1.00 | ||
end | ||
subsection VOF | ||
set verbosity = quiet | ||
set method = gmres | ||
set max iters = 1000 | ||
set relative residual = 1e-3 | ||
set minimum residual = 1e-10 | ||
set preconditioner = ilu | ||
set ilu preconditioner fill = 0 | ||
set ilu preconditioner absolute tolerance = 1e-12 | ||
set ilu preconditioner relative tolerance = 1.00 | ||
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can add also the average velocity? I think the test is still good, but maybe velocity could be a good metric too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it before, but the average velocity doesn't print anything .-.