-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from JuliaGeodynamics/bk-phase-diagrams-melt
Test for phase diagrams
- Loading branch information
Showing
11 changed files
with
4,336 additions
and
25 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
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,27 @@ | ||
# This sets default parameters, depending on various combinations of input patameters | ||
|
||
""" | ||
model = UpdateDefaultParameters(model::Model) | ||
This updates the default parameters depending on some of the input parameters. | ||
If you activate passive tracers, for example, it will also activate output for that | ||
""" | ||
function UpdateDefaultParameters(model::Model) | ||
|
||
# If PhaseTransitions are defined, we generally want this to be activated in computations | ||
if !isempty(model.Materials.PhaseTransitions) | ||
model.SolutionParams.Phasetrans = 1 | ||
end | ||
|
||
# If PassiveTracers are defined, we generally want this to be visualized as well: | ||
if model.PassiveTracers.Passive_Tracer==1 | ||
|
||
model.Output.out_ptr=1 | ||
model.Output.out_ptr_ID=1 | ||
model.Output.out_ptr_phase=1 | ||
model.Output.out_ptr_Pressure=1 | ||
model.Output.out_ptr_Temperature=1 | ||
end | ||
|
||
return model | ||
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
Oops, something went wrong.