-
Notifications
You must be signed in to change notification settings - Fork 277
Isostatic initial topography #7035
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
Open
lhy11009
wants to merge
1
commit into
geodynamics:main
Choose a base branch
from
lhy11009:initial_isostatic_topography
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
108 changes: 108 additions & 0 deletions
108
include/aspect/geometry_model/initial_topography_model/isostatic_topography.h
This file contains hidden or 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,108 @@ | ||
| #ifndef _aspect_geometry_model_initial_topography_model_isostatic_topography_h | ||
| #define _aspect_geometry_model_initial_topography_model_isostatic_topography_h | ||
|
|
||
| #include <aspect/geometry_model/initial_topography_model/interface.h> | ||
| #include <aspect/simulator_access.h> | ||
|
|
||
| namespace aspect | ||
| { | ||
| namespace InitialTopographyModel | ||
| { | ||
| /** | ||
| * An initial topography model that computes isostatic topography | ||
| * from the initial temperature and compositional fields by | ||
| * balancing the mass of vertical columns. | ||
| */ | ||
| template <int dim> | ||
| class IsostaticTopography : public SimulatorAccess<dim>, public Interface<dim> | ||
| { | ||
| public: | ||
| /** | ||
| * Constructor. | ||
| */ | ||
| IsostaticTopography(); | ||
|
|
||
| /** | ||
| * Perform basic initialization and verify that the selected | ||
| * geometry model is supported. | ||
| */ | ||
| void initialize() override; | ||
|
|
||
| /** | ||
| * Perform an additional initialization step after the material model, | ||
| * initial temperature model, initial composition model, gravity model, | ||
| * and adiabatic conditions have been initialized. | ||
| */ | ||
| void required_initialize() override; | ||
|
|
||
| /** | ||
| * Return the initial topography at the given surface point. | ||
| */ | ||
| double | ||
| value (const Point<dim-1> &surface_point) const override; | ||
|
|
||
|
|
||
| /** | ||
| * Return the maximum value of the initial topography. | ||
| */ | ||
| double | ||
| max_topography () const override; | ||
|
|
||
| /** | ||
| * Declare the parameters this class takes. | ||
| */ | ||
| static | ||
| void | ||
| declare_parameters (ParameterHandler &prm); | ||
|
|
||
| /** | ||
| * Read the parameters this class declares. | ||
| */ | ||
| void | ||
| parse_parameters (ParameterHandler &prm) override; | ||
|
|
||
|
|
||
| private: | ||
| /** | ||
| * Number of equally spaced lateral sampling points used to | ||
| * construct the isostatic topography profile. | ||
| */ | ||
| double n_lateral_points; | ||
|
|
||
| /** | ||
| * Number of equally spaced vertical sampling points used to | ||
| * integrate the mass of each column. | ||
| */ | ||
| unsigned n_vertical_points; | ||
|
|
||
| /** | ||
| * The depth above which the model is assumed to be in | ||
| * isostatic equilibrium, and where the reference density is evaluated | ||
| */ | ||
| double compensation_depth; | ||
|
|
||
| /** | ||
| * Maximum absolute value of the computed isostatic topography. | ||
| */ | ||
| double max_isostatic_topography; | ||
|
|
||
| /** | ||
| * The characteristic horizontal length scale (in m) over which | ||
| * topographic loads are assumed to attain isostatic compensation. | ||
| */ | ||
| double isostatic_length_scale; | ||
|
|
||
| /** | ||
| * Maximum computed initial topography. | ||
| */ | ||
| double maximal_topography; | ||
|
|
||
| /** | ||
| * Isostatic topography evaluated at the lateral sampling points. | ||
| */ | ||
| std::vector<double> topography; | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| #endif |
This file contains hidden or 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.
This is a small leftover. After the isostatic adjustment, the maximal depth changes from the value the adiabatic condition initiates and could lead to issues below region with positive topography and near the bottom boundary.