-
Notifications
You must be signed in to change notification settings - Fork 0
[c1]: rename to c1TIF; add documentation #78
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
Merged
Merged
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
There are no files selected for viewing
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
debrisframe/c1Tif/c1TifCfg.ini → debrisframe/c1TIF/c1TIFCfg.ini
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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,92 @@ | ||
| c1TIF: thickness integrated flow module | ||
| ======================================= | ||
|
|
||
| :py:mod:`c1TIF` is a module for debris flow computations using thickness integration. | ||
| c1TIF executes `AvaFrame::com1DFA <https://docs.avaframe.org/en/latest/moduleCom1DFA.html>`_ with | ||
| overwriting various parameters and adding debris-flow related features. | ||
| Calculations are based on the thickness integrated governing equations and | ||
| solved numerically using the smoothed particle hydrodynamics (sph) method. Please note | ||
| the use of *thickness averaged/integrated* instead of *depth averaged/integrated* for clarity and consistency. | ||
|
|
||
| Thickness integrated flow simulations can be performed for different release scenarios, with or without | ||
| entrainment and/or resistance areas, and is controlled via a configuration file. | ||
| The configuration can be modified in order to change any of the default settings and also allows | ||
| to perform simulations for varying parameters all at once. | ||
|
|
||
| .. Note:: | ||
| We provide the documentation of the most important debris flow related features here, | ||
| for the entire documentation we refer to the | ||
| `AvaFrame documentation <https://docs.avaframe.org/en/latest/moduleCom1DFA.html>`_. | ||
|
|
||
|
|
||
| .. Note:: | ||
| The configuration parameters are still under development. | ||
|
|
||
| Input | ||
| --------- | ||
|
|
||
| c1TIF simulations are performed within a process directory, organized with the | ||
| folder structure described in the `AvaFrame documentation <https://docs.avaframe.org/en/latest/moduleCom1DFA.html#input>`_. | ||
| Regarding the release- and entrainment thickness settings we refer to the | ||
| `respective AvaFrame section <https://docs.avaframe.org/en/latest/moduleCom1DFA.html#release-entrainment-thickness-settings>`_. | ||
| Note that option 3 (thickness set via time dependent release file) is the default setting in c1TIF. | ||
| This option is used for hydrographs as input. | ||
|
|
||
|
|
||
| Friction parameters | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
| The available friction models are described | ||
| `here <https://docs.avaframe.org/en/latest/theoryCom1DFA.html#friction-model>`_. | ||
|
|
||
|
|
||
| Erosion, Deposition, adaptive topography | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| When `entrainment <https://docs.avaframe.org/en/latest/theoryCom1DFA.html#entrainment>`_, | ||
| `detrainment <https://docs.avaframe.org/en/latest/theoryCom1DFA.html#detrainment>`_ | ||
| or stopping (flow velocity is zero) occurs and the respective flags `adaptSfcEntrainment`, | ||
| `adaptSfcDetrainment` and `adaptSfcStopped` are switched on, the surface is adapted accordingly | ||
| (see the `AvaFrame adaptive topography documentation <https://docs.avaframe.org/en/latest/theoryCom1DFA.html#adaptive-surface>`_). | ||
| Additionally, the deposition can be erodible if `entrainableDeposition` is switched on. | ||
|
|
||
|
|
||
| Model configuration | ||
| -------------------- | ||
| The model configuration is read from a configuration file: ``c1TIF/c1TIFCfg.ini``. In this file, | ||
| all model parameters are listed and can be modified. These parameters overwrite the respective parameters | ||
| of AvaFrame's `com1DFACfg.ini` configuration file. We recommend to create a local copy | ||
| and keep the default configuration in ``c1TIF/c1TIFCfg.ini`` untouched. | ||
| For this purpose, in ``DebrisFrame/debrisframe/`` run: | ||
|
|
||
| :: | ||
|
|
||
| cp c1TIF/c1TIFCfg.ini c1TIF/local_c1TIFCfg.ini | ||
|
|
||
| and modify the parameter values in there. | ||
|
|
||
| It is also possible to perform multiple simulations at once, with varying input parameters. | ||
|
|
||
|
|
||
| Output | ||
| --------- | ||
| The simulation results are saved to: *Outputs/com1DFA*. | ||
| The description of the default and optional results are in the `AvaFrame documentation <https://docs.avaframe.org/en/latest/moduleCom1DFA.html#output>`_. | ||
|
|
||
|
|
||
| To run | ||
| -------- | ||
|
|
||
| * first go to ``DebrisFrame/debrisframe`` | ||
| * copy ``debrisframeCfg.ini`` to ``local_debrisframeCfg.ini`` and set your desired process directory name | ||
| * create a process directory with required input files | ||
| * copy ``c1TIF/c1TIFCfg.ini`` to ``c1TIF/local_c1TIFCfg.ini`` and if desired change configuration settings | ||
|
|
||
| * run: | ||
| :: | ||
|
|
||
| pixi run python runC1TIF.py | ||
|
|
||
|
|
||
| Theory | ||
| -------- | ||
| The theory and numerics of the thickness integrated flow model can be found in the | ||
| `AvaFrame documentation: com1DFA Theory <https://docs.avaframe.org/en/latest/theoryCom1DFA.html>`_. |
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.
Uh oh!
There was an error while loading. Please reload this page.