diff --git a/contrib/world_builder/CHANGELOG.md b/contrib/world_builder/CHANGELOG.md index 78373f4ce14..4b380dbda06 100644 --- a/contrib/world_builder/CHANGELOG.md +++ b/contrib/world_builder/CHANGELOG.md @@ -9,6 +9,17 @@ Add new entries a the bottom of the current list in the subheading. Item format: This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.0] +### Added +- Added the ability to calculate the water content within the oceanic plate feature and the subducting plate feature. The implementation samples the temperature within the feature, calculates a lithostatic pressure, and determines the water content using parameterized phase diagrams for 4 different lithologies: sediment, mid ocean ridge basalt (MORB), gabbro, and peridotite from [Tian et al., 2019](https://doi.org/10.1029/2019GC008488). \[Daniel Douglas; 2024-08-20; [#661](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/661)\] +- Added a `random uniform distribution deflected` grains model for all features that allows an initial texture computed from a random uniform distribution of rotation matrices applied to a given orientation specified as a set of Euler angles or a rotation matrix. \[Yijun Wang; 2024-06-06; [#713](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/713)\] +### Changed +- In the "mass conserving" model, change the name of the entry "plate velocity" to "spreading velocity" \[Haoyuan Li; 2024-03-11; [#694](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/694)\] +- The Windows MinGW/CYGWIN install options are no longer supported. You are recommended to use Linux subsystems for Windows or the visual studio compiler instead on Windows. \[Menno Fraters; 2024-08-01; #[743](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/743), #[744](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/744)\] + +### Fixed + + ## [0.6.0] ### Added - Implemented the framework that will allow the mass conserving temperature model to account for the the movement of a spreading center through time. \[Daniel Douglas; Haoyuan Li; 2024-02-29; [#654](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/654)\] @@ -50,7 +61,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - A new input parameter and associated functions which define the maximum depth of a model. This allows the world builder to create a complete picture of the world. \[Menno Fraters; 2021-11-08; [#367](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/367) and [#331](https://github.com/GeodynamicWorldBuilder/WorldBuilder/issues/331)\] - A one of type which can create a JSON schema entry where one of several types can be chosen. \[Menno Fraters; 2022-03-26; [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] - A value at points type which can read in an array containing a value and a list of points from the input. \[Menno Fraters; 2022-03-26; [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] -- A surface object which can take an array of value at points and create an interpolation through delaunay triangulation (with the delaunator library which was added) and a KD-Tree and barycentric linear interplation. \[Menno Fraters, KD-Tree with help of Oliver Kreylos; 2022-03-26; [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] +- A surface object which can take an array of value at points and create an interpolation through delaunay triangulation (with the delaunator library which was added) and a KD-Tree and barycentric linear interpolation. \[Menno Fraters, KD-Tree with help of Oliver Kreylos; 2022-03-26; [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] - The option to make min and max depth into variable surfaces for all area features (continental plate, oceanic plate and mantle layer) and their temperature, composition and grain plugins. \[Menno Fraters; 2022-03-26; [#366](https://github.com/GeodynamicWorldBuilder/WorldBuilder/issues/366) and [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] - The option to the WordBuilderApp to input 3D spherical coordinates \[Menno Fraters; 2022-03-26; [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] - An equal operator (operator==) for the point class, which compares two points with an espilon. \[Menno Fraters; 2022-03-26; [#396](https://github.com/GeodynamicWorldBuilder/WorldBuilder/pull/396)\] diff --git a/contrib/world_builder/CITATION b/contrib/world_builder/CITATION index dd296051992..2addf811347 100644 --- a/contrib/world_builder/CITATION +++ b/contrib/world_builder/CITATION @@ -1,3 +1,15 @@ + +@article{GWB_2024_JOSS, +title = {The Geodynamic World Builder: A planetary structure creator for the geosciences}, +author = {Fraters, M. and Billen, M., and Gassmöller, R. and Saxena, A. and Heister, T. and Li, H., and Douglas, D., and Dannberg J., and Bangerth W. and Wang, Y.}, +doi = {10.21105/joss.06671}, +url = {https://doi.org/10.21105/joss.06671}, +year = {2024}, +publisher = {The Open Journal}, +pages = {6671}, +journal = {Journal of Open Source Software} +} + @Article{se-10-1785-2019, AUTHOR = {Fraters, M. and Thieulot, C. and van den Berg, A. and Spakman, W.}, TITLE = {The Geodynamic World Builder: a solution for complex initial conditions in numerical modeling}, @@ -10,14 +22,24 @@ URL = {https://se.copernicus.org/articles/10/1785/2019/}, DOI = {10.5194/se-10-1785-2019} } -@misc{gwb-doi-v0.4.0, - title = {{The Geodynamic World Builder} v0.4.0 [software]}, +@misc{gwb-doi-v1.0.0, + title = {{The Geodynamic World Builder} v0.6.0 [software]}, author = {Menno Fraters and others}, - month = jun, - year = 2021, - DOI = {10.5281/zenodo.5014808}, - URL = {https://doi.org/10.5281/zenodo.5014808}, + month = aug, + year = 2024, + DOI = {10.5281/zenodo.13352667}, + URL = {https://doi.org/10.5281/zenodo.13352667}, +} + +@misc{gwb-doi-v0.6.0, + title = {{The Geodynamic World Builder} v0.6.0 [software]}, + author = {Menno Fraters and + others}, + month = mar, + year = 2024, + DOI = {10.5281/zenodo.10794862}, + URL = {https://doi.org/10.5281/zenodo.10794862}, } @misc{gwb-doi-v0.5.0, @@ -30,14 +52,12 @@ DOI = {10.5194/se-10-1785-2019} URL = {https://doi.org/10.5281/zenodo.7998525}, } -@misc{gwb-doi-v0.6.0, - title = {{The Geodynamic World Builder} v0.6.0 [software]}, +@misc{gwb-doi-v0.4.0, + title = {{The Geodynamic World Builder} v0.4.0 [software]}, author = {Menno Fraters and others}, - month = mar, - year = 2024, - DOI = {10.5281/zenodo.10794862}, - URL = {https://doi.org/10.5281/zenodo.10794862}, -} - - + month = jun, + year = 2021, + DOI = {10.5281/zenodo.5014808}, + URL = {https://doi.org/10.5281/zenodo.5014808}, +} \ No newline at end of file diff --git a/contrib/world_builder/CMakeLists.txt b/contrib/world_builder/CMakeLists.txt index 71bedeaac47..25a57c1a4fc 100644 --- a/contrib/world_builder/CMakeLists.txt +++ b/contrib/world_builder/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13.4) +cmake_minimum_required(VERSION 2.8.12) project(WorldBuilder C CXX) @@ -107,7 +107,7 @@ else() endif() if(USE_MPI) - message(STATUS "Using MPI.") + message(STATUS "Using MPI found in: ${MPI_INCLUDE_PATH}") include_directories(${MPI_INCLUDE_PATH}) else() message(STATUS "Not using MPI.") @@ -371,7 +371,7 @@ if (NOT MSVC AND NOT APPLE) # cmake vesrion 3.12.0 introduces COMPILE_LANGUAGE:FORTRAN, otherwise this would be >=2.8.12 if(NOT ${CMAKE_VERSION} VERSION_LESS "3.9.0") SET(WB_COMPILER_OPTIONS_PRIVATE -pedantic -Wall -Wextra - $<$:-Wmost -Wconversion -Wunreachable-code -Wuninitialized -Wmissing-braces -Wunused-parameter -Wold-style-cast -Wshadow -Wfloat-equal -Wpointer-arith -Wwrite-strings + $<$:-Wmost -Wunreachable-code -Wuninitialized -Wmissing-braces -Wunused-parameter -Wold-style-cast -Wshadow -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wliteral-range -Wparentheses -Wunused-local-typedefs -Wcast-qual -fstrict-aliasing -Werror=uninitialized -Wundef -Wcast-align -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wunused>) @@ -380,7 +380,7 @@ if (NOT MSVC AND NOT APPLE) endif () else() - SET(WB_COMPILER_OPTIONS_PRIVATE "-pedantic -Wall -Wextra -Wmost -Wconversion -Wunreachable-code -Wuninitialized -Wmissing-braces -Wunused-parameter -Wold-style-cast -Wshadow -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wliteral-range -Wparentheses -Wunused-local-typedefs -Wcast-qual -fstrict-aliasing -Werror=uninitialized -Wundef -Wcast-align -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wunused") + SET(WB_COMPILER_OPTIONS_PRIVATE "-pedantic -Wall -Wextra -Wmost -Wunreachable-code -Wuninitialized -Wmissing-braces -Wunused-parameter -Wold-style-cast -Wshadow -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wliteral-range -Wparentheses -Wunused-local-typedefs -Wcast-qual -fstrict-aliasing -Werror=uninitialized -Wundef -Wcast-align -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wunused") if (${FORCE_COLORED_OUTPUT}) SET(WB_COMPILER_OPTIONS_PRIVATE "-fcolor-diagnostics ${WB_COMPILER_OPTIONS_PRIVATE}") @@ -396,15 +396,16 @@ if (NOT MSVC AND NOT APPLE) # Preventing issues with older cmake compilers (<3.7) which do not support VERSION_GREATER_EQUAL # cmake vesrion 3.12.0 introduces COMPILE_LANGUAGE:FORTRAN, otherwise this would be >=2.8.12 + # -Warith-conversion was added in gcc 10, add back in when the minimum becomes gcc 10. if(NOT ${CMAKE_VERSION} VERSION_LESS "3.9.0") - SET(WB_COMPILER_OPTIONS_PRIVATE -pedantic -Wall -Wextra $<$:-Wunused-variable -Wmissing-braces -Wunused-parameter -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-placement-new -Wno-literal-suffix -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wmaybe-uninitialized -Werror=maybe-uninitialized -Wparentheses -Wfloat-equal -Wundef -Wcast-align -Wlogical-op -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wno-unused>) + SET(WB_COMPILER_OPTIONS_PRIVATE -pedantic -Wall -Wextra $<$:-Wunused-variable -Wold-style-cast -Wconversion -Wsign-conversion -Wmissing-braces -Wunused-parameter -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-placement-new -Wno-literal-suffix -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wmaybe-uninitialized -Werror=maybe-uninitialized -Wparentheses -Wfloat-equal -Wundef -Wcast-align -Wlogical-op -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wno-unused>) if (${FORCE_COLORED_OUTPUT}) - SET(WB_COMPILER_OPTIONS_PRIVATE $<$:-fdiagnostics-color=always> ${WB_COMPILER_OPTIONS_PRIVATE}) + SET(WB_COMPILER_OPTIONS_PRIVATE -fdiagnostics-color=always ${WB_COMPILER_OPTIONS_PRIVATE}) endif() else() - SET(WB_COMPILER_OPTIONS_PRIVATE "-pedantic -Wall -Wextra -Wunused-variable -Wmissing-braces -Wunused-parameter -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-placement-new -Wno-literal-suffix -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wmaybe-uninitialized -Werror=maybe-uninitialized -Wparentheses -Wfloat-equal -Wundef -Wcast-align -Wlogical-op -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wno-unused>") + SET(WB_COMPILER_OPTIONS_PRIVATE "-pedantic -Wall -Wextra -Wold-style-cast -Wconversion -Wsign-conversion -Wunused-variable -Wmissing-braces -Wunused-parameter -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-placement-new -Wno-literal-suffix -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wmaybe-uninitialized -Werror=maybe-uninitialized -Wparentheses -Wfloat-equal -Wundef -Wcast-align -Wlogical-op -Wmissing-declarations -Wredundant-decls -Wdiv-by-zero -Wdisabled-optimization -Wswitch-default -Wno-unused>") if (${FORCE_COLORED_OUTPUT}) SET(WB_COMPILER_OPTIONS_PRIVATE "-fdiagnostics-color=always ${WB_COMPILER_OPTIONS_PRIVATE}") @@ -496,7 +497,7 @@ else() endif() if(${USE_MPI}) - target_link_libraries (${WB_TARGET} PUBLIC MPI::MPI_CXX) + target_link_libraries (${WB_TARGET} PUBLIC MPI::MPI_CXX MPI::MPI_C) endif() if(WB_ENABLE_APPS) @@ -506,7 +507,7 @@ if(WB_ENABLE_APPS) set(_libs ${_libs} ${ZLIB_LIBRARIES}) endif() if (USE_MPI) - set(_mpi_dep "PUBLIC MPI::MPI_CXX") + set(_mpi_dep "PUBLIC MPI::MPI_CXX MPI::MPI_C") else() set(_mpi_dep "") endif() diff --git a/contrib/world_builder/VERSION b/contrib/world_builder/VERSION index a918a2aa18d..3eefcb9dd5b 100644 --- a/contrib/world_builder/VERSION +++ b/contrib/world_builder/VERSION @@ -1 +1 @@ -0.6.0 +1.0.0 diff --git a/contrib/world_builder/appveyor.yml b/contrib/world_builder/appveyor.yml index b8e6f785cac..8f982c3e046 100644 --- a/contrib/world_builder/appveyor.yml +++ b/contrib/world_builder/appveyor.yml @@ -1,4 +1,4 @@ -version: '0.6.0.{build}' +version: '1.0.0.{build}' image: Visual Studio 2015 diff --git a/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift/2d_cartesian_subduction_rift.wb b/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift/2d_cartesian_subduction_rift.wb index 62373f679e0..12c13df859b 100644 --- a/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift/2d_cartesian_subduction_rift.wb +++ b/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift/2d_cartesian_subduction_rift.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,0],[100,0]], "features": [ diff --git a/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_adiabatic/2d_cartesian_subduction_rift_adiabatic.wb b/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_adiabatic/2d_cartesian_subduction_rift_adiabatic.wb index 71376c298c7..5a6d2345579 100644 --- a/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_adiabatic/2d_cartesian_subduction_rift_adiabatic.wb +++ b/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_adiabatic/2d_cartesian_subduction_rift_adiabatic.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,0],[100,0]], "features": [ diff --git a/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_sepran_example/2d_cartesian_subduction_rift_sepran_example.wb b/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_sepran_example/2d_cartesian_subduction_rift_sepran_example.wb index c1eb834ad68..6183d9560f9 100644 --- a/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_sepran_example/2d_cartesian_subduction_rift_sepran_example.wb +++ b/contrib/world_builder/cookbooks/2d_cartesian_subduction_rift_sepran_example/2d_cartesian_subduction_rift_sepran_example.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,0],[100,0]], "features": [ diff --git a/contrib/world_builder/cookbooks/2d_spherical_subduction_rift/2d_spherical_subduction_rift.wb b/contrib/world_builder/cookbooks/2d_spherical_subduction_rift/2d_spherical_subduction_rift.wb index a61def8d28a..4ce3a2f5823 100644 --- a/contrib/world_builder/cookbooks/2d_spherical_subduction_rift/2d_spherical_subduction_rift.wb +++ b/contrib/world_builder/cookbooks/2d_spherical_subduction_rift/2d_spherical_subduction_rift.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin segment"}, "cross section":[[0,0],[10,0]], "features": diff --git a/contrib/world_builder/cookbooks/2d_spherical_subduction_rift_adiabatic/2d_spherical_subduction_rift_adiabatic.wb b/contrib/world_builder/cookbooks/2d_spherical_subduction_rift_adiabatic/2d_spherical_subduction_rift_adiabatic.wb index 3790c7847ff..4b0aa534be7 100644 --- a/contrib/world_builder/cookbooks/2d_spherical_subduction_rift_adiabatic/2d_spherical_subduction_rift_adiabatic.wb +++ b/contrib/world_builder/cookbooks/2d_spherical_subduction_rift_adiabatic/2d_spherical_subduction_rift_adiabatic.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin segment"}, "cross section":[[0,0],[10,0]], "features": diff --git a/contrib/world_builder/cookbooks/3d_cartesian_curved_subduction/3d_cartesian_curved_subduction.wb b/contrib/world_builder/cookbooks/3d_cartesian_curved_subduction/3d_cartesian_curved_subduction.wb index ba2ebeaff71..21ab48905a5 100644 --- a/contrib/world_builder/cookbooks/3d_cartesian_curved_subduction/3d_cartesian_curved_subduction.wb +++ b/contrib/world_builder/cookbooks/3d_cartesian_curved_subduction/3d_cartesian_curved_subduction.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "potential mantle temperature":1500, "thermal expansion coefficient":2.0e-5, "maximum distance between coordinates":100000, diff --git a/contrib/world_builder/cookbooks/3d_cartesian_double_subduction/3d_cartesian_double_subduction.wb b/contrib/world_builder/cookbooks/3d_cartesian_double_subduction/3d_cartesian_double_subduction.wb index 1c510a310c6..e9564b546db 100644 --- a/contrib/world_builder/cookbooks/3d_cartesian_double_subduction/3d_cartesian_double_subduction.wb +++ b/contrib/world_builder/cookbooks/3d_cartesian_double_subduction/3d_cartesian_double_subduction.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/cookbooks/3d_cartesian_rift/3d_cartesian_rift.wb b/contrib/world_builder/cookbooks/3d_cartesian_rift/3d_cartesian_rift.wb index 88d50d4a614..439ad79be0a 100644 --- a/contrib/world_builder/cookbooks/3d_cartesian_rift/3d_cartesian_rift.wb +++ b/contrib/world_builder/cookbooks/3d_cartesian_rift/3d_cartesian_rift.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "features": [ {"model":"oceanic plate", "name":"oceanic plate A", "coordinates":[[-1e3,-1e3],[2001e3,-1e3],[2001e3,1000e3],[-1e3,1000e3]], diff --git a/contrib/world_builder/cookbooks/3d_cartesian_transform_fault/3d_cartesian_transform_fault.wb b/contrib/world_builder/cookbooks/3d_cartesian_transform_fault/3d_cartesian_transform_fault.wb index 2bbe9eaa662..2c78070af28 100644 --- a/contrib/world_builder/cookbooks/3d_cartesian_transform_fault/3d_cartesian_transform_fault.wb +++ b/contrib/world_builder/cookbooks/3d_cartesian_transform_fault/3d_cartesian_transform_fault.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "surface temperature":273.15, "potential mantle temperature":1573.15, "thermal expansion coefficient":0, diff --git a/contrib/world_builder/cookbooks/3d_spherical_subduction/3d_spherical_subduction.wb b/contrib/world_builder/cookbooks/3d_spherical_subduction/3d_spherical_subduction.wb index 854da8b9b84..59cd0e3a0d7 100644 --- a/contrib/world_builder/cookbooks/3d_spherical_subduction/3d_spherical_subduction.wb +++ b/contrib/world_builder/cookbooks/3d_spherical_subduction/3d_spherical_subduction.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin segment"}, "cross section":[[0,0],[10,0]], "maximum distance between coordinates":0.01, diff --git a/contrib/world_builder/cookbooks/index.md b/contrib/world_builder/cookbooks/index.md index 598348bb371..454a8cec464 100644 --- a/contrib/world_builder/cookbooks/index.md +++ b/contrib/world_builder/cookbooks/index.md @@ -6,11 +6,10 @@ This section contains self-contained cookbooks on how to design different geodyn ```{toctree} -: hidden: +:hidden: 3d_cartesian_rift/doc/README 3d_cartesian_transform_fault/doc/README simple_subduction_2d_cartesian/doc/README simple_subduction_2d_chunk/doc/README - ``` diff --git a/contrib/world_builder/cookbooks/simple_subduction_2d_cartesian/simple_subduction_2d_cartesian.wb b/contrib/world_builder/cookbooks/simple_subduction_2d_cartesian/simple_subduction_2d_cartesian.wb index 874184343b9..03c112a86ae 100644 --- a/contrib/world_builder/cookbooks/simple_subduction_2d_cartesian/simple_subduction_2d_cartesian.wb +++ b/contrib/world_builder/cookbooks/simple_subduction_2d_cartesian/simple_subduction_2d_cartesian.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[0,0],[8000e3,0]], "surface temperature":273, "potential mantle temperature":1573, @@ -32,22 +32,23 @@ {"model":"subducting plate", "name":"Slab", "coordinates":[[3500e3,-100e3],[3500e3,100e3]], "dip point":[0,0],"max depth":1000e3, - "segments":[{"length":200e3,"thickness":[300e3],"top truncation":[-50e3],"angle":[0,30]}, - {"length":100e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[30,50]}, - {"length":500e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[50,50]}, - {"length":300e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[50,10]}, - {"length":300e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[10,10]}], - "composition models":[ + "segments":[{"length":200e3,"thickness":[300e3],"top truncation":[-50e3],"angle":[0,30]}, + {"length":100e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[30,50]}, + {"length":500e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[50,50]}, + {"length":300e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[50,10]}, + {"length":300e3, "thickness":[300e3],"top truncation":[-50e3], "angle":[10,10]}], + "composition models":[ {"model":"uniform", "compositions":[0], "max distance slab top":100e3}], - "temperature models":[{"model":"mass conserving", - "reference model name": "plate model", - "density":3300, "thermal conductivity":3.3,"adiabatic heating":false, - "plate velocity":0.03, - "ridge coordinates":[[[8000e3,-100e3],[8000e3,100e3]]], - "coupling depth":80e3, - "forearc cooling factor":20.0, - "taper distance":100e3, - "min distance slab top":-200e3, "max distance slab top":300e3}] - } + "temperature models":[{"model":"mass conserving", + "reference model name": "plate model", + "density":3300, "thermal conductivity":3.3,"adiabatic heating":false, + "spreading velocity":0.03, + "subducting velocity":0.03, + "ridge coordinates":[[[8000e3,-100e3],[8000e3,100e3]]], + "coupling depth":80e3, + "forearc cooling factor":20.0, + "taper distance":100e3, + "min distance slab top":-200e3, "max distance slab top":300e3}] + } ] } diff --git a/contrib/world_builder/cookbooks/simple_subduction_2d_chunk/simple_subduction_2d_chunk.wb b/contrib/world_builder/cookbooks/simple_subduction_2d_chunk/simple_subduction_2d_chunk.wb index 613fe017e1d..8a7dc200060 100644 --- a/contrib/world_builder/cookbooks/simple_subduction_2d_chunk/simple_subduction_2d_chunk.wb +++ b/contrib/world_builder/cookbooks/simple_subduction_2d_chunk/simple_subduction_2d_chunk.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment", "radius":6371000.0}, @@ -30,35 +30,36 @@ "spreading velocity":0.05, "ridge coordinates":[[[135,-5],[135,5]]] }], - "composition models":[ + "composition models":[ {"model":"uniform", "compositions":[1], "min depth":0, "max depth":100e3}] }, { "model":"subducting plate", "name":"Slab", "coordinates":[[90,-5],[90,5]], "dip point":[0,0], "max depth":1000e3, - "segments":[ - {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[0,30]}, - {"length":100e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[30,50]}, - {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[50,50]}, - {"length":300e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[50,10]}, - {"length":100e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[10,10]}, - {"length":300e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[10,150]}, - {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[150,150]}, - {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[150,90]}, - {"length":100e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[90,90]} - ], - "composition models":[ - {"model":"uniform", "compositions":[1], "max distance slab top":100e3}], - "temperature models":[ - {"model":"mass conserving", - "reference model name": "half space model", - "density":3300, "thermal conductivity":3.3,"adiabatic heating":true, - "plate velocity":0.05, - "ridge coordinates":[[[135,-5],[135,5]]], - "coupling depth":80e3, - "forearc cooling factor":10.0, - "taper distance":150e3, - "min distance slab top":-200e3, "max distance slab top":300e3}] - } + "segments":[ + {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[0,30]}, + {"length":100e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[30,50]}, + {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[50,50]}, + {"length":300e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[50,10]}, + {"length":100e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[10,10]}, + {"length":300e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[10,150]}, + {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[150,150]}, + {"length":200e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[150,90]}, + {"length":100e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[90,90]} + ], + "composition models":[ + { "model":"uniform", "compositions":[1], "max distance slab top":100e3}], + "temperature models":[ + { "model":"mass conserving", + "reference model name": "half space model", + "density":3300, "thermal conductivity":3.3,"adiabatic heating":true, + "spreading velocity":0.05, + "subducting velocity":0.05, + "ridge coordinates":[[[135,-5],[135,5]]], + "coupling depth":80e3, + "forearc cooling factor":10.0, + "taper distance":150e3, + "min distance slab top":-200e3, "max distance slab top":300e3}] + } ] } diff --git a/contrib/world_builder/doc/JOSS/1.0/paper.bib b/contrib/world_builder/doc/JOSS/1.0/paper.bib new file mode 100644 index 00000000000..07572a04637 --- /dev/null +++ b/contrib/world_builder/doc/JOSS/1.0/paper.bib @@ -0,0 +1,207 @@ +@Article{Fraters_Thieulot_etal_2019, +AUTHOR = {Fraters, M. and Thieulot, C. and van den Berg, A. and Spakman, W.}, +TITLE = {{The Geodynamic World Builder: a solution for complex initial conditions in numerical modeling}}, +JOURNAL = {Solid Earth}, +VOLUME = {10}, +YEAR = {2019}, +NUMBER = {5}, +PAGES = {1785--1807}, +URL = {https://se.copernicus.org/articles/10/1785/2019/}, +DOI = {10.5194/se-10-1785-2019} +} + +@article{Bauville_Baumann_2019, +author = {Bauville, A. and Baumann, T. S.}, +title = {{geomIO: An Open-Source MATLAB Toolbox to Create the Initial Configuration of 2-D/3-D Thermo-Mechanical Simulations From 2-D Vector Drawings}}, +journal = {Geochemistry, Geophysics, Geosystems}, +volume = {20}, +number = {3}, +pages = {1665-1675}, +keywords = {3-D modeling, numerical simulation, MATLAB toolbox, 3-D temperature distribution}, +doi = {10.1029/2018GC008057}, +url = {https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2018GC008057}, +eprint = {https://agupubs.onlinelibrary.wiley.com/doi/pdf/10.1029/2018GC008057}, +abstract = {Abstract Creating the initial geometry and temperature configuration of 3-D numerical simulations is a challenging task. Professional tools are expensive. They often have a steep learning curve and do mostly not interface with the numerical simulation software used by the geodynamics and tectonics academic community. There, we developed geometry Input/Output (geomIO), a MATLAB toolbox to create the initial configuration of geological models regarding model geometry and temperature structure. geomIO allows users to create a geo-referenced 3-D volume by drawing multiple 2-D cross sections in a standard vector graphics editor. The volume is then used to assign material properties and set up initial temperature distribution on a set of vertices. In 2-D mode, polygons can also be used to create a triangular mesh. In addition to the standard functionality, the gravity anomaly of any geometry created with geomIO can be calculated. In this paper, we give an overview of the basic functionalities of geomIO. We illustrate the strength of our software with advanced tectonic and geodynamic applications that could not have been performed with currently available free software. Applications include the Himalayan orogen, the Japanese subduction zones, present-day salt diapirs, and small-scale tectonic structures. We describe algorithms and file formats in the supporting information. The toolbox is user-friendly and flexible. Users can use custom pipelines or preset data processing pipelines, so most applications require only a few lines of code. geomIO is distributed under the GNU General Public License and includes an online wiki with tutorials and additional examples.}, +year = {2019} +} + +@article{Spang_Baumann_2022, +author = {Spang, A. and Baumann, T. S. and Kaus, B. J. P.}, +title = {{Geodynamic Modeling With Uncertain Initial Geometries}}, +journal = {Geochemistry, Geophysics, Geosystems}, +volume = {23}, +number = {6}, +pages = {e2021GC010265}, +keywords = {geometry parameterization, variable geometry, salt tectonics, subduction velocity, inversion, subduction angle}, +doi = {10.1029/2021GC010265}, +url = {https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2021GC010265}, +eprint = {https://agupubs.onlinelibrary.wiley.com/doi/pdf/10.1029/2021GC010265}, +note = {e2021GC010265 2021GC010265}, +abstract = {Abstract Geodynamic codes have become fast and efficient enough to facilitate sensitivity analysis of rheological parameters. With sufficient data, they can even be inverted for. Yet, the geodynamic inverse problem is often regularized by assuming a constant geometry of the geological setting (e.g., shape, location and size of salt diapirs or magma bodies) or approximating irregular bodies with simple shapes like boxes, spheres or ellipsoids to reduce the parameter space. Here, we present a simple and intuitive method to parameterize complex 3D bodies and incorporate them into geodynamic inverse problems. The approach can automatically create an entire ensemble of initial geometries, enabling us to account for uncertainties in imaging data. Furthermore, it allows us to investigate the sensitivity of the model results to geometrical properties and facilitates inverting for them. We demonstrate the method with two examples. A salt diapir in an extending regime and free subduction of an oceanic plate under a continent. In both cases, small differences in the model's initial geometry lead to vastly different results. Be it the formation of faults or the velocity of plates. Using the salt diapir example, we demonstrate that, given an additional geophysical observation, we are able to invert for uncertain geometric properties. This highlights that geodynamic studies should investigate the sensitivity of their models to the initial geometry and include it in their inversion framework. We make our method available as part of the open-source software geomIO.}, +year = {2022} +} + +@article{Beucher_Moresi_etal_2019, +doi = {10.21105/joss.01136}, +url = {https://doi.org/10.21105/joss.01136}, +year = {2019}, +publisher = {The Open Journal}, +volume = {4}, +number = {36}, +pages = {1136}, +author = {Romain Beucher and Louis Moresi and Julian Giordani and John Mansour and Dan Sandiford and Rebecca Farrington and Luke Mondy and Claire Mallard and Patrice Rey and Guillaume Duclaux and Owen Kaluza and Arijit Laik and Sara Morón}, +title = {{UWGeodynamics: A teaching and research tool for numerical geodynamic modelling}}, +journal = {Journal of Open Source Software} +} + +@article{Moresi_Dufour_2002, +author = {Moresi, L. and Dufour, F. and Mühlhaus, HB.}, +title = {{Mantle Convection Modeling with Viscoelastic/Brittle Lithosphere: Numerical Methodology and Plate Tectonic Modeling.}}, +journal = {Pure appl. geophys.}, +volume = {159}, +pages = {2335-2356}, +year = {2002}, +doi = {10.1007/s00024-002-8738-3}, +url = {https://doi.org/10.1007/s00024-002-8738-3} +} + +@article{Varga_Schaaf_2019, +AUTHOR = {de la Varga, M. and Schaaf, A. and Wellmann, F.}, +TITLE = {{GemPy 1.0: open-source stochastic geological modeling and inversion}}, +JOURNAL = {Geoscientific Model Development}, +VOLUME = {12}, +YEAR = {2019}, +NUMBER = {1}, +PAGES = {1--32}, +URL = {https://gmd.copernicus.org/articles/12/1/2019/}, +DOI = {10.5194/gmd-12-1-2019} +} + +@article{Schaaf_Varga_2021, +AUTHOR = {Schaaf, A. and de la Varga, M. and Wellmann, F. and Bond, C. E.}, +TITLE = {{Constraining stochastic 3-D structural geological models with topology information using approximate Bayesian computation in GemPy 2.1}}, +JOURNAL = {Geoscientific Model Development}, +VOLUME = {14}, +YEAR = {2021}, +NUMBER = {6}, +PAGES = {3899--3913}, +URL = {https://gmd.copernicus.org/articles/14/3899/2021/}, +DOI = {10.5194/gmd-14-3899-2021} +} + +@article{McKenzie_1970, + title = {{Temperature and potential temperature beneath island arcs}}, + journal = "Tectonophysics", + volume = "10", + number = "1", + pages = "357 - 366", + year = "1970", + note = "Geothermal Problems", + issn = "0040-1951", + doi = "10.1016/0040-1951(70)90115-0", + url = "http://www.sciencedirect.com/science/article/pii/0040195170901150", + author = "D.P. McKenzie" +} +@software{sebastien_jourdain_2024, + author = {Sebastien Jourdain (Kitware) and + Forrest Li and + Julien Finet and + Sankhesh Jhaveri and + Laurenn Lam and + Adnane Belmadiaf and + Matt McCormick and + Scott Wittenburg and + Alireza and + Thibault Bruyère and + Tom Birdsong and + Lucie Macron and + Shreeraj Jadhav and + JiayiXuu and + Patrick Avery and + rodrigobasilio2022 and + Jules BOURDAIS and + gandis and + Erik Ziegler and + RemiCecchinato and + Anne Haley and + Tom Suchel and + TristanWright and + David Thompson and + Mayeul Chassagnard and + Madison Dickson and + Aron Helser and + Paul Elliott and + ocrossi}, + title = {{Kitware/vtk-js: v29.7.2}}, + month = feb, + year = 2024, + publisher = {Zenodo}, + version = {v29.7.2}, + doi = {10.5281/zenodo.10680530}, + url = {https://doi.org/10.5281/zenodo.10680530} +} + +@article{Billen_Fraters_AGU_2023, + title={{A New Method for Assigning Thermal Structure to 2D and 3D Present-day Geodynamic and Seismological Models of Subduction Zones}}, + author={Billen, Magali I and Fraters, Menno}, + journal={AGU23}, + year={2023}, + url={https://agu.confex.com/agu/fm23/meetingapp.cgi/Paper/1363473}, + publisher={AGU} +} + +@article{vanderWiel_Hinsbergen_etal_2024, + title = {{Linking rates of slab sinking to long-term lower mantle flow and mixing}}, + journal = {Earth and Planetary Science Letters}, + volume = {625}, + pages = {118471}, + year = {2024}, + issn = {0012-821X}, + doi = {10.1016/j.epsl.2023.118471}, + url = {https://www.sciencedirect.com/science/article/pii/S0012821X23004843}, + author = {Erik {van der Wiel} and Douwe J.J. {van Hinsbergen} and Cedric Thieulot and Wim Spakman}, + keywords = {Mantle convection, Slab sinking rates, Mantle mixing, Modelling constraints}, +} + +@article{Sandiford_Craig_timothy_2023, + author = {Sandiford, Dan and Craig, Timothy J}, + title = {{Plate bending earthquakes and the strength distribution of the lithosphere}}, + journal = {Geophysical Journal International}, + volume = {235}, + number = {1}, + pages = {488-508}, + year = {2023}, + month = {06}, + issn = {0956-540X}, + doi = {10.1093/gji/ggad230}, + url = {https://doi.org/10.1093/gji/ggad230}, + eprint = {https://academic.oup.com/gji/article-pdf/235/1/488/50659012/ggad230.pdf}, +} + +@ARTICLE{Gea_Negredo_etal_2023, + AUTHOR={Gea, Pedro J. and Negredo, Ana M. and Mancilla, Flor de Lis}, + TITLE={{The Gibraltar slab dynamics and its influence on past and present-day Alboran domain deformation: Insights from thermo-mechanical numerical modelling}}, + JOURNAL={Frontiers in Earth Science}, + VOLUME={11}, + YEAR={2023}, + URL={https://www.frontiersin.org/articles/10.3389/feart.2023.995041}, + DOI={10.3389/feart.2023.995041}, + ISSN={2296-6463}, + ABSTRACT={The origin and tectonic evolution of the Gibraltar Arc system is the result of a complex geodynamic evolution involving the convergence of the Eurasian and African plates and the dynamic impact of the Gibraltar slab. Although geologic and geophysical data collected in the last few years have increased our knowledge of the Gibraltar Arc region, it is still unclear which are the mechanical links between the Gibraltar slab and the past deformation of the overriding Alboran lithosphere, as well as to which degree this subduction system is presently active. In this study, we use 2D numerical modelling to investigate the impact of the Gibraltar slab dynamics on the deformation of the overriding Alboran lithosphere. Our model simulates a WE generic vertical section at an approximate latitude of 36°N and considers an initial setup at about Burdigalian times (∼20 Ma), when the subduction front position is relatively well constrained by recent tectonic reconstructions. Our modelling shows a switch in the overriding plate (OP) stress state from extensional stresses during the slab rollback to compressional stresses near the trench when the rollback velocity decreases, caused by the change in slab-induced mantle flow. We also find that much of the crustal and lithospheric deformation occur during fast slab rollback and OP extension in the first 10 Myr of evolution, while after that only moderate deformation associated with subduction is predicted. Finally, we find that despite the subduction rollback ceases, the ongoing motion of the deeper portion of the slab induces a mantle flow that causes some amount of west-directed basal drag of the Alboran lithosphere. This basal drag generates interplate compresional stresses compatible with the distribution of intermediate-depth earthquakes in western Alboran.} +} + +@article{Saxena_Dannberg_etal_2023, + author = {Saxena, Arushi and Dannberg, Juliane and Gassmöller, Rene and Fraters, Menno and Heister, Timo and Styron, Richard}, + title = {{High-Resolution Mantle Flow Models Reveal Importance of Plate Boundary Geometry and Slab Pull Forces on Generating Tectonic Plate Motions}}, + journal = {Journal of Geophysical Research: Solid Earth}, + volume = {128}, + number = {8}, + pages = {e2022JB025877}, + keywords = {global mantle flow models, plate driving forces, plate tectonics}, + doi = {10.1029/2022JB025877}, + url = {https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2022JB025877}, + eprint = {https://agupubs.onlinelibrary.wiley.com/doi/pdf/10.1029/2022JB025877}, + note = {e2022JB025877 2022JB025877}, + abstract = {Abstract Mantle convection models based on geophysical constraints have provided us with a basic understanding of the forces driving and resisting plate motions on Earth. However, existing studies computing the balance of underlying forces are contradicting, and the impact of plate boundary geometry on surface deformation remains unknown. We address these issues by developing global instantaneous 3-D mantle convection models with a heterogeneous density and viscosity distribution and weak plate boundaries prescribed using different geometries. We find that the plate boundary geometry of the Global Earthquake Model (GEM, Pagani et al., 2018, https://doi.org/10.1177/8755293020931866), featuring open plate boundaries with discrete lithospheric-depth weak zones in the oceans and distributed crustal faults within continents, achieves the best fit to the observed GPS data with a directional correlation of 95.1\% and a global point-wise velocity residual of 1.87 cm/year. A good fit also requires plate boundaries being 3 to 4 orders of magnitude weaker than the surrounding lithosphere and low asthenospheric viscosities between 5 × 1017 and 5 × 1018 Pa s. Models without asthenospheric and lower mantle heterogeneities retain on average 30\% and 70\% of the plate speeds, respectively. Our results show that Earth's plate boundaries are not uniform and better described by more discrete plate boundaries within the oceans and distributed faults within continents. Furthermore, they emphasize the impact of plate boundary geometry on the direction and speed of plate motions and reaffirm the importance of slab pull in the uppermost mantle as a major plate driving force.}, + year = {2023} +} diff --git a/contrib/world_builder/doc/JOSS/1.0/paper.md b/contrib/world_builder/doc/JOSS/1.0/paper.md new file mode 100644 index 00000000000..a534605dc6d --- /dev/null +++ b/contrib/world_builder/doc/JOSS/1.0/paper.md @@ -0,0 +1,141 @@ +--- +title: 'The Geodynamic World Builder: A planetary structure creator for the geosciences' +tags: + - C++ + - CPP + - C + - Fortran + - Python + - Geodynamics + - Earth science + - Tectonics + - Seismology +authors: + - name: Menno R. T. Fraters + orcid: 0000-0003-0035-7723 + affiliation: "1" # (Multiple affiliations must be quoted) + - name: Magali I. Billen + orcid: 0000-0002-7316-1791 + affiliation: "2" + - name: Rene Gassmöller + orcid: 0000-0001-7098-8198 + affiliation: "3,4" + - name: Arushi Saxena + orcid: 0000-0003-2930-3497 + affiliation: "2,5" + - name: Timo Heister + orcid: 0000-0002-8137-3903 + affiliation: "5" + - name: Haoyuan Li + orcid: 0000-0003-0676-9884 + affiliation: "2" + - name: Daniel Douglas + orcid: 0000-0002-7871-018X + affiliation: "6" + - name: Juliane Dannberg + orcid: 0000-0003-0357-7115 + affiliation: "3,4" + - name: Wolfgang Bangerth + orcid: 0000-0003-2311-9402 + affiliation: "7" + - name: Yijun Wang + orcid: 0000-0002-7637-3239 + affiliation: "8" +affiliations: + - name: GFZ German Research Centre for Geosciences, Potsdam, Germany + index: 1 + - name: UC Davis, USA + index: 2 + - name: GEOMAR Helmholtz-Zentrum für Ozeanforschung, Kiel, Germany + index: 3 + - name: Universiy of Florida, USA + index: 4 + - name: Clemson University, USA + index: 5 + - name: New Mexico Tech, USA + index: 6 + - name: Colorado State University, USA + index: 7 + - name: University of Oslo, Norway + index: 8 +date: 11 March 2024 +bibliography: paper.bib +--- + +# Summary + +Many Earth science applications require the discretization, parameterization, and/or visualization of complex geological features in a 3D geometry in global or regional settings. A prime example are geodynamic models that have to make assumptions about the Earth's thermal and chemical structure and the geometry of different features such as plates, subducted slabs, or mantle plumes. This structure is needed in instantaneous models, as model initial conditions, or to test different hypotheses and compare model predictions to observations. Other examples are the creation of an Earth velocity structure for seismic forward modeling and hypothesis-testing, or the visualization of tectonic features in structural geology. + +The Geodynamic World Builder (GWB) has been designed to make the creation of complex parameterized models significantly easier. It can also be used to design simple synthetic models and it supports the use of several types of datasets to set up models. Besides setting up initial conditions for geodynamic models, the GWB can also visualize complex 3D geologic, tectonic, and geodynamic settings. + +# Statement of need + +Today's computational resources, infrastructure, and numerical methods allow for the creation of complex numerical models that closely resemble specific locations on the Earth, using 3D geometries and high resolutions. However, the related increase in complexity has also made setting up these more detailed regional or global models exceedingly difficult, especially in three dimensions. Furthermore, investigating the model dynamics often requires testing different scenarios involving variations in model geometry, thermal, or chemical structure, or other model assumptions. Although studies with such complex models have been published, the practical realization of these model setups often have one or many of the following disadvantages: + +1. The configuration is not human-readable. +2. The software is not easily modifiable and extendable. +3. The model setup is not portable to other computing systems or reproducible in other software frameworks. +4. The model setup is not shareable with other users. + +These issues lead to a number of problems with the reproducibility and reliability of modeling studies, which threaten to undermine the predictive power and usefulness of modeling results, and highlight the need for an easy, efficient, and robust way to describe model setups. The GWB has been designed to address these challenges, by creating human readable, parameterized, portable, reproducible, and shareable geodynamic model setups. Critically, the GWB comes with its own programs to visualize the constructed model through applications like Paraview. Creating the models requires no programming knowledge. Therefore, the GWB can be easily used to visualize tectonic and geodynamic settings for publications, teaching, and public outreach. + +![A workflow diagram for how a world builder file can be used to create and visualize a geodynamic model.](workflow_diagram.png) + +The GWB has been used in several published studies to model global fault patterns, plumes, and plate dynamics [@Saxena_Dannberg_etal_2023; @Gea_Negredo_etal_2023; @Sandiford_Craig_timothy_2023; and @vanderWiel_Hinsbergen_etal_2024]. Other tools to solve this problem have emerged at around the same time as the first GWB release [@Fraters_Thieulot_etal_2019]. Examples include GeomIO [@Bauville_Baumann_2019; @Spang_Baumann_2022], which uses an approach based on vector graphics; Easy (https://easyinit.readthedocs.io/), which uses a more generic function-based approach; UWGeodynamics [@Beucher_Moresi_etal_2019], which is specifically designed for Underworld [@Moresi_Dufour_2002]; and GemPy [@Varga_Schaaf_2019; @Schaaf_Varga_2021], which is designed for structural modeling. The GWB was designed to be a more general planetary structure creator, using the methods shown below. + +# Methods + +To address the challenges outlined in the previous section, the Geodynamic World Builder implements specific code and world parameterization principles. + +## GWB Code Principles +The GWB's software architecture is built around the following principles: + +1. A single text-based input file. +2. Code, language and platform independence: + 1. Support for **Linux**, **macOS** and **Windows**; + 2. Official interfaces for **C++**, **C**, **FORTRAN** and **Python**. +3. Safe parallel execution. +4. Readable and extensible software modules. +5. Strict version numbering to ensure reproducible results. + +These principles are implemented in an object-oriented C++ code with interfaces to other programming languages. All parts a user might want to modify are implemented as plugin systems using interface classes that decouple individual modules and allow the user to easily extend the code with new features. In addition, the GWB includes an extensive automated test suite with benchmarks, integration, and unit tests with high code coverage, memory checking, automatic code indentation, and a spell checker to keep the GWB in a healthy state. + +## GWB World Parameterization Principles + +The GWB's world parameterization principles are built around the idea that a complex model region can be split into individual tectonic features. These tectonic features can be parameterized by defining their location and geometry in terms of points, lines, or areas in a map view. For example, a continental plate can be represented as an area on a map, and the GWB user defines this area. A fault is a linear feature on a map, so the user can define the fault trace as a line at the surface. Users can also provide additional information for a feature, such as a spatially variable thickness or dip angle. The GWB then uses these parameters to create the 3D geometry of the feature, defining its volume. Furthermore, users can attach one or many models to those volumes to define additional properties such as thermal or chemical structure. These can be very simple models, such as a uniform temperature distribution; or follow a more complex distribution, such as a half space cooling model, or a McKenzie model [@McKenzie_1970], or a mass conserving slab temperature model [@Billen_Fraters_AGU_2023]. + +All these tectonic features are bundled in a single input file in standard JSON format, which is human readable, writeable, and editable. The main idea behind this design of the GWB is that users can easily create, modify, and visualize complex parameterized geodynamic or tectonic settings. + +## Example +Below we show an example input file for a Cartesian model that contains a single feature, namely a subducting plate. + +```json +{ + "version": "1.0", + "coordinate system": {"model":"cartesian"}, + "features": + [ + { + "model": "subducting plate", "name": "Slab", "dip point": [0,0], + "coordinates": [[1500e3,1000e3],[1600e3,350e3],[1500e3,0]], + "segments": [{"length":300e3, "thickness": [100e3], "angle": [0,60]}], + "temperature models": [{"model": "plate model", "plate velocity": 0.02}], + } + ] +} +``` + +A more complicated example (only requiring 85 lines, and can be found [here](https://github.com/GeodynamicWorldBuilder/WorldBuilder/blob/GWB-v1.0.0/doc/sphinx/_static/gwb_input_files/BST_19_spherical_models.wb)) featuring a spherical geometry, a spatially variable subducting plate, continental plate, oceanic plate and plume can be seen in Fig 2. + +![A schematic example of what can be built with 85 lines of a GWB input file formatted in the same way as in the example input file shown above. This includes a slab with variable dip and thickness along strike and down dip, subducting under an oceanic plate on the right side of the ridge, as well as a passive continental margin with variable thickness, and a mantle plume beneath the ridge. The temperature profile of the continent is linear, the oceanic plates are defined by a half-space cooling model, the slab temperature is defined by a mass conserving temperature model and the plume adds heat based on a Gaussian around the center.\label{fig:example}](../../sphinx/_static/images/user_manual/basic_starter_tutorial/BST_19.png) + + +# Acknowledgements + +We would like to acknowledge all other contributors to the project, especially Lorraine Hwang, Rebecca Fildes, and John Naliboff for their advice and support for this project throughout the years. We would also like to acknowledge NSF for their funding and support through grants EAR-1620618, OCE-1948902, EAR-0949446, EAR-1550901, EAR-1925677, and EAR-2149126. + +M. Fraters also acknowledges the support of the Department of Earth and Planetary Sciences at UC Davis and the Department of Geological Sciences at the University of Florida, where much of the research presented was completed while he was a postdoctoral scholar. + +# References + + diff --git a/contrib/world_builder/doc/JOSS/1.0/workflow_diagram.png b/contrib/world_builder/doc/JOSS/1.0/workflow_diagram.png new file mode 100644 index 00000000000..7762c0e26b1 Binary files /dev/null and b/contrib/world_builder/doc/JOSS/1.0/workflow_diagram.png differ diff --git a/contrib/world_builder/doc/doxygen_config.dox b/contrib/world_builder/doc/doxygen_config.dox index 45627a3e466..2e450f74ba2 100644 --- a/contrib/world_builder/doc/doxygen_config.dox +++ b/contrib/world_builder/doc/doxygen_config.dox @@ -5,7 +5,7 @@ #--------------------------------------------------------------------------- DOXYFILE_ENCODING = UTF-8 PROJECT_NAME = "World Builder" -PROJECT_NUMBER = 0.6.0 +PROJECT_NUMBER = 1.0.0 PROJECT_BRIEF = "A geodynamic initial conditions generator" PROJECT_LOGO = OUTPUT_DIRECTORY = doc/doxygen/ diff --git a/contrib/world_builder/doc/generate_decl_schema.wb b/contrib/world_builder/doc/generate_decl_schema.wb index e5d14986ad0..02b5b3dc9ab 100644 --- a/contrib/world_builder/doc/generate_decl_schema.wb +++ b/contrib/world_builder/doc/generate_decl_schema.wb @@ -1,4 +1,4 @@ { - "version": "0.6", + "version": "1.0", "features": [] } \ No newline at end of file diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_02_minimal_box.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_02_minimal_box.wb index 54c8d660d5c..aa676e0e603 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_02_minimal_box.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_02_minimal_box.wb @@ -1,4 +1,4 @@ { - "version": "0.6", + "version": "1.0", "features":[] } \ No newline at end of file diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_04_overriding_plate.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_04_overriding_plate.wb index 47ec2d89d8a..5b4bd355c28 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_04_overriding_plate.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_04_overriding_plate.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_05_limit_depth.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_05_limit_depth.wb index 6d3f60706c6..e6dc8a0b12f 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_05_limit_depth.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_05_limit_depth.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_06_oceanic_plate_temperature.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_06_oceanic_plate_temperature.wb index 4e6fee7383a..e13e09b0b0d 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_06_oceanic_plate_temperature.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_06_oceanic_plate_temperature.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_07_subducting_plate_oceanic_part.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_07_subducting_plate_oceanic_part.wb index 2df3d4a1aea..54f2341b434 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_07_subducting_plate_oceanic_part.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_07_subducting_plate_oceanic_part.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_08_passive_margin_variable_depth.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_08_passive_margin_variable_depth.wb index 4e6d2e8deb2..ec3dd046d45 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_08_passive_margin_variable_depth.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_08_passive_margin_variable_depth.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_09_adding_mantle_layer.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_09_adding_mantle_layer.wb index 6bf1ce26f54..570c64d9b2c 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_09_adding_mantle_layer.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_09_adding_mantle_layer.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_10_adding_basic_subducting_plate.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_10_adding_basic_subducting_plate.wb index 860d997ebe5..f342daef08f 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_10_adding_basic_subducting_plate.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_10_adding_basic_subducting_plate.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_11_dip_change_in_segment.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_11_dip_change_in_segment.wb index 0c085797405..37a62e05f3e 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_11_dip_change_in_segment.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_11_dip_change_in_segment.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_sections.wb_bak b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_sections.wb_bak index cd96d17d5d4..a279a3e3b01 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_sections.wb_bak +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_sections.wb_bak @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[0,200e3],[100e3,200e3]], "features": diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_subducting_plate_temperatures.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_subducting_plate_temperatures.wb index f297205e82e..c491adcabaa 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_subducting_plate_temperatures.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_12_subducting_plate_temperatures.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_13_subducting_slab_adding_a_segment.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_13_subducting_slab_adding_a_segment.wb index dddc12533db..fcdcaa9094c 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_13_subducting_slab_adding_a_segment.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_13_subducting_slab_adding_a_segment.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_14_different_models_in_segments.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_14_different_models_in_segments.wb index 7f3c08b7861..5ce990791d4 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_14_different_models_in_segments.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_14_different_models_in_segments.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_15_different_segments_in_sections.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_15_different_segments_in_sections.wb index c2814e8e9db..82c35de72b2 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_15_different_segments_in_sections.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_15_different_segments_in_sections.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_16_mass_conserving.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_16_mass_conserving.wb index 7924d7dc1ef..27e3a69401f 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_16_mass_conserving.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_16_mass_conserving.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ @@ -60,7 +60,7 @@ "composition models":[{"model":"uniform", "compositions":[1],"max distance slab top":100e3}]} ], "temperature models":[ - {"model":"mass conserving", "density":3300, "plate velocity":0.02, + {"model":"mass conserving", "density":3300, "spreading velocity":0.02, "subducting velocity":0.02, "ridge coordinates":[[[5e6,-1],[5e6,2000e3]]],"coupling depth":50e3, "min distance slab top":-200e3, "max distance slab top":300e3}], "composition models":[{"model":"uniform", "compositions":[2], "max distance slab top":100e3}] diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_17_plume.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_17_plume.wb index e93a268f1e1..0607eeb283a 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_17_plume.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_17_plume.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features": [ @@ -60,7 +60,7 @@ "composition models":[{"model":"uniform", "compositions":[1],"max distance slab top":100e3}]} ], "temperature models":[ - {"model":"mass conserving", "density":3300, "plate velocity":0.02, + {"model":"mass conserving", "density":3300, "spreading velocity":0.02, "subducting velocity":0.02, "ridge coordinates":[[[5e6,-1],[5e6,2000e3]]],"coupling depth":50e3, "min distance slab top":-200e3, "max distance slab top":300e3}], "composition models":[{"model":"uniform", "compositions":[2], "max distance slab top":100e3}] diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_18_2D_models.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_18_2D_models.wb index 32010cccd78..88ad60bcd10 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_18_2D_models.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_18_2D_models.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[0,450e3],[10e3,450e3]], "features": @@ -60,7 +60,7 @@ {"length":400e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[60]}], "composition models":[{"model":"uniform", "compositions":[1],"max distance slab top":100e3}]} ], - "temperature models":[{"model":"mass conserving", "density":3300, "plate velocity":0.02, + "temperature models":[{"model":"mass conserving", "density":3300, "spreading velocity":0.02, "subducting velocity":0.02, "ridge coordinates":[[[5e6,-1],[5e6,2000e3]]],"coupling depth":50e3, "min distance slab top":-200e3, "max distance slab top":300e3}], "composition models":[{"model":"uniform", "compositions":[2], "max distance slab top":100e3}] diff --git a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_19_spherical_models.wb b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_19_spherical_models.wb index 3b50d99959f..5ed4e34baf5 100644 --- a/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_19_spherical_models.wb +++ b/contrib/world_builder/doc/sphinx/_static/gwb_input_files/BST_19_spherical_models.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin segment"}, "cross section":[[0,0.5],[1,-0.5]], "features": @@ -60,7 +60,7 @@ {"length":400e3, "thickness":[300e3], "top truncation":[-100e3], "angle":[60]}], "composition models":[{"model":"uniform", "compositions":[1], "max distance slab top":100e3}]} ], - "temperature models":[{"model":"mass conserving", "density":3300, "plate velocity":0.02, + "temperature models":[{"model":"mass conserving", "density":3300, "spreading velocity":0.02, "subducting velocity":0.02, "ridge coordinates":[[[30,0],[30,10]]],"coupling depth":50e3, "min distance slab top":-200e3, "max distance slab top":300e3}], "composition models":[{"model":"uniform", "compositions":[2], "max distance slab top":100e3}] diff --git a/contrib/world_builder/doc/sphinx/conf.py b/contrib/world_builder/doc/sphinx/conf.py index 885a3b495d5..e607aebdba9 100644 --- a/contrib/world_builder/doc/sphinx/conf.py +++ b/contrib/world_builder/doc/sphinx/conf.py @@ -20,8 +20,8 @@ project = 'Geodynamic World Builder' copyright = '2024, The authors of the Geodynamic World Builder' # The full version, including alpha/beta/rc tags -release = '0.6.0' -html_title = "Manual GWB 0.6.0" +release = '1.0.0' +html_title = "Manual GWB 1.0.0" # -- General configuration --------------------------------------------------- diff --git a/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/building_documentation.md b/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/building_documentation.md index da945df8395..e3ca61c0a14 100644 --- a/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/building_documentation.md +++ b/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/building_documentation.md @@ -2,7 +2,7 @@ Building documentation ========================= -To build the documentation locally, you first need to ensure you have the right Python packages installed. The list of packages required to build the documentation is located in `$WORLD_BUILDER_SOURCE_DIR/doc/requirements.txt`, and can be installed using +To build the documentation locally, you first need to ensure you have the right Python packages installed. The list of packages required to build the documentation is located in `$WORLD_BUILDER_SOURCE_DIR/doc/requirements.txt`, and can be installed using: :::{code-block} pip install -r $WORLD_BUILDER_SOURCE_DIR/doc/requirements.txt @@ -15,7 +15,9 @@ cd $WORLD_BUILDER_SOURCE_DIR/build \\ cmake -D WB_BUILD_DOCUMENTATION=ON . ::: -This adds the target for the documentation in `$WORLD_BUILDER_SOURCE_DIR/build/doc`, to finish building the documentation run the final commands: +This adds the target for the documentation in `$WORLD_BUILDER_SOURCE_DIR/build/doc`. + +To finish building the documentation run the final commands: :::{code-block} cd $WORLD_BUILDER_SOURCE_DIR/build/doc \\ diff --git a/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/documentation_style_guide.md b/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/documentation_style_guide.md index 1af6c1c264f..8ff0a6cb285 100644 --- a/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/documentation_style_guide.md +++ b/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/documentation_style_guide.md @@ -2,7 +2,7 @@ Documentation style guide ========================= -Not only are there many ways to style the documents, there are also many ways with sphinx to reach the same output. To attempt to unify the style of the documentation and the documentation code, this page contains some general styling recommendations. +Not only are there many ways to style the documents, there are also many ways with Sphinx to reach the same output. To attempt to unify the style of the documentation and the documentation code, this page contains some general styling recommendations. # Page titles @@ -14,7 +14,7 @@ The page label should always be a path, separated by colons (`:`) in the followi # Including advanced elements -When possible, the use of colons (`:`) should be preferred over the use of grave accents (\`) when creating advanced elements such as todo notes, figures, code blocks, or tables. This means that: +When possible, the use of colons (`:`) should be preferred over the use of grave accents (\`) when creating advanced elements such as todo notes, figures, code blocks or tables. This means that: ::::{code-block} md :::{note} @@ -32,11 +32,11 @@ My Note # Including World Builder files -When including a world builder file, it is important to be able to focus on the parts which are important, while also enabling the reader to see the surrounding context and the whole file. Furthermore, the user should have the capability to run the models themselves and get the same output as shown. To standardize this the following structure is strongly encouraged. +When including a World Builder file, it is important to be able to focus on the parts which are important, while also enabling the reader to see the surrounding context and the whole file. Furthermore, the user should have the capability to run the models themselves and get the same output as shown. To standardize this the following structure is strongly encouraged. -1. The world builder file and a corresponding grid file need to be stored separately, either in the cookbook, or in the _static directory. -2. The use of a tab-set with a tab with important lines and a tab with the full world builder file, highlighting important lines. -3. Adding at least a link to the world builder file and a grid file to visualize it, preferably also a link to a `.pvtu` file which allows to get the same output as the figure, if present. +1. The World Builder file and a corresponding grid file need to be stored separately, either in the cookbook, or in the _static directory. +2. The use of a tab-set with a tab with important lines and a tab with the full World Builder file, highlighting important lines. +3. Adding at least a link to the World Builder file and a grid file to visualize it, preferably also a link to a `.pvtu` file which allows to get the same output as the figure, if present. 4. Add a figure of the output. Below is an example code block. diff --git a/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/important_syntax.md b/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/important_syntax.md index ce87083c111..3f7d6cf7293 100644 --- a/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/important_syntax.md +++ b/contrib/world_builder/doc/sphinx/developer_manual/contributing_to_the_documentation/important_syntax.md @@ -2,10 +2,10 @@ Important syntax =============== -The world builder is using [sphinx](https://www.sphinx-doc.org) to generate the documentation. Sphinx accepts multiple variants of extended markdown, but in this project we are using [myst](https://myst-parser.readthedocs.io). Below we list some common commands to use. +The World Builder is using [sphinx](https://www.sphinx-doc.org) to generate the documentation. Sphinx accepts multiple variants of extended markdown, but in this project we are using [myst](https://myst-parser.readthedocs.io). Below we list some common commands to use. :::{note} -Everything in this file will look like garbage in a regular markdown viewer, like if you’re viewing this on github. Viewing it on readthedocs will render everything properly. +Everything in this file will look like garbage in a regular markdown viewer, like if you’re viewing this on GitHub. Viewing it on readthedocs will render everything properly. ::: (title)= @@ -75,7 +75,7 @@ Links are written in the following way: # Admonitions -Adding notes, warnings or and todos which stand out can be done with the following syntax: +Adding notes, warnings or todos boxes can be done with the following syntax: ::::{code-block} md :::{todo} @@ -164,7 +164,7 @@ Adding figures looks similar to notes and todo's: ::::{code-block} md :::{figure} ../../../../doc/sphinx/_static/images/user_manual/basic_starter_tutorial/BST_19.png -:name: BST_19_synatx +:name: BST_19_syntax :alt: Basic Starter Tutorial section 19 highres result. :align: center @@ -173,7 +173,7 @@ Basic Starter Tutorial section 19 high resolution result. This has 8 times the r :::: :::{figure} ../../../../doc/sphinx/_static/images/user_manual/basic_starter_tutorial/BST_19.png -:name: BST_19_synatx +:name: BST_19_syntax :alt: Basic Starter Tutorial section 19 highres result. :align: center @@ -189,7 +189,7 @@ Creating code blocks is similar to making notes or todos. Instead of `{note}` yo :lineno-start: 1 :emphasize-lines: 3,4 { - "version":0.6.0, + "version":1.0, "coordinate system": {"model":"cartesian"}, } ::: @@ -201,7 +201,7 @@ The lines starting with a colon (:) specify certain parameters which can be set, :lineno-start: 1 :emphasize-lines: 3,4 { - "version":0.6.0, + "version":1.0, "coordinate system": {"model":"cartesian"}, "Features":[] } @@ -215,7 +215,7 @@ If you need to wrap a code block in a code block, you just use more : on the out :lineno-start: 1 :emphasize-lines: 3,4 { - "version":0.6.0, + "version":1.0, "coordinate system": {"model":"cartesian"}, } ::: diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/03_optional_coordinate_system.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/03_optional_coordinate_system.md index 285759dfdcb..9d54c58a11d 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/03_optional_coordinate_system.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/03_optional_coordinate_system.md @@ -54,7 +54,7 @@ Our previous minimal example looks like this: lineno-start: 1 --- { - "version": "0.6", + "version": "1.0", "features":[ ] } ``` @@ -66,7 +66,7 @@ We can be more explicit and add one line setting it to the default value. Howeve lineno-start: 1 --- { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "features":[ ] } @@ -80,7 +80,7 @@ If you want to have a spherical model, please see {ref}`part:user_manual:chap:co lineno-start: 1 --- { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin segment"}, "features":[ ] } diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/06_oceanic_plate_temperature.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/06_oceanic_plate_temperature.md index c3b61ae13ee..c02b865088f 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/06_oceanic_plate_temperature.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/06_oceanic_plate_temperature.md @@ -66,5 +66,5 @@ If you are familiar with the half space cooling model, you would also think some :alt: Basic Starter Tutorial section 6. :align: center -Basic Starter Tutorial section 6. The top part of the figure shows where the composition as been assigned as an object. Currently it only shows composition 0 as green and is now limited to 100km depth. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. This allows to better view the ridge. -``` \ No newline at end of file +Basic Starter Tutorial section 6. The top part of the figure shows where the composition has been assigned as an object. Currently it only shows composition 0 as green and is now limited to 100km depth. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. This allows a better view of the ridge. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/07_subducting_plate_oceanic_part.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/07_subducting_plate_oceanic_part.md index d3cee82ead7..5b21c56bf0d 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/07_subducting_plate_oceanic_part.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/07_subducting_plate_oceanic_part.md @@ -2,7 +2,7 @@ Subducting plate oceanic part ======================== -Now that we have made the overriding (Caribbean) plate, it is time to add the oceanic part of the subducting plate (the Atlantic). To do this, we just need to add another object to the feature list. For this plate we will assume the oceanic lithosphere is really old, and the temperature gradient in the lithosphere is therefore linear between a top temperature of 293.15K and the adiabatic temperature at the max depth of the plate. Luckily for us, this is the default in the world builder, so we will only need to provide the `model` (`linear`) and the `max depth`, which we will set to 100km. +Now that we have made the overriding (Caribbean) plate, it is time to add the oceanic part of the subducting plate (the Atlantic). To do this, we just need to add another object to the feature list. For this plate we will assume the oceanic lithosphere is really old, and the temperature gradient in the lithosphere is therefore linear between a top temperature of 293.15K and the adiabatic temperature at the max depth of the plate. Luckily for us, this is the default in the World Builder, so we will only need to provide the `model` (`linear`) and the `max depth`, which we will set to 100km. For the composition, we are going to do something a bit more special. A common thing you will probably want to do with compositional fields is have multiple layers of them within a feature. This is very easy to do in the GWB. If you remember from the last section, both the `temperature models` and `compositional models` are a list of objects. Making layers is thus as easy as adding multiple compositional models with each their own `min depth` and `max depth`. @@ -66,4 +66,4 @@ If you provide a `min depth` or `max depth` outside the min and max depth range :align: center Basic Starter Tutorial section 7. The top part of the figure shows where the composition as been assigned as an object. Currently is shows composition 0 as green, composition 1 as yellow and composition 3 as blue. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. Both the oceanic plate with the ridge and the oceanic plate with a linear temperature profile are visible. -``` \ No newline at end of file +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/08_passive_margin_variable_depth.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/08_passive_margin_variable_depth.md index e2342d10d3e..2964fea0f94 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/08_passive_margin_variable_depth.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/08_passive_margin_variable_depth.md @@ -2,7 +2,7 @@ Adding a passive margin with variable depth ============================ -Although we have hinted towards it before, there is also an [area feature](part:user_manual:chap:concepts:sec:area_features) called `continental plate`. It works as you would expect based on what you have seen with the oceanic plate, but we are going to use it to do something very cool in our model: have variable depths of a feature or even of layers within a given feature! +Although we have hinted towards it before, there is also an [area feature](part:user_manual:chap:concepts:sec:area_features) called `continental plate`. It works as you would expect based on what you have seen with the oceanic plate. Here we are going to use it to do something very cool in our model - specify a feature with variable depths for the whole feature and also layers within the given feature! To showcase this, we will be adding a passive margin to our model at the overriding plate side of our model. To start out, we need to know that both the `min depth` and `max depth` accept two types of values: a number and an array of values at points. @@ -10,9 +10,9 @@ To showcase this, we will be adding a passive margin to our model at the overrid For an example of what this looks like in technical terms, see {ref}`open_features_items_oneOf_1_max-depth`. ``` -The number input we have seen before, and just sets the maximum depth to a single value. The value at points system works a bit differently, but can be used to achieve the same result. To start out easy, this is exactly what we are going to to for the `max depth` of the continental feature. +The number input we have seen before and it sets the maximum depth of the feature to a single value. The value at points system works a bit differently and can be used to achieve the same result. To start, this is exactly what we are going to do for the `max depth` of the continental feature. -The value at points system creates a list of points, which at least include all the edge points of an object and assigns a value to them. Then to get the actual value at the rest of the points, `max depth` in our case, an interpolation between some close points is performed to get the value at that point. +The value at points system creates a list of points that includes all the initial edge points of an object and assigns a value to them. We then interpolate between close points to obtain the actual values at the remaining points according to the model type, e.g., linearly to the points set in `max depth` below. Below are two examples of how to first set the depth of two points to 200 km, and then an example of how to also set a third point to a value of 100 km. @@ -86,5 +86,5 @@ If you provide a point twice, explicitly, or implicitly through the use of the c :alt: Basic Starter Tutorial section 8. :align: center -Basic Starter Tutorial section 8. The top part of the figure shows where the composition as been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow and composition 3 as blue. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. The added continental plate with variable thickness of it's two layers is now visible on the left side of the image. -``` \ No newline at end of file +Basic Starter Tutorial section 8. The top part of the figure shows where the composition has been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow and composition 3 as blue. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. The added continental plate with variable thickness of its two layers is now visible on the left side of the image. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/09_optional_adding_mantle_layer.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/09_optional_adding_mantle_layer.md index 3acbfad3b2d..66bc60fc865 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/09_optional_adding_mantle_layer.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/09_optional_adding_mantle_layer.md @@ -2,13 +2,13 @@ Optional adding mantle layer ============================ -Sometimes you want precise control over what is happening in the mantle. In this case we want to have a specific composition for the mantle. +Sometimes you want precise control over what is happening in the mantle. In this case, we would want to have a specific composition for the mantle. ```{note} -This is not always needed. For example in the visco-plastic material model in the FEM ASPECT, if no composition is defined, it is assumed to be a background composition. If you don't define a composition in an area in the world builder, the world builder will tell anyone who wants to know the composition at that location that the fraction of every composition is zero there. +This is not always needed. For example in the visco-plastic material model in the FEM ASPECT, if no composition is defined, it is assumed to be a background composition. If you don't define a composition in an area in the World Builder, the World Builder will tell anyone who wants to know the composition at that location that the fraction of every composition is zero. ``` -We are going to add the mantle layer as the first object in the feature list, so that other features can override it if necessary. The model name for a mantle layer is `mantle layer`, and we will name it "upper mantle". Because we already have used compositions 0,1 and 3, and will use 2 later, we are going to set this to composition 4. We could also specify a different temperature model for this. The default is `adiabatic`, but you can easily set it to something else, or change the parameters of the adiabatic gradient. +We are going to add the mantle layer as the first object in the feature list so that subsequent features can override it if desired. The model name for a mantle layer is `mantle layer`, and we will name it "upper mantle". Because we already have used compositions 0, 1 and 3 and will use 2 later, we will set this object to composition 4. We could also specify a different temperature model. The default is `adiabatic` but you can easily set it to something else or change the parameters of the adiabatic gradient. ```{note} The [potential mantle temperature](open_features_items_oneOf_3_temperature-models_items_oneOf_1_potential-mantle-temperature), the [thermal expansion coefficient](open_features_items_oneOf_3_temperature-models_items_oneOf_1_thermal-expansion-coefficient) and the [specific heat](open_features_items_oneOf_3_temperature-models_items_oneOf_1_specific-heat) here have a default value of -1. This is, like we have seen before, a special value. In this case it means that the global value is used (as you can read in the documentation of the value). It is **strongly recommended to only set the global values** so that the whole setup remains self-consistent, but if you do want to change it in individual locations, you can! @@ -68,5 +68,5 @@ The [potential mantle temperature](open_features_items_oneOf_3_temperature-model :alt: Basic Starter Tutorial section 9. :align: center -Basic Starter Tutorial section 9. The top part of the figure shows where the composition as been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 3 as blue and composition 4 is shown as red. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. We will not show composition 4 in future figures anymore to be able to show other features more clearly. -``` \ No newline at end of file +Basic Starter Tutorial section 9. The top part of the figure shows where the composition has been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 3 as blue and composition 4 is shown as red. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. We will not show composition 4 in future figures anymore to be able to show other features more clearly. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/10_adding_basic_subducting_plate.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/10_adding_basic_subducting_plate.md index a6139947f53..140c2e2bc3e 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/10_adding_basic_subducting_plate.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/10_adding_basic_subducting_plate.md @@ -1,18 +1,18 @@ (part:user_manual:chap:basic_starter_tutorial:sec:BST_10_adding_basic_subducting_plate)= -Adding basic subducting plate +Adding a basic subducting plate ============================ -Now that we have a solid understanding of how area features like `oceanic plate`, `continental plate` and `mantle layer` work, we can start to take a look at [line features](part:user_manual:chap:concepts:sec:line_features). In this case we are going to take a look at the `subducting plate`, but note that there is also the `fault`. On a fundamental level, they both function in a very similar way, with the main difference being that the slab has a slab surface and a up and down direction from that surface, while the fault has a center surface and is symmetric on both sides. The temperature and compositional models available for each may also differ. +Now that we have a solid understanding of how area features like `oceanic plate`, `continental plate` and `mantle layer` work, we can start to take a look at [line features](part:user_manual:chap:concepts:sec:line_features). In this case we are going to take a look at the `subducting plate`, but note that there is also the `fault` feature. On a fundamental level, they both function in a very similar way. The main difference is that the slab has a slab surface and a up and down direction from that surface while the fault has a center surface and is symmetric on both sides. The temperature and compositional models available for each may also differ. There are five properties these line features objects require: -1. `model`: The name of the model, e.g. `subducting plate` or `fault` +1. `model`: The name of the model, e.g., `subducting plate` or `fault` 2. `name`: Like with area features, a descriptive name to improve readability of the file. -3. `coordinates`: The location of where the feature intersects with the surface. For a subducting plate, this would be the location of the trench. This is what the line in line feature refers to, these coordinates represent a line on a map view. -4. `dip point`: This is often most confusing to new users, but the concept is really simple. If the slab or fault makes an angle, we need to decide what side of the line (trench for a slab) the slab or fault is dipping. There are many ways of doing this, but in GWB it is done through simply defining a point on one side of the line. The slab or fault will then dip in that direction. It is often good to choose a point far away from the trench, especially if the trench makes a lot of curves. -5. `segments`: Defines the downwards part of the subducting plate (i.e. the slab) or fault. Each segment requires at least a `length` as a number, a `thickness`, which is an array of one or two numbers and an `angle`, which is also an array of one or two numbers. We will first show an example to get our first slab in the model before explaining further. It will hopefully be easier to understand when you see it in action in this and the next few sections. +3. `coordinates`: The location of where the feature intersects with the surface. For a subducting plate, this would be the location of the trench. This is what the line in line feature refers. These coordinates represent a line in a map view. +4. `dip point`: This is often the most confusing concept to new users but it is really quite simple. If the slab or fault makes an angle, we need to decide which side of the line (or trench for a slab) the slab or fault is dipping. There are many ways of doing this but in GWB it is done through simply defining a point on one side of the line. The slab or fault will then dip in that direction. It is often good to choose a point far away from the trench especially if the trench makes a lot of curves. +5. `segments`: Defines the downwards part of the subducting plate (i.e., the slab) or fault. Each segment requires at least a `length` as a number, a `thickness` which is an array of one or two numbers and an `angle` which is also an array of one or two numbers. We will first show an example to get our first slab in the model before explaining further. It will hopefully be easier to understand when you see it in action in this and the next few sections. -For the example in this section, we will make a trench at the interface of two area features, where the slab is dipping with a constant angle of 60 degrees in the direction of the overriding plate. We make this slab (segment) 300 km long and give it a constant thickness of 100 km. So we set a dip point at a location on the side of the overriding plate with respect to the trench. In this case the origin (0,0) will work fine and the location is shown as the turquoise sphere in the figure below. +For the example in this section, we will make a trench at the interface of two area features where the slab is dipping with a constant angle of 60 degrees in the direction of the overriding plate. We make this slab (segment) 300 km long and give it a constant thickness of 100 km. We set a dip point at a location on the side of the overriding plate with respect to the trench. In this case the origin (0,0) will work fine and the location is shown as the turquoise sphere in the figure below. ```{note} The result will not change based on the exact location of the dip point, as long as it is on one side of all the lines formed by connecting the line features coordinate points. @@ -76,5 +76,5 @@ The explanation can be significantly improved by adding conceptual figures :alt: Basic Starter Tutorial section 10. :align: center -Basic Starter Tutorial section 10. The top part of the figure shows where the composition as been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The turquoise sphere is the location of the dip point. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. +Basic Starter Tutorial section 10. The top part of the figure shows where the composition has been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The turquoise sphere is the location of the dip point. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. ``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/11_dip_change_in_segment.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/11_dip_change_in_segment.md index 0952caadd50..0c983761700 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/11_dip_change_in_segment.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/11_dip_change_in_segment.md @@ -2,9 +2,9 @@ Dip change in segment ===================== -What we have achieved in the last section was already great, but slabs in the Earth are usually not thought of as straight lines. For example, near the surface they start with a dip angle of zero and then increase their dip with depth to maybe 60 degrees. So, how do we do that in the world builder? +What we have achieved in the last section was already great but slabs in the Earth are usually not thought of as straight lines. For example, near the surface they start with a dip angle of zero and then may increase their dip with depth to maybe 60 degrees. So, how do we do this in the World Builder? -This is where the array for the `angle` comes in. Last time we provided just one value, but we are also allowed to provide two values. If you provide two values, the first value is the dip angle at the top of the segment and the second value is the dip angle at the bottom of the segment. So to achieve this we only need to add a zero before the 60 in the `angle` array. +This is where the array for the `angle` comes in. Last time we provided just one value but we are also allowed to provide two values. If you provide two values, the first value is the dip angle at the top of the segment and the second value is the dip angle at the bottom of the segment. To achieve this we only need to add a zero before the 60 in the `angle` array. ::::::{tab-set} @@ -69,5 +69,5 @@ The explanation can be significantly improved by adding conceptual figures :alt: Basic Starter Tutorial section 11. :align: center -Basic Starter Tutorial section 11. The top part of the figure shows where the composition as been assigned as an object. Currently is shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. -``` \ No newline at end of file +Basic Starter Tutorial section 11. The top part of the figure shows where the composition has been assigned as an object. Currently is shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/12_subducting_plate_temperatures.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/12_subducting_plate_temperatures.md index 6a99a102fa3..a865fc9aa54 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/12_subducting_plate_temperatures.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/12_subducting_plate_temperatures.md @@ -2,9 +2,9 @@ Subducting plate temperatures ============================= -Before exploring the segments more, let's briefly discuss temperature model for the subducting plates. The temperature structure of a slab can be quite complicated. +Before exploring the segments more, let's briefly discuss temperature models for the subducting plates. The temperature structure of a slab can be quite complicated. -A model which was often used is a temperature structure from or based on the McKenzie temperature structure {cite:p}`McKenzie_1970`. In the world builder this is implemented as the subducting plate temperature model called the `plate model` {cite:t}`turcotte_schubert_2014`. If you want to use this, you will need to provide a reference density and a plate velocity like so: +A model which was often used as a temperature structure is from or based on the McKenzie temperature structure {cite:p}`McKenzie_1970`. In the World Builder this is implemented as the subducting plate temperature model called the `plate model` ({cite:t}`turcotte_schubert_2014`). If you want to use this, you will need to provide a reference density and a plate velocity like: ```{code-block} json --- lineno-start: 1 @@ -14,7 +14,7 @@ lineno-start: 1 ] ``` -This is still perfectly valid and usable, but the approach has some fundamental issues, including that the way the temperature structure is set up is not mass conservative. This is why the `mass conserving` slab temperature model was developed (Todo: insert reference when paper is done). This temperature model also brings a lot of other large and small improvements, which we can't go over in this starter tutorial. Although this temperature is generally recommended over the older McKenzie model, it is also is a bit more complicated in usage. So to keep this tutorial simple, we will use the `plate model` here, but we strongly recommend looking into the `mass conserving` temperature model for subduction models. +This is still perfectly valid and usable but the approach has some fundamental issues including that the temperature structure set-up is not mass conservative. This is why the `mass conserving` slab temperature model was developed (Todo: insert reference when paper is done). This temperature model also brings a lot of other large and small improvements which we can't go over in this starter tutorial. Although this temperature is generally recommended over the older McKenzie model, it is also is a bit more complicated in usage. So to keep this tutorial simple, we will use the `plate model` here, but we strongly recommend looking into the `mass conserving` temperature model for subduction models. ```{todo} Create a cookbook for the mass conserving temperature structure and point to it from here. @@ -76,5 +76,5 @@ Create a cookbook for the mass conserving temperature structure and point to it :alt: Basic Starter Tutorial section 12. :align: center -Basic Starter Tutorial section 12. The top part of the figure shows where the composition as been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. -``` \ No newline at end of file +Basic Starter Tutorial section 12. The top part of the figure shows where the composition has been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/13_subducting_slab_adding_a_segment.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/13_subducting_slab_adding_a_segment.md index 0999b923442..5dcda97ee4b 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/13_subducting_slab_adding_a_segment.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/13_subducting_slab_adding_a_segment.md @@ -1,8 +1,8 @@ (part:user_manual:chap:basic_starter_tutorial:sec:13_subducting_slab_adding_a_segment)= -Subducting slab adding a segment +Subducting slab: adding a segment ================================ -Although our slabs can now bend, real slabs actually can bend many times in many different ways. The way this is parameterized for faults and slab in the world builder is through dividing the slab into in multiple segments. In other words, a segment is a downwards section of a slab or a fault. Each segment can have their own parameters and models attached to it. +Although our slabs can now bend, real slabs actually can bend many times in many different ways. The way this is parameterized for faults and slab in the World Builder is through dividing the slab into multiple segments. A segment is a downwards section of a slab or a fault. Each segment can have their own parameters and models attached to it. So how do we achieve this? We just add a second object to the segments line. Usually you will want to make sure that the end of one segment has the same angle and thickness as the beginning of the next segment. So in this case we end the first segment with an angle of 60 degrees and begin the second segment also with an angle of 60 degrees. @@ -60,5 +60,5 @@ So how do we achieve this? We just add a second object to the segments line. Usu :alt: Basic Starter Tutorial section 13. :align: center -Basic Starter Tutorial section 13. The top part of the figure shows where the composition as been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. -``` \ No newline at end of file +Basic Starter Tutorial section 13. The top part of the figure shows where the composition has been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/14_different_models_in_segments.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/14_different_models_in_segments.md index bdfb61c761f..6dc0d1a08b3 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/14_different_models_in_segments.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/14_different_models_in_segments.md @@ -2,9 +2,9 @@ Different models in segments ============================ -Slabs and faults can be heterogeneous in depth, and this is very easy to represent in the world builder. The segments we just added allow for defining temperature and compositional models, which overwrite the temperature and compositional models for the whole feature. You can think of it this way: you set the feature models for each segment in the feature (line 54 and 55) and then you overwrite that feature model in the segments where you want something else. +Slabs and faults can be heterogeneous in depth. This is very easy to represent in the World Builder. The segments we just added allow for defining temperature and compositional models that overwrite the temperature and compositional models for the whole feature. You can think of it this way (remember the painting analogy!): you set the feature models for each segment in the feature (line 54 and 55) and then you overwrite that feature model in the segments where you want something else. -In this case we want to have two layers in the first segment, where the upper layer is the same as the upper layer of the oceanic plate and the lower layer is the same as the rest of the subducting plate. This layout is mainly chosen to highlight how the transition between the oceanic plate can both be seamless and sharp. +In this case we want to have two layers in the first segment where the upper layer is the same as the upper layer of the oceanic plate and the lower layer is the same as the rest of the subducting plate. This layout is mainly chosen to highlight how the transition between the oceanic plate can both be seamless and sharp. ::::::{tab-set} @@ -61,5 +61,5 @@ In this case we want to have two layers in the first segment, where the upper la :alt: Basic Starter Tutorial section 14. :align: center -Basic Starter Tutorial section 14. The top part of the figure shows where the composition as been assigned as an object. Currently is shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. -``` \ No newline at end of file +Basic Starter Tutorial section 14. The top part of the figure shows where the composition has been assigned as an object. Currently it shows composition 0 as green, composition 1 as yellow, composition 2 as purple and composition 3 as blue. Composition 4 is not shown to be able to see the slab. The front half of the overriding plate (composition 1) has also been removed to be able to better view the slab. The bottom part shows the temperature as seen slightly from below where only temperatures between 300K and 1600K are shown. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/15_different_segments_in_sections.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/15_different_segments_in_sections.md index 59bfb3f683e..52046a25871 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/15_different_segments_in_sections.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/15_different_segments_in_sections.md @@ -2,15 +2,15 @@ Different segments in sections =============================== -Slabs and faults may not only vary in depth, but may also vary a lot laterally. To accomplish this in the world builder, we will need to introduce the term "sections". Sections are a way to overwrite the segments at a specified coordinate. +Slabs and faults may vary in depth as well as laterally. To accomplish this in the World Builder, we will need to introduce the term "sections". Sections are a way to overwrite the segments at a specified coordinate. ```{note} One way of thinking about segments and sections is that together they form a 2D grid. The segments form one axis (down dip) and the sections form the other axis (along strike). ``` -**Sections replace all the segments at that coordinate, and it is required that all sections have the same number of segments**. +**Sections replace all the segments at that coordinate. It is required that all sections have the same number of segments**. -In this case we are going to change the values for the first coordinate, which is coordinate 0. We keep the length the same as the default first segment (compare lines 48 and 75), but we make the second segment a bit shorter (compare lines 52 and 58). We also do not change the feature composition model in the first segment, but we do change it in the second segment, where we set it equal to composition of the lower part of the oceanic plate for the whole thickness of the segment (line 59). +In this case we are going to change the values for the first coordinate, which is coordinate 0. We keep the length the same as the default first segment (compare lines 48 and 75), but we make the second segment a bit shorter (compare lines 52 and 58). We also do not change the feature composition model in the first segment, but we do change it in the second segment where we set it equal to composition of the lower part of the oceanic plate for the whole thickness of the segment (line 59). ::::::{tab-set} diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/16_mass_conserving.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/16_mass_conserving.md index edc04db6ad6..968397bc597 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/16_mass_conserving.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/16_mass_conserving.md @@ -2,10 +2,10 @@ Changing to a mass conserving slab temperature =============================== -In [the section on slab temperature](part:user_manual:chap:basic_starter_tutorial:sec:12_subducting_plate_temp), we added the {cite:t}`McKenzie_1970` (that is the plate model) slab temperature structure. Although this is a good first order approximation of a slab temperature, the recently develop {cite:t}`Billen_Fraters_AGU_2023` temperature model has many advantages over it, with the downside that is it a bit more involved to use. In this chapter we will just switch out the plate model with mass conserving, without going too much into the detail of how to actually use it in practice. If you plan to use the mass conserving temperature model, please first read through both the [Simple Subduction Model: 2D Cartesian](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_cartesian)and [Simple Subduction Model: 2D Chunk](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_chunk) cookbooks. +In the section on [slab temperature](part:user_manual:chap:basic_starter_tutorial:sec:12_subducting_plate_temp), we added the {cite:t}`McKenzie_1970` (that is the plate model) slab temperature structure. Although this is a good first order approximation of a slab temperature, the recently develop {cite:t}`Billen_Fraters_AGU_2023` temperature model has many advantages over it, with the downside that is it a bit more involved to use. In this chapter we will just switch out the plate model with mass conserving without going too much into the detail of how to actually use it in practice. If you plan to use the mass conserving temperature model, please first read through both the [Simple Subduction Model: 2D Cartesian](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_cartesian)and [Simple Subduction Model: 2D Chunk](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_chunk) cookbooks. ## Changing the Subducting oceanic plate temperature -One of the advantages of using the mass conserving slab temperature model is that it doesn't assume a linear temperature structure at the trench. This means we can seamlessly connect a half space cooling model or a plate model to the mass conseving slab. But for that to make sense, we need to change the subucting oceanic plate to a half space cooling model (the default for the mass conserving temperature model). In this case we will put the ridge far away. Because the half space model can affect the temperature at much deeper depths, we also need to change the max depth for the feature and models. Note that we will want to keep the max depth of the composition 100km, so we now need to set a max depth in the lowest layer of the composition model. +One of the advantages of using the mass conserving slab temperature model is that it doesn't assume a linear temperature structure at the trench. This means we can seamlessly connect a half space cooling model or a plate model to the mass conserving slab. But for that to make sense, we need to change the subucting oceanic plate to a half space cooling model (the default for the mass conserving temperature model). In this case we will put the ridge far away. Because the half space model can affect the temperature at much deeper depths, we also need to change the max depth for the feature and models. Note that we will want to keep the max depth of the composition at 100km, so we now need to set a max depth in the lowest layer of the composition model. ::::::{tab-set} @@ -59,9 +59,9 @@ One of the advantages of using the mass conserving slab temperature model is tha ## Changing to a mass conserving temperature model -One of the main idea's behind the mass consering model is that the the slab not just warms up, but that the surrounding material cools down as well, thus conserving energy/mass. This means that the subducting plate feature needs to be able to change the temperature outside the slab. Given that a feature can only change the temperature inside it's defined area we need to expand that area. This means we need to increase the thickness, which we set to 300 km. But this only extends the slab feature downwards, while we also want to cool down the material above the slab. For this we can use the `top truncation` parameter. The `top truncation` parameter is designed to make the slab thinner from above, but when set to a negative value we can actually make it thicker! In this case we will set it to -100 km. +One of the main ideas behind the mass conserving model is that the the slab not just warms up, but that the surrounding material cools down as well, thus conserving energy/mass. This means that the subducting plate feature needs to be able to change the temperature outside the slab. Given that a feature can only change the temperature inside it's defined area we need to expand that area. Hence, we need to increase the thickness which we originally set to 300 km. But this only extends the slab feature downwards, while we also want to cool down the material above the slab. For this we can use the `top truncation` parameter. The `top truncation` parameter is designed to make the slab thinner from above but when set to a negative value we can actually make it thicker! In this case we will set it to -100 km. -Now that all the preparatory work is done, we can finally add the mass conserving model itself. The two most important new parameter are the `ridge coordinates`, which should be the same as the subducting oceanic plate ridge coordinates in this case and a parameter called `coupling depth`. The `coupling depth` defines the depth at which the slab surface first comes in contact with the hot mantle wedge. +Now that all the preparatory work is done, we can finally add the mass conserving model itself. The two most important new parameter are the `ridge coordinates` which should be the same as the subducting oceanic plate ridge coordinates in this case, and a parameter called `coupling depth`. The `coupling depth` defines the depth at which the slab surface first comes in contact with the hot mantle wedge. ::::::{tab-set} @@ -119,7 +119,7 @@ Now that all the preparatory work is done, we can finally add the mass conservin :alt: Basic Starter Tutorial section 18 highres result. :align: center -Basic Starter Tutorial section 16 high resolution result, were a mass conserving slab temperature is used. This has 8 times the resolution then the grid file above. +Basic Starter Tutorial section 16 high resolution result, where a mass conserving slab temperature is used. This has 8 times the resolution than the grid file above. ``` -These are only the very basics of what the mass conserving temperature model can do. If you are interested in using this temperature model, please read the [Simple Subduction Model: 2D Cartesian](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_cartesian)and [Simple Subduction Model: 2D Chunk](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_chunk) cookbooks. \ No newline at end of file +These are only the very basics of what the mass conserving temperature model can do. If you are interested in using this temperature model, please read the [Simple Subduction Model: 2D Cartesian](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_cartesian)and [Simple Subduction Model: 2D Chunk](part:user_manual:chap:cookbooks:sec:simple_subduction_2d_chunk) cookbooks. diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/17_plume.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/17_plume.md index fd2220eab10..dba66bc9a0b 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/17_plume.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/17_plume.md @@ -2,7 +2,7 @@ Adding a mantle plume =============================== -The last feature we will be adding in this tutorial is the `plume`. The plume is defined by a set of coordinates which represent where the plume is at different depths. The depth are set through the `cross section depths` parameter, hich requires as many depths as there are coordinates. Each cross-section is an ellipse, for which the parameters can be set individually. Please see [the plume feature description](part:user_manual:chap:parameter_documentation:sec:features:subsec:plume) for more information on what each of the parameters do. In this case we will increase the eccentricity of the plume at the top. +The last feature we will be adding in this tutorial is the `plume`. The plume is defined by a set of coordinates which represent where the plume is at different depths. The depths are set through the `cross section depths` parameter which requires as many depths as there are coordinates. Each cross-section is an ellipse for which the parameters can be set individually. Please see [the plume feature description](part:user_manual:chap:parameter_documentation:sec:features:subsec:plume) for more information on what each of the parameters do. In this case we will increase the eccentricity of the plume at the top. With the definition of the area the feature plume contains completed, we can now add a temperature and compositional structure. A gaussian is a good first order approximation of the temperature, so we will add that as the temperature model. This temperature model allows you to set change the gaussian distribution parameters for each depth segment. Note that in this case we are not replacing the temperature, but adding to the temperature which was already there. @@ -62,8 +62,8 @@ With the definition of the area the feature plume contains completed, we can now :alt: Basic Starter Tutorial section 17 highres result. :align: center -Basic Starter Tutorial section 17 high resolution result, were the plume feature is used. In both the top and bottom figure, but area where the plume feature is present is shown. On the top this area is colored red, and on the bottom figure it is colored by temperature. This has 8 times the resolution then the grid file above. +Basic Starter Tutorial section 17 high resolution result, where the plume feature is used. In both the top and bottom figure, the area where the plume feature is present is shown. On the top this area is colored red, and on the bottom figure it is colored by temperature. This has 8 times the resolution then the grid file above. ``` -This covers the full complexity of the world builder model we are building for this tutorial. Well done for making it this far! You should now be able to start building your own models in the world builder. In the next two tutorials, we are going to take a look at how to create a 2D model from this 3D model and how to make this into a spherical model. \ No newline at end of file +This covers the full complexity of the World Builder model we are building for this tutorial. Well done for making it this far! You should now be able to start building your own models in the World Builder. In the next two tutorials, we are going to take a look at how to create a 2D model from this 3D model and how to make this into a spherical model. diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/18_2D_models.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/18_2D_models.md index 68d0ab68efa..30c3afa2212 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/18_2D_models.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/18_2D_models.md @@ -2,14 +2,14 @@ 2D models ========= -2D models in the world builder are nothing more than a cross section through a 3D model. This means that what you need to do to be able to create a 2D model is to state in the world builder file the origin of the cross section (where x=0 and depth=0) and in what direction the cross section should go (the positive x direction). You can set this with the global parameter `cross section`. It takes two points. The first point is the origin, and the second point is the direction of the cross section. +2D models in the World Builder are nothing more than a cross section through a 3D model. To create a 2D model, you must state in the World Builder file the origin of the cross section (where x=0 and depth=0) and in what direction the cross section should go (the positive x direction). You can set this with the global parameter `cross section`. It takes two points. The first point is the origin, and the second point is the direction of the cross section. ```{note} -The origin of the 3D model doesn't have to be the same as the origin of the 2D cross section. In the model below the origin of the 2D cross section is located at [0,200e3] (plane view, depth=0). +The origin of the 3D model doesn't have to be the same as the origin of the 2D cross section. In the model below, the origin of the 2D cross section is located at [0,450e3] (plane view, depth=0). ``` ```{note} -Even if you have a `cross section` defined in your world builder file, you can still use it for 3D models. If you want to use 2D models, you will need to have a cross section defined. +Even if you have a `cross section` defined in your World Builder file, you can still use it for 3D models. If you want to use 2D models, you will need to have a cross section defined. ``` Now, let's add a cross section through the slab in our model. @@ -73,7 +73,7 @@ You need to change the gridfile to a 2D grid to be able to see the difference. :alt: Basic Starter Tutorial section 18 highres result. :align: center -The location of the 2D cross-section in the 3D model. The turquoise arrow show at the dot `[0,450e3]` and at the arrow head `[100e3,450e3]`, where `[0,450e3]` is the origin of the 2D plane. The semi-transparent turquoise plane show the full cross section location. +The location of the 2D cross-section in the 3D model. The turquoise arrow shows the cross section origin, the dot at `[0,450e3]`, and direction, arrow head at `[100e3,450e3]` of the 2D plane. The semi-transparent turquoise plane show the full cross section location. ``` ```{figure} ../../../../doc/sphinx/_static/images/user_manual/basic_starter_tutorial/BST_18.png @@ -81,5 +81,5 @@ The location of the 2D cross-section in the 3D model. The turquoise arrow show a :alt: Basic Starter Tutorial section 18 highres result. :align: center -Basic Starter Tutorial section 18 high resolution result. This has 4 times the resolution than the grid file above. Note that some of the issues with the slab, like it's abrubt ending can be solved by using the mass conserving temperature model instead of the McKenzie plate model. -``` \ No newline at end of file +Basic Starter Tutorial section 18 high resolution result. This has 4 times the resolution than the grid file above. Note that some of the issues with the slab, like its abrubt ending can be solved by using the mass conserving temperature model instead of the McKenzie plate model. +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/19_spherical_models.md b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/19_spherical_models.md index e5594fbf4bc..ef783420181 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/19_spherical_models.md +++ b/contrib/world_builder/doc/sphinx/user_manual/basic_starter_tutorial/19_spherical_models.md @@ -4,12 +4,12 @@ Spherical models We have already mentioned spherical coordinates in {ref}`part:user_manual:chap:basic_starter_tutorial:sec:03_coordinate_system`. In this section we will focus on converting our current Cartesian model to a spherical model. -To make this change two changes need to be made: +To convert, two changes need to be made: 1. The coordinate system should be set to spherical and a depth method needs to be set. 2. The coordinates you provide need to be changed from Cartesian to spherical. -To simplify the transition for this tutorial, we will just divide each coordinate by 10000, which will get is into a nice degree range. +To simplify the transition for this tutorial, we will just divide each coordinate by 10000 which will put this into a nice degree range. ::::::{tab-set} @@ -67,4 +67,4 @@ To simplify the transition for this tutorial, we will just divide each coordinat :align: center Basic Starter Tutorial section 19 high resolution result. This has 8 times the resolution than the grid file above. Note that you can see the Earth's curvature! -``` \ No newline at end of file +``` diff --git a/contrib/world_builder/doc/sphinx/user_manual/installation/installing_prerequisites.md b/contrib/world_builder/doc/sphinx/user_manual/installation/installing_prerequisites.md index 455f8ed877f..9f74367994f 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/installation/installing_prerequisites.md +++ b/contrib/world_builder/doc/sphinx/user_manual/installation/installing_prerequisites.md @@ -71,31 +71,16 @@ There are three main ways to install on Windows. The recommended way is to use Linux subsystems for Windows (see ). In this case, start Linux in the Windows terminal and follow the Linux installation description. -If you want to have a native installation, the two main options are using MinGW or Visual Studio. -In both cases, it might be possible to install both the Fortran wrapper and the Python wrapper, but we have not gotten it to work on our tester setup. -Currently we know that with MinGW you can create a successful Fortran wrapper, and with Visual Studio you can create a successful Python wrapper. -The problem with Python in MinGW is not entirely clear, but it seems that only Visual Studio compilers are supported. -So it may or may not be able to find the GWB Python module when it is compiled and installed. -The problem with Fortran with Visual Studio is that you need to install a Fortran compiler somehow, so if you know how to do that, please contribute. +If you want to have a native installation we recommend using Visual Studio to compile the world builder. The only problem that we are aware of is using Fortran with Visual Studio. The problem here is that you need to install a Fortran compiler somehow, so if you know how to do that, please contribute. ::::{tab-set} -:::{tab-item} MinGW -1. If not already installed, install Chocolatey (). In a PowerShell, you can install it with the following command (in one line): `Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(’https://chocolatey.org/install.ps1’))` -2. Run in a terminal `choco install msys2` -3. Open a mingw64 terminal -4. Run in a mingw64 terminal `pacman –noconfirm -Syu` -5. Run in a mingw64 terminal `pacman -S mingw-w64-x86_64-toolchain` -6. Run in a mingw64 terminal `pacman –noconfirm -S dos2unix` -::: - :::{tab-item} Visual Studio 1. If not already installed, install Chocolatey (). In a PowerShell, you can install it with the following command (in one line): `Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(’https://chocolatey.org/install.ps1’))` 2. Run in a terminal `choco install cmake` 3. For a Python wrapper, run in a terminal `choco install python` 4. For a Python wrapper, run in a terminal `choco install swig` ::: - :::: ::::: :::::: diff --git a/contrib/world_builder/doc/sphinx/user_manual/parameter_documentation/features/index.md b/contrib/world_builder/doc/sphinx/user_manual/parameter_documentation/features/index.md index 4af711ea535..05ab6a5e639 100644 --- a/contrib/world_builder/doc/sphinx/user_manual/parameter_documentation/features/index.md +++ b/contrib/world_builder/doc/sphinx/user_manual/parameter_documentation/features/index.md @@ -2,7 +2,7 @@ Features ====================== -There are a number of different features that can be added to the world builder world: +There are a number of different features that can be added to the World Builder world: ```{toctree} :caption: Features diff --git a/contrib/world_builder/doc/world_builder_declarations.schema.json b/contrib/world_builder/doc/world_builder_declarations.schema.json index ad7ec82e445..5466eb6031b 100644 --- a/contrib/world_builder/doc/world_builder_declarations.schema.json +++ b/contrib/world_builder/doc/world_builder_declarations.schema.json @@ -1391,6 +1391,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -2160,6 +2205,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -2740,6 +2830,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -3390,6 +3525,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -3970,6 +4150,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -5098,6 +5323,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -6362,7 +6632,159 @@ "oneOf": [ { "type": "object", - "description": "Uniform compositional model. Sets constant compositional field.", + "description": "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'.", + "additionalProperties": false, + "required": [ + "model", + "compositions" + ], + "properties": { + "model": { + "default value": "", + "type": "string", + "description": "The name of the composition model.", + "enum": [ + "tian water content" + ] + }, + "min depth": { + "description": "The depth in meters from which the composition of this feature is present.", + "oneOf": [ + { + "default value": 0.0, + "type": "number", + "description": "" + }, + { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "additionalProperties": false, + "minItems": 1, + "maxItems": 2, + "description": "", + "items": { + "anyOf": [ + { + "type": "number", + "default value": 0.0 + }, + { + "type": "array", + "minItems": 1, + "maxItems": 4294967295, + "items": { + "type": "array", + "minItems": 1, + "maxItems": 2, + "items": { + "type": "number" + } + } + } + ] + } + } + } + ] + }, + "max depth": { + "description": "The depth in meters to which the composition of this feature is present.", + "oneOf": [ + { + "default value": 1.7976931348623157e308, + "type": "number", + "description": "" + }, + { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "additionalProperties": false, + "minItems": 1, + "maxItems": 2, + "description": "", + "items": { + "anyOf": [ + { + "type": "number", + "default value": 1.7976931348623157e308 + }, + { + "type": "array", + "minItems": 1, + "maxItems": 4294967295, + "items": { + "type": "array", + "minItems": 1, + "maxItems": 2, + "items": { + "type": "number" + } + } + } + ] + } + } + } + ] + }, + "compositions": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the labels of the composition which are present there.", + "items": { + "default value": 0, + "type": "integer", + "description": "" + } + }, + "density": { + "default value": 3000.0, + "type": "number", + "description": "The reference density used for determining the lithostatic pressure for calculating the bound water content." + }, + "lithology": { + "default value": "peridotite", + "type": "string", + "description": "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'." + }, + "initial water content": { + "default value": 5.0, + "type": "number", + "description": "The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology." + }, + "cutoff pressure": { + "default value": 10.0, + "type": "number", + "description": "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'." + }, + "operation": { + "default value": "replace", + "type": "string", + "description": "Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.", + "enum": [ + "replace", + "replace defined only", + "add", + "subtract" + ] + } + } + }, + { + "type": "object", + "description": "Uniform compositional model. Sets constant compositional field.", "additionalProperties": false, "required": [ "model", @@ -6828,6 +7250,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -7324,6 +7791,137 @@ "type": "array", "items": { "oneOf": [ + { + "type": "object", + "description": "Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution.", + "additionalProperties": false, + "required": [ + "model", + "compositions" + ], + "properties": { + "model": { + "default value": "", + "type": "string", + "description": "The name of the grains model.", + "enum": [ + "random uniform distribution deflected" + ] + }, + "min depth": { + "default value": 0.0, + "type": "number", + "description": "The depth in meters from which the grains of this feature are present." + }, + "max depth": { + "default value": 1.7976931348623157e308, + "type": "number", + "description": "The depth in meters to which the grains of this feature are present." + }, + "compositions": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the integer labels of the composition which are present there.", + "items": { + "default value": 0, + "type": "integer", + "description": "" + } + }, + "orientation operation": { + "default value": "replace", + "type": "string", + "description": "Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero.", + "enum": [ + "replace", + "multiply" + ] + }, + "grain sizes": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1.", + "items": { + "default value": 1.0, + "type": "number", + "description": "" + } + }, + "normalize grain sizes": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1.", + "items": { + "default value": true, + "type": "boolean", + "description": "" + } + }, + "deflections": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list of the deflections of all of the grains in each composition between 0 and 1.", + "items": { + "default value": 1.0, + "type": "number", + "description": "" + } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + } + }, { "type": "object", "description": "Uniform grains model. All grains start exactly the same.", @@ -7659,7 +8257,8 @@ "additionalProperties": false, "required": [ "model", - "plate velocity" + "spreading velocity", + "subducting velocity" ], "properties": { "model": { @@ -7695,8 +8294,8 @@ "type": "number", "description": "The reference density of the subducting plate in $kg/m^3$" }, - "plate velocity": { - "description": "The velocity with which the plate subducts in meters per year. Default is 5 cm/yr", + "spreading velocity": { + "description": "The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr", "oneOf": [ { "default value": 0.05, @@ -7741,10 +8340,10 @@ ] }, "subducting velocity": { - "description": "The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr]", + "description": "The velocity with which the slab is subducting through time. Default is 5 cm/yr", "oneOf": [ { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" }, @@ -7761,7 +8360,7 @@ "uniqueItems": false, "description": "", "items": { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" } @@ -8057,6 +8656,78 @@ } } }, + { + "type": "object", + "description": "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'.", + "additionalProperties": false, + "required": [ + "model", + "compositions" + ], + "properties": { + "model": { + "default value": "", + "type": "string", + "description": "The name of the composition model.", + "enum": [ + "tian water content" + ] + }, + "min distance slab top": { + "default value": 0.0, + "type": "number", + "description": "todo The depth in meters from which the composition of this feature is present." + }, + "max distance slab top": { + "default value": 1.7976931348623157e308, + "type": "number", + "description": "todo The depth in meters to which the composition of this feature is present." + }, + "density": { + "default value": 3000.0, + "type": "number", + "description": "The reference density used for determining the lithostatic pressure for calculating the bound water content." + }, + "compositions": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the labels of the composition which are present there.", + "items": { + "default value": 0, + "type": "integer", + "description": "" + } + }, + "lithology": { + "default value": "peridotite", + "type": "string", + "description": "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'." + }, + "initial water content": { + "default value": 5.0, + "type": "number", + "description": "The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology." + }, + "cutoff pressure": { + "default value": 10.0, + "type": "number", + "description": "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'." + }, + "operation": { + "default value": "replace", + "type": "string", + "description": "Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.", + "enum": [ + "replace", + "replace defined only", + "add", + "subtract" + ] + } + } + }, { "type": "object", "description": "Uniform compositional model. Sets constant compositional field.", @@ -8285,6 +8956,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -8514,7 +9230,8 @@ "additionalProperties": false, "required": [ "model", - "plate velocity" + "spreading velocity", + "subducting velocity" ], "properties": { "model": { @@ -8550,8 +9267,8 @@ "type": "number", "description": "The reference density of the subducting plate in $kg/m^3$" }, - "plate velocity": { - "description": "The velocity with which the plate subducts in meters per year. Default is 5 cm/yr", + "spreading velocity": { + "description": "The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr", "oneOf": [ { "default value": 0.05, @@ -8596,10 +9313,10 @@ ] }, "subducting velocity": { - "description": "The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr]", + "description": "The velocity with which the slab is subducting through time. Default is 5 cm/yr", "oneOf": [ { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" }, @@ -8616,7 +9333,7 @@ "uniqueItems": false, "description": "", "items": { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" } @@ -8912,6 +9629,78 @@ } } }, + { + "type": "object", + "description": "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'.", + "additionalProperties": false, + "required": [ + "model", + "compositions" + ], + "properties": { + "model": { + "default value": "", + "type": "string", + "description": "The name of the composition model.", + "enum": [ + "tian water content" + ] + }, + "min distance slab top": { + "default value": 0.0, + "type": "number", + "description": "todo The depth in meters from which the composition of this feature is present." + }, + "max distance slab top": { + "default value": 1.7976931348623157e308, + "type": "number", + "description": "todo The depth in meters to which the composition of this feature is present." + }, + "density": { + "default value": 3000.0, + "type": "number", + "description": "The reference density used for determining the lithostatic pressure for calculating the bound water content." + }, + "compositions": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the labels of the composition which are present there.", + "items": { + "default value": 0, + "type": "integer", + "description": "" + } + }, + "lithology": { + "default value": "peridotite", + "type": "string", + "description": "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'." + }, + "initial water content": { + "default value": 5.0, + "type": "number", + "description": "The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology." + }, + "cutoff pressure": { + "default value": 10.0, + "type": "number", + "description": "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'." + }, + "operation": { + "default value": "replace", + "type": "string", + "description": "Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.", + "enum": [ + "replace", + "replace defined only", + "add", + "subtract" + ] + } + } + }, { "type": "object", "description": "Uniform compositional model. Sets constant compositional field.", @@ -9140,6 +9929,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -9439,7 +10273,8 @@ "additionalProperties": false, "required": [ "model", - "plate velocity" + "spreading velocity", + "subducting velocity" ], "properties": { "model": { @@ -9475,8 +10310,8 @@ "type": "number", "description": "The reference density of the subducting plate in $kg/m^3$" }, - "plate velocity": { - "description": "The velocity with which the plate subducts in meters per year. Default is 5 cm/yr", + "spreading velocity": { + "description": "The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr", "oneOf": [ { "default value": 0.05, @@ -9521,10 +10356,10 @@ ] }, "subducting velocity": { - "description": "The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr]", + "description": "The velocity with which the slab is subducting through time. Default is 5 cm/yr", "oneOf": [ { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" }, @@ -9541,7 +10376,7 @@ "uniqueItems": false, "description": "", "items": { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" } @@ -9837,6 +10672,78 @@ } } }, + { + "type": "object", + "description": "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'.", + "additionalProperties": false, + "required": [ + "model", + "compositions" + ], + "properties": { + "model": { + "default value": "", + "type": "string", + "description": "The name of the composition model.", + "enum": [ + "tian water content" + ] + }, + "min distance slab top": { + "default value": 0.0, + "type": "number", + "description": "todo The depth in meters from which the composition of this feature is present." + }, + "max distance slab top": { + "default value": 1.7976931348623157e308, + "type": "number", + "description": "todo The depth in meters to which the composition of this feature is present." + }, + "density": { + "default value": 3000.0, + "type": "number", + "description": "The reference density used for determining the lithostatic pressure for calculating the bound water content." + }, + "compositions": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the labels of the composition which are present there.", + "items": { + "default value": 0, + "type": "integer", + "description": "" + } + }, + "lithology": { + "default value": "peridotite", + "type": "string", + "description": "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'." + }, + "initial water content": { + "default value": 5.0, + "type": "number", + "description": "The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology." + }, + "cutoff pressure": { + "default value": 10.0, + "type": "number", + "description": "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'." + }, + "operation": { + "default value": "replace", + "type": "string", + "description": "Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.", + "enum": [ + "replace", + "replace defined only", + "add", + "subtract" + ] + } + } + }, { "type": "object", "description": "Uniform compositional model. Sets constant compositional field.", @@ -10065,6 +10972,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -10294,7 +11246,8 @@ "additionalProperties": false, "required": [ "model", - "plate velocity" + "spreading velocity", + "subducting velocity" ], "properties": { "model": { @@ -10330,8 +11283,8 @@ "type": "number", "description": "The reference density of the subducting plate in $kg/m^3$" }, - "plate velocity": { - "description": "The velocity with which the plate subducts in meters per year. Default is 5 cm/yr", + "spreading velocity": { + "description": "The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr", "oneOf": [ { "default value": 0.05, @@ -10376,10 +11329,10 @@ ] }, "subducting velocity": { - "description": "The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr]", + "description": "The velocity with which the slab is subducting through time. Default is 5 cm/yr", "oneOf": [ { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" }, @@ -10396,7 +11349,7 @@ "uniqueItems": false, "description": "", "items": { - "default value": -1.0, + "default value": 0.05, "type": "number", "description": "" } @@ -10692,6 +11645,78 @@ } } }, + { + "type": "object", + "description": "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'.", + "additionalProperties": false, + "required": [ + "model", + "compositions" + ], + "properties": { + "model": { + "default value": "", + "type": "string", + "description": "The name of the composition model.", + "enum": [ + "tian water content" + ] + }, + "min distance slab top": { + "default value": 0.0, + "type": "number", + "description": "todo The depth in meters from which the composition of this feature is present." + }, + "max distance slab top": { + "default value": 1.7976931348623157e308, + "type": "number", + "description": "todo The depth in meters to which the composition of this feature is present." + }, + "density": { + "default value": 3000.0, + "type": "number", + "description": "The reference density used for determining the lithostatic pressure for calculating the bound water content." + }, + "compositions": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the labels of the composition which are present there.", + "items": { + "default value": 0, + "type": "integer", + "description": "" + } + }, + "lithology": { + "default value": "peridotite", + "type": "string", + "description": "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'." + }, + "initial water content": { + "default value": 5.0, + "type": "number", + "description": "The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology." + }, + "cutoff pressure": { + "default value": 10.0, + "type": "number", + "description": "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'." + }, + "operation": { + "default value": "replace", + "type": "string", + "description": "Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.", + "enum": [ + "replace", + "replace defined only", + "add", + "subtract" + ] + } + } + }, { "type": "object", "description": "Uniform compositional model. Sets constant compositional field.", @@ -10920,6 +11945,51 @@ "type": "number", "description": "" } + }, + "basis rotation matrices": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the rotation matrices of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } + } + }, + "basis Euler angles z-x-z": { + "type": "array", + "minItems": 0, + "maxItems": 4294967295, + "uniqueItems": false, + "description": "A list with the z-x-z Euler angles of the grains which are present there for each compositions.", + "items": { + "type": "array", + "minItems": 3, + "maxItems": 3, + "uniqueItems": false, + "description": "", + "items": { + "default value": 0.0, + "type": "number", + "description": "" + } + } } } }, @@ -11046,7 +12116,7 @@ } }, "random number seed": { - "default value": 4294967295, + "default value": -1, "type": "integer", "description": "This allows the input of a preferred random number seed to generate random numbers. If no input is given, this value is -1 and triggers the use of default seed = 1." } diff --git a/contrib/world_builder/doc/world_builder_declarations_closed.md b/contrib/world_builder/doc/world_builder_declarations_closed.md index baae334c8fe..7dd0d32a419 100644 --- a/contrib/world_builder/doc/world_builder_declarations_closed.md +++ b/contrib/world_builder/doc/world_builder_declarations_closed.md @@ -2034,6 +2034,72 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_1_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -3120,6 +3186,72 @@ :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + ::::::::::::::: @@ -3911,6 +4043,72 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_2_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -4806,6 +5004,72 @@ :::::::::::: +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::: + +:::::::::: + +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::: + +::::::::::: + +:::::::::::: + ::::::::::::: @@ -5597,44 +5861,110 @@ :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items -::::::::::::::: - -:::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3 -:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3 - -- **type**:object -- **description**:Uniform grains model. All grains start exactly the same. -- **additionalProperties**:false -- **required**:[model, compositions] - -::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/model -:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_model - -- **default value**: -- **type**:string -- **description**:The name of the grains model. -- **enum**:[uniform] -:::::::::::::: +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items -::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/min distance fault center -:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_min-distance-fault-center +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items - **default value**:0.0 - **type**:number -- **description**:The distance from the fault center in meters from which the composition of this feature is present. -:::::::::::::: +- **description**: +::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/max distance fault center -:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_max-distance-fault-center +:::::::::::: + +::::::::::::: -- **default value**:1.7976931348623157e308 -- **type**:number -- **description**:The distance from the fault in meters to which the composition of this feature is present. :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/compositions +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + + + +::::::::::::::: + +:::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3 +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform grains model. All grains start exactly the same. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/model +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the grains model. +- **enum**:[uniform] +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/min distance fault center +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_min-distance-fault-center + +- **default value**:0.0 +- **type**:number +- **description**:The distance from the fault center in meters from which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/max distance fault center +:name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_max-distance-fault-center + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:The distance from the fault in meters to which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/compositions :name: closed_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_compositions - **type**:array @@ -7334,6 +7664,72 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_3_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -9300,7 +9696,7 @@ :name: closed_features_items_oneOf_4_composition-models_items_oneOf_1 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -9310,7 +9706,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/min depth @@ -9483,22 +9879,36 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/fractions -:name: closed_features_items_oneOf_4_composition-models_items_oneOf_1_fractions +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/density +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_1_density -- **type**:array -- **minItems**:1 -- **maxItems**:4294967295 -- **uniqueItems**:false -- **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/fractions/items -:name: closed_features_items_oneOf_4_composition-models_items_oneOf_1_fractions_items +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::::: -- **default value**:1.0 +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/lithology +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_1_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/initial water content +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_1_initial-water-content + +- **default value**:5.0 - **type**:number -- **description**: -::::::::::::::: +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/cutoff pressure +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_1_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/operation @@ -9514,98 +9924,81 @@ ::::::::::::::::: - -::::::::::::::::::: - -:::::::::::::::::::: - -::::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models -:name: closed_features_items_oneOf_4_grains-models - -- **description**:A list of grains models. -- **default value**: -- **type**:array -:::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items -:name: closed_features_items_oneOf_4_grains-models_items - -::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf -:name: closed_features_items_oneOf_4_grains-models_items_oneOf - -:::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1 +:::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2 - **type**:object -- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. +- **description**:Uniform compositional model. Sets constant compositional field. - **additionalProperties**:false - **required**:[model, compositions] -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/model -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_model +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/model +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_model - **default value**: - **type**:string -- **description**:The name of the grains model. -- **enum**:[random uniform distribution] +- **description**:The name of the composition model. +- **enum**:[uniform] :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth - **description**:The depth in meters from which the composition of this feature is present. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/1 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_1 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/1 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_1 - **default value**:0.0 - **type**:number - **description**: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items +:::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:2 - **description**: -::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items +::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items -:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf +:::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/1 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_1 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.0 :::::::::: -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items +:::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:2 -::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items_items +::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::::: @@ -9624,64 +10017,64 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth - **description**:The depth in meters to which the composition of this feature is present. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/1 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_1 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/1 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_1 - **default value**:1.7976931348623157e308 - **type**:number - **description**: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items +:::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:2 - **description**: -::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items +::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items -:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf +:::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/1 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_1 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:1.7976931348623157e308 :::::::::: -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items +:::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:2 -::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items_items +::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::::: @@ -9700,16 +10093,16 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_compositions +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/compositions +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_compositions - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:A list with the integer labels of the composition which are present there. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_compositions_items +- **description**:A list with the labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/compositions/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_compositions_items - **default value**:0 - **type**:integer @@ -9718,25 +10111,16 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/orientation operation -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_orientation-operation - -- **default value**:replace -- **type**:string -- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero. -- **enum**:[replace] -:::::::::::::::: - -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/fractions +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_fractions - **type**:array -- **minItems**:0 +- **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes_items +- **description**:TA list of compositional fractions corresponding to the compositions list. +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/fractions/items +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_fractions_items - **default value**:1.0 - **type**:number @@ -9745,40 +10129,284 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes - -- **type**:array -- **minItems**:0 -- **maxItems**:4294967295 -- **uniqueItems**:false -- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes/items -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes_items - -- **default value**:true -- **type**:boolean -- **description**: -::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/operation +:name: closed_features_items_oneOf_4_composition-models_items_oneOf_2_operation +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] :::::::::::::::: ::::::::::::::::: -:::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2 -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2 -- **type**:object -- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. -- **additionalProperties**:false -- **required**:[model, compositions] +::::::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/model -:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_model +:::::::::::::::::::: -- **default value**: +::::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models +:name: closed_features_items_oneOf_4_grains-models + +- **description**:A list of grains models. +- **default value**: +- **type**:array +:::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items +:name: closed_features_items_oneOf_4_grains-models_items + +::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf +:name: closed_features_items_oneOf_4_grains-models_items_oneOf + +:::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1 + +- **type**:object +- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/model +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_model + +- **default value**: +- **type**:string +- **description**:The name of the grains model. +- **enum**:[random uniform distribution] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth + +- **description**:The depth in meters from which the composition of this feature is present. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/1 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_1 + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2 + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items + +- **type**:array +- **additionalProperties**:false +- **minItems**:1 +- **maxItems**:2 +- **description**: +::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items + +:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_1 + +- **type**:number +- **default value**:0.0 +:::::::::: + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2 + +- **type**:array +- **minItems**:1 +- **maxItems**:4294967295 +:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items + +- **type**:array +- **minItems**:1 +- **maxItems**:2 +::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items_items + +- **type**:number +:::::::: + +::::::::: + +:::::::::: + + +:::::::::::: + +::::::::::::: + +:::::::::::::: + + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth + +- **description**:The depth in meters to which the composition of this feature is present. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/1 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_1 + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2 + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items + +- **type**:array +- **additionalProperties**:false +- **minItems**:1 +- **maxItems**:2 +- **description**: +::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items + +:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_1 + +- **type**:number +- **default value**:1.7976931348623157e308 +:::::::::: + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2 + +- **type**:array +- **minItems**:1 +- **maxItems**:4294967295 +:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items + +- **type**:array +- **minItems**:1 +- **maxItems**:2 +::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items_items + +- **type**:number +:::::::: + +::::::::: + +:::::::::: + + +:::::::::::: + +::::::::::::: + +:::::::::::::: + + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the integer labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/orientation operation +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_orientation-operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero. +- **enum**:[replace] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes_items + +- **default value**:1.0 +- **type**:number +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes_items + +- **default value**:true +- **type**:boolean +- **description**: +::::::::::::::: + +:::::::::::::::: + + + +::::::::::::::::: + +:::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2 +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2 + +- **type**:object +- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/model +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_model + +- **default value**: - **type**:string - **description**:The name of the grains model. - **enum**:[random uniform distribution deflected] @@ -10017,6 +10645,72 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_4_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -10738,7 +11432,7 @@ :name: closed_features_items_oneOf_5_grains-models_items_oneOf_1 - **type**:object -- **description**:Uniform grains model. All grains start exactly the same. +- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. - **additionalProperties**:false - **required**:[model, compositions] @@ -10748,7 +11442,7 @@ - **default value**: - **type**:string - **description**:The name of the grains model. -- **enum**:[uniform] +- **enum**:[random uniform distribution deflected] :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/min depth @@ -10785,32 +11479,216 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/orientation operation +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_orientation-operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero. +- **enum**:[replace, multiply] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes_items + +- **default value**:1.0 +- **type**:number +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/normalize grain sizes +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_normalize-grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/normalize grain sizes/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_normalize-grain-sizes_items + +- **default value**:true +- **type**:boolean +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/deflections +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_deflections + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of the deflections of all of the grains in each composition between 0 and 1. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/deflections/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_deflections_items + +- **default value**:1.0 +- **type**:number +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices/items/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis Euler angles z-x-z +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + + + +::::::::::::::::: + +:::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2 +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2 + +- **type**:object +- **description**:Uniform grains model. All grains start exactly the same. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/model +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_model + +- **default value**: +- **type**:string +- **description**:The name of the grains model. +- **enum**:[uniform] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/min depth +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_min-depth + +- **default value**:0.0 +- **type**:number +- **description**:The depth in meters from which the grains of this feature are present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/max depth +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_max-depth + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:The depth in meters to which the grains of this feature are present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/compositions +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the integer labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/compositions/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the rotation matrices of the grains which are present there for each compositions. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices/items -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices_items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices_items - **type**:array - **minItems**:3 - **maxItems**:3 - **uniqueItems**:false - **description**: -::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices/items/items -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices_items_items +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices/items/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices_items_items - **type**:array - **minItems**:3 - **maxItems**:3 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices/items/items/items -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices_items_items_items +:::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices/items/items/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices_items_items_items - **default value**:0.0 - **type**:number @@ -10823,24 +11701,24 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/Euler angles z-x-z -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_Euler-angles-z-x-z +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/Euler angles z-x-z +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_Euler-angles-z-x-z - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/Euler angles z-x-z/items -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_Euler-angles-z-x-z_items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/Euler angles z-x-z/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_Euler-angles-z-x-z_items - **type**:array - **minItems**:3 - **maxItems**:3 - **uniqueItems**:false - **description**: -::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/Euler angles z-x-z/items/items -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_Euler-angles-z-x-z_items_items +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_Euler-angles-z-x-z_items_items - **default value**:0.0 - **type**:number @@ -10851,8 +11729,8 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/orientation operation -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_orientation-operation +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/orientation operation +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_orientation-operation - **default value**:replace - **type**:string @@ -10860,16 +11738,16 @@ - **enum**:[replace, multiply] :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/grain sizes +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_grain-sizes - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be set so that the total is equal to 1. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes/items -:name: closed_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes_items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/grain sizes/items +:name: closed_features_items_oneOf_5_grains-models_items_oneOf_2_grain-sizes_items - **default value**:-1.0 - **type**:number @@ -11202,7 +12080,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/model :name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_model @@ -11246,64 +12124,64 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/1 -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/1 +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2 -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2 +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::::: -::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items -:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::: @@ -11325,14 +12203,14 @@ ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/subducting velocity :name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf :name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf ::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf/1 :name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::: @@ -11356,7 +12234,7 @@ ::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf/2/items/items :name: closed_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::: @@ -11780,7 +12658,7 @@ :name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -11790,7 +12668,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::: ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/min distance slab top @@ -11809,6 +12687,14 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/density +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::: + ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/compositions :name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_compositions @@ -11827,16 +12713,104 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/fractions -:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_fractions +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/lithology +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/initial water content +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/cutoff pressure +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/operation +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::: + + + +::::::::::::::: + +:::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3 +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/model +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/min distance slab top +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/max distance slab top +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/compositions +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/compositions/items +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/fractions +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/fractions/items -:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_fractions_items +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/fractions/items +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -11845,8 +12819,8 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/operation -:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_operation +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/operation +:name: closed_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -12089,6 +13063,72 @@ :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + ::::::::::::::: @@ -12402,7 +13442,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/model :name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_model @@ -12446,64 +13486,64 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity +::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/1 -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/1 +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2 -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2 +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::::::: -::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items -:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::::: @@ -12525,14 +13565,14 @@ ::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/subducting velocity :name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/subducting velocity/oneOf :name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity_oneOf ::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/subducting velocity/oneOf/1 :name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::::: @@ -12556,7 +13596,7 @@ ::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/subducting velocity/oneOf/2/items/items :name: closed_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::: @@ -12980,7 +14020,7 @@ :name: closed_features_items_oneOf_6_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -12990,7 +14030,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/min distance slab top @@ -13009,6 +14049,14 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/density +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::::: + ::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/compositions :name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_compositions @@ -13027,16 +14075,104 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/fractions -:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_fractions +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/lithology +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/initial water content +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/cutoff pressure +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/operation +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::::: + + + +::::::::::::::::: + +:::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3 +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/model +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/min distance slab top +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/max distance slab top +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/compositions +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/compositions/items +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/fractions +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/fractions/items -:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_fractions_items +:::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/fractions/items +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -13045,8 +14181,8 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/operation -:name: closed_features_items_oneOf_6_composition-models_items_oneOf_2_operation +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/operation +:name: closed_features_items_oneOf_6_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -13289,6 +14425,72 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_6_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -13706,7 +14908,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/model :name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_model @@ -13750,64 +14952,64 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/1 -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/1 +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::: -::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2 -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2 +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::: -::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items -:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::: @@ -13829,14 +15031,14 @@ ::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/subducting velocity :name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf :name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf ::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf/1 :name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::: @@ -13860,7 +15062,7 @@ ::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf/2/items/items :name: closed_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::: @@ -14284,7 +15486,7 @@ :name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -14294,7 +15496,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::: ::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/min distance slab top @@ -14313,6 +15515,14 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/density +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::: + ::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/compositions :name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_compositions @@ -14331,16 +15541,104 @@ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/fractions -:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_fractions +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/lithology +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/initial water content +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/cutoff pressure +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/operation +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::: + + + +::::::::::::: + +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3 +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/model +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/min distance slab top +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/max distance slab top +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/compositions +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/compositions/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/fractions +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/fractions/items -:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_fractions_items +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/fractions/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -14349,8 +15647,8 @@ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/operation -:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_operation +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/operation +:name: closed_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -14593,6 +15891,72 @@ :::::::::::: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::: + +:::::::::: + +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::: + +::::::::::: + +:::::::::::: + ::::::::::::: @@ -14906,7 +16270,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/model :name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_model @@ -14950,64 +16314,64 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/1 -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/1 +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2 -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2 +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::::: -::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items -:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items +:name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::: @@ -15029,14 +16393,14 @@ ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/subducting velocity :name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/subducting velocity/oneOf :name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf ::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/subducting velocity/oneOf/1 :name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::: @@ -15060,7 +16424,7 @@ ::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/subducting velocity/oneOf/2/items/items :name: closed_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::: @@ -15484,7 +16848,7 @@ :name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -15494,7 +16858,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::: ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/min distance slab top @@ -15513,6 +16877,14 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/density +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::: + ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/compositions :name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_compositions @@ -15531,16 +16903,104 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/fractions -:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_fractions +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/lithology +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/initial water content +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/cutoff pressure +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/operation +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::: + + + +::::::::::::::: + +:::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3 +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/model +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/min distance slab top +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/max distance slab top +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/compositions +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/compositions/items +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/fractions +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/fractions/items -:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_fractions_items +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/fractions/items +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -15549,8 +17009,8 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/operation -:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_operation +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/operation +:name: closed_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -15793,6 +17253,72 @@ :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices/items +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:name: closed_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + ::::::::::::::: @@ -15976,7 +17502,7 @@ ::::::::::::::::::::::::{dropdown} /random number seed :name: closed_random-number-seed -- **default value**:4294967295 +- **default value**:-1 - **type**:integer - **description**:This allows the input of a preferred random number seed to generate random numbers. If no input is given, this value is -1 and triggers the use of default seed = 1. :::::::::::::::::::::::: diff --git a/contrib/world_builder/doc/world_builder_declarations_open.md b/contrib/world_builder/doc/world_builder_declarations_open.md index ff2baa6917a..4ce00a38326 100644 --- a/contrib/world_builder/doc/world_builder_declarations_open.md +++ b/contrib/world_builder/doc/world_builder_declarations_open.md @@ -2307,6 +2307,79 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/1/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_1_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -3524,6 +3597,79 @@ :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_2_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + ::::::::::::::: @@ -4405,6 +4551,79 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/2/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_2_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -5405,6 +5624,79 @@ :::::::::::: +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::: + +:::::::::: + +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/2/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_2_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::: + +::::::::::: + +:::::::::::: + ::::::::::::: @@ -6286,25 +6578,98 @@ :::::::::::::: - - -::::::::::::::: - -:::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3 +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices :open: -:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3 - -- **type**:object -- **description**:Uniform grains model. All grains start exactly the same. -- **additionalProperties**:false -- **required**:[model, compositions] +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices -::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/model +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices/items :open: -:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_model +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items -- **default value**: -- **type**:string +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + + + +::::::::::::::: + +:::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3 +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform grains model. All grains start exactly the same. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::{dropdown} /features/items/oneOf/2/sections/items/grains models/items/oneOf/3/model +:open: +:name: open_features_items_oneOf_2_sections_items_grains-models_items_oneOf_3_model + +- **default value**: +- **type**:string - **description**:The name of the grains model. - **enum**:[uniform] :::::::::::::: @@ -8253,6 +8618,79 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/3/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_3_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -10485,7 +10923,7 @@ :name: open_features_items_oneOf_4_composition-models_items_oneOf_1 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -10496,7 +10934,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/min depth @@ -10693,24 +11131,40 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/fractions +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/density :open: -:name: open_features_items_oneOf_4_composition-models_items_oneOf_1_fractions +:name: open_features_items_oneOf_4_composition-models_items_oneOf_1_density -- **type**:array -- **minItems**:1 -- **maxItems**:4294967295 -- **uniqueItems**:false -- **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/fractions/items +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/lithology :open: -:name: open_features_items_oneOf_4_composition-models_items_oneOf_1_fractions_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_1_lithology -- **default value**:1.0 +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/initial water content +:open: +:name: open_features_items_oneOf_4_composition-models_items_oneOf_1_initial-water-content + +- **default value**:5.0 - **type**:number -- **description**: -::::::::::::::: +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/cutoff pressure +:open: +:name: open_features_items_oneOf_4_composition-models_items_oneOf_1_cutoff-pressure +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/1/operation @@ -10727,114 +11181,94 @@ ::::::::::::::::: - -::::::::::::::::::: - -:::::::::::::::::::: - -::::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models -:open: -:name: open_features_items_oneOf_4_grains-models - -- **description**:A list of grains models. -- **default value**: -- **type**:array -:::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items -:open: -:name: open_features_items_oneOf_4_grains-models_items - -::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf -:open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf - -:::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1 +:::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2 - **type**:object -- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. +- **description**:Uniform compositional model. Sets constant compositional field. - **additionalProperties**:false - **required**:[model, compositions] -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/model +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/model :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_model +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_model - **default value**: - **type**:string -- **description**:The name of the grains model. -- **enum**:[random uniform distribution] +- **description**:The name of the composition model. +- **enum**:[uniform] :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth - **description**:The depth in meters from which the composition of this feature is present. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/1 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/1 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_1 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_1 - **default value**:0.0 - **type**:number - **description**: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items +:::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:2 - **description**: -::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items +::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items -:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf +:::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/1 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/1 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_1 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.0 :::::::::: -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/2 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items +:::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/2/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:2 -::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items/items +::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/min depth/oneOf/2/items/items/anyOf/2/items/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_min-depth_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::::: @@ -10853,75 +11287,75 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth - **description**:The depth in meters to which the composition of this feature is present. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/1 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/1 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_1 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_1 - **default value**:1.7976931348623157e308 - **type**:number - **description**: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2 +::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items +:::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:2 - **description**: -::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items +::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items -:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf +:::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/1 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/1 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_1 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:1.7976931348623157e308 :::::::::: -::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2 +::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/2 :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2 +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items +:::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/2/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:2 -::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items/items +::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/max depth/oneOf/2/items/items/anyOf/2/items/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_max-depth_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::::: @@ -10940,18 +11374,18 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/compositions :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_compositions +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_compositions - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:A list with the integer labels of the composition which are present there. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions/items +- **description**:A list with the labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/compositions/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_compositions_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_compositions_items - **default value**:0 - **type**:integer @@ -10960,28 +11394,18 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/orientation operation -:open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_orientation-operation - -- **default value**:replace -- **type**:string -- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero. -- **enum**:[replace] -:::::::::::::::: - -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/fractions :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_fractions - **type**:array -- **minItems**:0 +- **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes/items +- **description**:TA list of compositional fractions corresponding to the compositions list. +:::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/fractions/items :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes_items +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_fractions_items - **default value**:1.0 - **type**:number @@ -10990,16 +11414,293 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes +::::::::::::::::{dropdown} /features/items/oneOf/4/composition models/items/oneOf/2/operation :open: -:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes +:name: open_features_items_oneOf_4_composition-models_items_oneOf_2_operation -- **type**:array -- **minItems**:0 -- **maxItems**:4294967295 -- **uniqueItems**:false -- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. -:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes/items +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::::: + + + +::::::::::::::::: + + +::::::::::::::::::: + +:::::::::::::::::::: + +::::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models +:open: +:name: open_features_items_oneOf_4_grains-models + +- **description**:A list of grains models. +- **default value**: +- **type**:array +:::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items +:open: +:name: open_features_items_oneOf_4_grains-models_items + +::::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf + +:::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1 + +- **type**:object +- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/model +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_model + +- **default value**: +- **type**:string +- **description**:The name of the grains model. +- **enum**:[random uniform distribution] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth + +- **description**:The depth in meters from which the composition of this feature is present. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/1 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_1 + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2 + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items + +- **type**:array +- **additionalProperties**:false +- **minItems**:1 +- **maxItems**:2 +- **description**: +::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items + +:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/1 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_1 + +- **type**:number +- **default value**:0.0 +:::::::::: + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2 + +- **type**:array +- **minItems**:1 +- **maxItems**:4294967295 +:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items + +- **type**:array +- **minItems**:1 +- **maxItems**:2 +::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/min depth/oneOf/2/items/items/anyOf/2/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_min-depth_oneOf_2_items_items_anyOf_2_items_items + +- **type**:number +:::::::: + +::::::::: + +:::::::::: + + +:::::::::::: + +::::::::::::: + +:::::::::::::: + + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth + +- **description**:The depth in meters to which the composition of this feature is present. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/1 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_1 + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2 + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items + +- **type**:array +- **additionalProperties**:false +- **minItems**:1 +- **maxItems**:2 +- **description**: +::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items + +:::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/1 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_1 + +- **type**:number +- **default value**:1.7976931348623157e308 +:::::::::: + +::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2 +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2 + +- **type**:array +- **minItems**:1 +- **maxItems**:4294967295 +:::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items + +- **type**:array +- **minItems**:1 +- **maxItems**:2 +::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/max depth/oneOf/2/items/items/anyOf/2/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_max-depth_oneOf_2_items_items_anyOf_2_items_items + +- **type**:number +:::::::: + +::::::::: + +:::::::::: + + +:::::::::::: + +::::::::::::: + +:::::::::::::: + + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the integer labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/compositions/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/orientation operation +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_orientation-operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero. +- **enum**:[replace] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/grain sizes/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_grain-sizes_items + +- **default value**:1.0 +- **type**:number +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/1/normalize grain sizes/items :open: :name: open_features_items_oneOf_4_grains-models_items_oneOf_1_normalize-grain-sizes_items @@ -11297,6 +11998,79 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/4/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_4_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -12018,47 +12792,208 @@ - **description**:The depth in meters from which the composition of this feature is present. :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/max depth +::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/max depth +:open: +:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_max-depth + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:The depth in meters to which the composition of this feature is present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/compositions +:open: +:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/compositions/items +:open: +:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/fractions +:open: +:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_fractions + +- **type**:array +- **minItems**:1 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:TA list of compositional fractions corresponding to the compositions list. +:::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/fractions/items +:open: +:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_fractions_items + +- **default value**:1.0 +- **type**:number +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/operation +:open: +:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::::: + + + +::::::::::::::::: + + +::::::::::::::::::: + +:::::::::::::::::::: + +::::::::::::::::::::{dropdown} /features/items/oneOf/5/grains models +:open: +:name: open_features_items_oneOf_5_grains-models + +- **description**:A list of grains models. +- **default value**: +- **type**:array +:::::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items +:open: +:name: open_features_items_oneOf_5_grains-models_items + +::::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf + +:::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1 +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1 + +- **type**:object +- **description**:Random uniform distribution grains model. The size of the grains can be independently set to a single value or to a random distribution. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/model +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_model + +- **default value**: +- **type**:string +- **description**:The name of the grains model. +- **enum**:[random uniform distribution deflected] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/min depth +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_min-depth + +- **default value**:0.0 +- **type**:number +- **description**:The depth in meters from which the grains of this feature are present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/max depth +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_max-depth + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:The depth in meters to which the grains of this feature are present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/compositions +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the integer labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/compositions/items +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/orientation operation +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_orientation-operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value (add, not implemented). Replacing implies that all values not explicitly defined are set to zero. +- **enum**:[replace, multiply] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes/items :open: -:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_max-depth +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes_items -- **default value**:1.7976931348623157e308 +- **default value**:1.0 - **type**:number -- **description**:The depth in meters to which the composition of this feature is present. +- **description**: +::::::::::::::: + :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/compositions +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/normalize grain sizes :open: -:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_compositions +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_normalize-grain-sizes - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:A list with the labels of the composition which are present there. -:::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/compositions/items +- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/normalize grain sizes/items :open: -:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_compositions_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_normalize-grain-sizes_items -- **default value**:0 -- **type**:integer +- **default value**:true +- **type**:boolean - **description**: ::::::::::::::: :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/fractions +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/deflections :open: -:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_fractions +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_deflections - **type**:array -- **minItems**:1 +- **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/fractions/items +- **description**:A list of the deflections of all of the grains in each composition between 0 and 1. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/deflections/items :open: -:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_fractions_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_deflections_items - **default value**:1.0 - **type**:number @@ -12067,52 +13002,95 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/composition models/items/oneOf/1/operation +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices :open: -:name: open_features_items_oneOf_5_composition-models_items_oneOf_1_operation +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices -- **default value**:replace -- **type**:string -- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. -- **enum**:[replace, replace defined only, add, subtract] -:::::::::::::::: +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices_items +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices_items_items +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-rotation-matrices_items_items_items -::::::::::::::::: +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: +:::::::::::::: -::::::::::::::::::: +::::::::::::::: -:::::::::::::::::::: +:::::::::::::::: -::::::::::::::::::::{dropdown} /features/items/oneOf/5/grains models +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis Euler angles z-x-z :open: -:name: open_features_items_oneOf_5_grains-models +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-Euler-angles-z-x-z -- **description**:A list of grains models. -- **default value**: - **type**:array -:::::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis Euler angles z-x-z/items :open: -:name: open_features_items_oneOf_5_grains-models_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-Euler-angles-z-x-z_items -::::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/basis Euler angles z-x-z/items/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf +:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_basis-Euler-angles-z-x-z_items_items -:::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1 +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + + + +::::::::::::::::: + +:::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2 :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1 +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2 - **type**:object - **description**:Uniform grains model. All grains start exactly the same. - **additionalProperties**:false - **required**:[model, compositions] -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/model +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/model :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_model +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_model - **default value**: - **type**:string @@ -12120,36 +13098,36 @@ - **enum**:[uniform] :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/min depth +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/min depth :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_min-depth +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_min-depth - **default value**:0.0 - **type**:number - **description**:The depth in meters from which the grains of this feature are present. :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/max depth +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/max depth :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_max-depth +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_max-depth - **default value**:1.7976931348623157e308 - **type**:number - **description**:The depth in meters to which the grains of this feature are present. :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/compositions +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/compositions :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_compositions +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_compositions - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the integer labels of the composition which are present there. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/compositions/items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/compositions/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_compositions_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_compositions_items - **default value**:0 - **type**:integer @@ -12158,36 +13136,36 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the rotation matrices of the grains which are present there for each compositions. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices/items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices_items - **type**:array - **minItems**:3 - **maxItems**:3 - **uniqueItems**:false - **description**: -::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices/items/items +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices/items/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices_items_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices_items_items - **type**:array - **minItems**:3 - **maxItems**:3 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/rotation matrices/items/items/items +:::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/rotation matrices/items/items/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_rotation-matrices_items_items_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_rotation-matrices_items_items_items - **default value**:0.0 - **type**:number @@ -12200,27 +13178,27 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/Euler angles z-x-z +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/Euler angles z-x-z :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_Euler-angles-z-x-z +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_Euler-angles-z-x-z - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/Euler angles z-x-z/items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/Euler angles z-x-z/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_Euler-angles-z-x-z_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_Euler-angles-z-x-z_items - **type**:array - **minItems**:3 - **maxItems**:3 - **uniqueItems**:false - **description**: -::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/Euler angles z-x-z/items/items +::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/Euler angles z-x-z/items/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_Euler-angles-z-x-z_items_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_Euler-angles-z-x-z_items_items - **default value**:0.0 - **type**:number @@ -12231,9 +13209,9 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/orientation operation +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/orientation operation :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_orientation-operation +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_orientation-operation - **default value**:replace - **type**:string @@ -12241,18 +13219,18 @@ - **enum**:[replace, multiply] :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes +::::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/grain sizes :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_grain-sizes - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list of the size of all of the grains in each composition. If set to <0, the size will be set so that the total is equal to 1. -:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/1/grain sizes/items +:::::::::::::::{dropdown} /features/items/oneOf/5/grains models/items/oneOf/2/grain sizes/items :open: -:name: open_features_items_oneOf_5_grains-models_items_oneOf_1_grain-sizes_items +:name: open_features_items_oneOf_5_grains-models_items_oneOf_2_grain-sizes_items - **default value**:-1.0 - **type**:number @@ -12625,7 +13603,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/model :open: @@ -12674,75 +13652,75 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/1 +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/1 :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2 +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2 :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items +:::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items +::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf +:::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 +::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::::: -::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 +::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items +:::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items +::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items :open: -:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +:name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::: @@ -12765,7 +13743,7 @@ :open: :name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::::{dropdown} /features/items/oneOf/6/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf :open: :name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf @@ -12774,7 +13752,7 @@ :open: :name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::: @@ -12801,7 +13779,7 @@ :open: :name: open_features_items_oneOf_6_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::: @@ -13274,7 +14252,7 @@ :name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -13285,7 +14263,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::: ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/min distance slab top @@ -13306,6 +14284,15 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/density +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::: + ::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/compositions :open: :name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_compositions @@ -13326,18 +14313,116 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/fractions +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/lithology :open: -:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_fractions +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/initial water content +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/cutoff pressure +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/operation +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::: + + + +::::::::::::::: + +:::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3 +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/model +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/min distance slab top +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/max distance slab top +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/compositions +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/compositions/items +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/fractions +:open: +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/fractions/items +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/fractions/items :open: -:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_fractions_items +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -13346,9 +14431,9 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/2/operation +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/composition models/items/oneOf/3/operation :open: -:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_2_operation +:name: open_features_items_oneOf_6_segments_items_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -13583,37 +14668,110 @@ :name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_normalize-grain-sizes - **type**:array -- **minItems**:0 -- **maxItems**:4294967295 +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/normalize grain sizes/items +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_normalize-grain-sizes_items + +- **default value**:true +- **type**:boolean +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/deflections +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_deflections + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list of the deflections of all of the grains in each composition between 0 and 1. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/deflections/items +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_deflections_items + +- **default value**:1.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 - **uniqueItems**:false -- **description**:A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1. -:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/normalize grain sizes/items +- **description**: +:::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items :open: -:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_normalize-grain-sizes_items +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items -- **default value**:true -- **type**:boolean +- **default value**:0.0 +- **type**:number - **description**: +::::::::::: + +:::::::::::: + ::::::::::::: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/deflections +::::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z :open: -:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_deflections +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false -- **description**:A list of the deflections of all of the grains in each composition between 0 and 1. -:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/deflections/items +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items :open: -:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_deflections_items +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items -- **default value**:1.0 +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_6_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 - **type**:number - **description**: +:::::::::::: + ::::::::::::: :::::::::::::: @@ -13966,7 +15124,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/model :open: @@ -14015,75 +15173,75 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity +::::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/1 +::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/1 :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2 +::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2 :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items +:::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items +::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf +:::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 +::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::::::: -::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 +::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items +:::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items +::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items :open: -:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +:name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::::: @@ -14106,7 +15264,7 @@ :open: :name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::::::{dropdown} /features/items/oneOf/6/temperature models/items/oneOf/3/subducting velocity/oneOf :open: :name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity_oneOf @@ -14115,7 +15273,7 @@ :open: :name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::::: @@ -14142,7 +15300,7 @@ :open: :name: open_features_items_oneOf_6_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::: @@ -14615,7 +15773,7 @@ :name: open_features_items_oneOf_6_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -14626,7 +15784,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::::: ::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/min distance slab top @@ -14647,6 +15805,15 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/density +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::::: + ::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/compositions :open: :name: open_features_items_oneOf_6_composition-models_items_oneOf_2_compositions @@ -14667,18 +15834,116 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/fractions +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/lithology +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/initial water content +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/cutoff pressure +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/operation +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::::: + + + +::::::::::::::::: + +:::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3 +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/model +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/min distance slab top +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/max distance slab top +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/compositions +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/compositions/items +:open: +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/fractions :open: -:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_fractions +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/fractions/items +:::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/fractions/items :open: -:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_fractions_items +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -14687,9 +15952,9 @@ :::::::::::::::: -::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/2/operation +::::::::::::::::{dropdown} /features/items/oneOf/6/composition models/items/oneOf/3/operation :open: -:name: open_features_items_oneOf_6_composition-models_items_oneOf_2_operation +:name: open_features_items_oneOf_6_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -14959,6 +16224,79 @@ :::::::::::::::: +::::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + +::::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::::{dropdown} /features/items/oneOf/6/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_6_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::::: + +::::::::::::::: + +:::::::::::::::: + ::::::::::::::::: @@ -15426,7 +16764,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/model :open: @@ -15475,75 +16813,75 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/1 +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/1 :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::: -::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2 +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2 :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items +:::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items +::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf +:::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 +::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::: -::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 +::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items +:::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items +::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +:name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::: @@ -15566,7 +16904,7 @@ :open: :name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/temperature models/items/oneOf/3/subducting velocity/oneOf :open: :name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf @@ -15575,7 +16913,7 @@ :open: :name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::: @@ -15602,7 +16940,7 @@ :open: :name: open_features_items_oneOf_6_sections_items_segments_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::: @@ -16029,25 +17367,105 @@ :open: :name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_bottom-fractions_items -- **default value**:0.0 +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/1/compositions +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/1/compositions/items +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/1/operation +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::: + + + +::::::::::::: + +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2 +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2 + +- **type**:object +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/model +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[tian water content] +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/min distance slab top +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/max distance slab top +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_max-distance-slab-top + +- **default value**:1.7976931348623157e308 - **type**:number -- **description**: -::::::::::: +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/density +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_density +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/1/compositions +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/compositions :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_compositions +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_compositions - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the labels of the composition which are present there. -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/1/compositions/items +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/compositions/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_compositions_items +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_compositions_items - **default value**:0 - **type**:integer @@ -16056,9 +17474,36 @@ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/1/operation +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/lithology :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_1_operation +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/initial water content +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/cutoff pressure +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/operation +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_operation - **default value**:replace - **type**:string @@ -16070,18 +17515,18 @@ ::::::::::::: -:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2 +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3 :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2 +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3 - **type**:object - **description**:Uniform compositional model. Sets constant compositional field. - **additionalProperties**:false - **required**:[model, compositions] -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/model +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/model :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_model +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_model - **default value**: - **type**:string @@ -16089,36 +17534,36 @@ - **enum**:[uniform] :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/min distance slab top +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/min distance slab top :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_min-distance-slab-top +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_min-distance-slab-top - **default value**:0.0 - **type**:number - **description**:todo The depth in meters from which the composition of this feature is present. :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/max distance slab top +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/max distance slab top :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_max-distance-slab-top +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_max-distance-slab-top - **default value**:1.7976931348623157e308 - **type**:number - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/compositions +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/compositions :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_compositions +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_compositions - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:A list with the labels of the composition which are present there. -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/compositions/items +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/compositions/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_compositions_items +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_compositions_items - **default value**:0 - **type**:integer @@ -16127,18 +17572,18 @@ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/fractions +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/fractions :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_fractions +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/fractions/items +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/fractions/items :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_fractions_items +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -16147,9 +17592,9 @@ :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/2/operation +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/composition models/items/oneOf/3/operation :open: -:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_2_operation +:name: open_features_items_oneOf_6_sections_items_segments_items_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -16419,6 +17864,79 @@ :::::::::::: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::: + +:::::::::: + +::::::::::: + +:::::::::::: + +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::{dropdown} /features/items/oneOf/6/sections/items/segments/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_6_sections_items_segments_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::: + +::::::::::: + +:::::::::::: + ::::::::::::: @@ -16767,7 +18285,7 @@ - **type**:object - **description**:Mass conserving temperature model. The temperature model uses the heat content (proportional to to thermal mass anomaly) to define a smooth temperature profile that conserves mass along the slab length. An empirical model, using error functions for smooth transitions, is used to define how the minimum temperature increases with depth and how the location of the minimum temperature shifts into the slab interior. The slab is divided into top and bottom parts, which meet at the location where the minimum temperature occurs in the slab. For the bottom slab, the temperature is defined by a half-space cooling model. For the top of the slab the temperature is defined by one side of a 1D infinite space cooling model: this function was chosen to have a smoother temperature function across the minimum temperature position. The age of the overriding plate is used so the slab temperature at shallow depth smoothly transitions to the temperature of the overriding plate: this is not perfect, and is affected by the value of "top truncation" parameter subducting plate. Notes:1) the parameter "thickness" for the subducting plate segments needs to be defined but is not used. 2) because we use a negative truncation for distance above the slab, it is recommended to usedepth method:begin at end segment, in the main part of the world-builder file.Other methods may lead to gpas in temperatures at the segment boundaries.3)the empirical model used to define how Tmin increases with depth and how the position of Tmin shift with depth is expected to change somewhat after better calibrating with further tests. - **additionalProperties**:false -- **required**:[model, plate velocity] +- **required**:[model, spreading velocity, subducting velocity] ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/model :open: @@ -16816,75 +18334,75 @@ - **description**:The reference density of the subducting plate in $kg/m^3$ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity -- **description**:The velocity with which the plate subducts in meters per year. Default is 5 cm/yr -:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf +- **description**:The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/1 +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/1 :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_1 +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_1 - **default value**:0.05 - **type**:number - **description**: :::::::::::: -::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2 +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2 :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2 +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2 - **type**:array - **minItems**:0 - **maxItems**:4294967295 - **uniqueItems**:false - **description**: -:::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items - **type**:array - **additionalProperties**:false - **minItems**:1 - **maxItems**:18446744073709551615 - **description**: -::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items +::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items -:::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf +:::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf -::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/1 +::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/1 :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_1 +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_1 - **type**:number - **default value**:0.05 :::::::: -::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2 +::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2 :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2 +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2 - **type**:array - **minItems**:1 - **maxItems**:4294967295 -:::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items +:::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items - **type**:array - **minItems**:1 - **maxItems**:18446744073709551615 -::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/plate velocity/oneOf/2/items/items/anyOf/2/items/items +::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/spreading velocity/oneOf/2/items/items/anyOf/2/items/items :open: -:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_plate-velocity_oneOf_2_items_items_anyOf_2_items_items +:name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_spreading-velocity_oneOf_2_items_items_anyOf_2_items_items - **type**:number :::::: @@ -16907,7 +18425,7 @@ :open: :name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity -- **description**:The velocity with which the ridge is moving through time, and how long the ridge has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr] +- **description**:The velocity with which the slab is subducting through time. Default is 5 cm/yr :::::::::::::{dropdown} /features/items/oneOf/6/sections/items/temperature models/items/oneOf/3/subducting velocity/oneOf :open: :name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf @@ -16916,7 +18434,7 @@ :open: :name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_1 -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::::: @@ -16943,7 +18461,7 @@ :open: :name: open_features_items_oneOf_6_sections_items_temperature-models_items_oneOf_3_subducting-velocity_oneOf_2_items_items -- **default value**:-1.0 +- **default value**:0.05 - **type**:number - **description**: :::::::::: @@ -17416,7 +18934,7 @@ :name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2 - **type**:object -- **description**:Uniform compositional model. Sets constant compositional field. +- **description**:TianWaterContent compositional model. Sets bound water content as a compositional field. The returned water content is based on the the temperature and pressure at a point within the world. Currently, the bound water content can be determined for four different lithologies: 'sediment', mid-ocean ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. - **additionalProperties**:false - **required**:[model, compositions] @@ -17427,7 +18945,7 @@ - **default value**: - **type**:string - **description**:The name of the composition model. -- **enum**:[uniform] +- **enum**:[tian water content] :::::::::::::: ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/min distance slab top @@ -17448,6 +18966,15 @@ - **description**:todo The depth in meters to which the composition of this feature is present. :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/density +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_density + +- **default value**:3000.0 +- **type**:number +- **description**:The reference density used for determining the lithostatic pressure for calculating the bound water content. +:::::::::::::: + ::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/compositions :open: :name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_compositions @@ -17468,18 +18995,116 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/fractions +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/lithology +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_lithology + +- **default value**:peridotite +- **type**:string +- **description**:The lithology used to determine which polynomials to use for calculating the water content. Valid options are: 'sediment', 'MORB', 'gabbro', and 'peridotite'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/initial water content +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_initial-water-content + +- **default value**:5.0 +- **type**:number +- **description**:The value of the initial water content (in wt%) for the lithology at the trench. This represents the max value applied to this lithology. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/cutoff pressure +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_cutoff-pressure + +- **default value**:10.0 +- **type**:number +- **description**:The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/operation +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_operation + +- **default value**:replace +- **type**:string +- **description**:Whether the value should replace any value previously defined at this location (replace) or add the value to the previously define value. Replacing implies that all compositions not explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option. +- **enum**:[replace, replace defined only, add, subtract] +:::::::::::::: + + + +::::::::::::::: + +:::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3 +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3 + +- **type**:object +- **description**:Uniform compositional model. Sets constant compositional field. +- **additionalProperties**:false +- **required**:[model, compositions] + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/model +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_model + +- **default value**: +- **type**:string +- **description**:The name of the composition model. +- **enum**:[uniform] +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/min distance slab top +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_min-distance-slab-top + +- **default value**:0.0 +- **type**:number +- **description**:todo The depth in meters from which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/max distance slab top +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_max-distance-slab-top + +- **default value**:1.7976931348623157e308 +- **type**:number +- **description**:todo The depth in meters to which the composition of this feature is present. +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/compositions +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_compositions + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the labels of the composition which are present there. +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/compositions/items +:open: +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_compositions_items + +- **default value**:0 +- **type**:integer +- **description**: +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/fractions :open: -:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_fractions +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_fractions - **type**:array - **minItems**:1 - **maxItems**:4294967295 - **uniqueItems**:false - **description**:TA list of compositional fractions corresponding to the compositions list. -:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/fractions/items +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/fractions/items :open: -:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_fractions_items +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_fractions_items - **default value**:1.0 - **type**:number @@ -17488,9 +19113,9 @@ :::::::::::::: -::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/2/operation +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/composition models/items/oneOf/3/operation :open: -:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_2_operation +:name: open_features_items_oneOf_6_sections_items_composition-models_items_oneOf_3_operation - **default value**:replace - **type**:string @@ -17760,6 +19385,79 @@ :::::::::::::: +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the rotation matrices of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices/items +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +:::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis rotation matrices/items/items/items +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-rotation-matrices_items_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +::::::::::: + +:::::::::::: + +::::::::::::: + +:::::::::::::: + +::::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z + +- **type**:array +- **minItems**:0 +- **maxItems**:4294967295 +- **uniqueItems**:false +- **description**:A list with the z-x-z Euler angles of the grains which are present there for each compositions. +:::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items + +- **type**:array +- **minItems**:3 +- **maxItems**:3 +- **uniqueItems**:false +- **description**: +::::::::::::{dropdown} /features/items/oneOf/6/sections/items/grains models/items/oneOf/2/basis Euler angles z-x-z/items/items +:open: +:name: open_features_items_oneOf_6_sections_items_grains-models_items_oneOf_2_basis-Euler-angles-z-x-z_items_items + +- **default value**:0.0 +- **type**:number +- **description**: +:::::::::::: + +::::::::::::: + +:::::::::::::: + ::::::::::::::: @@ -17961,7 +19659,7 @@ :open: :name: open_random-number-seed -- **default value**:4294967295 +- **default value**:-1 - **type**:integer - **description**:This allows the input of a preferred random number seed to generate random numbers. If no input is given, this value is -1 and triggers the use of default seed = 1. :::::::::::::::::::::::: diff --git a/contrib/world_builder/include/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.h b/contrib/world_builder/include/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.h index 4e8cf717326..54c389f2562 100644 --- a/contrib/world_builder/include/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.h +++ b/contrib/world_builder/include/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.h @@ -26,7 +26,6 @@ namespace WorldBuilder { - class Parameters; namespace Features { @@ -40,7 +39,7 @@ namespace WorldBuilder * what the returned temperature or grains of the temperature and grains * functions of this class will be. */ - class RandomUniformDistributionDeflected final : public Interface + class RandomUniformDistributionDeflected final: public Interface { public: /** @@ -106,6 +105,7 @@ namespace WorldBuilder std::vector grain_sizes; std::vector normalize_grain_sizes; std::vector deflections; + std::vector, 3>> basis_rotation_matrices; }; } // namespace Grains } // namespace ContinentalPlateModels diff --git a/contrib/world_builder/include/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.h b/contrib/world_builder/include/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.h index 82d2c683f07..b8ee7b15cd8 100644 --- a/contrib/world_builder/include/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.h +++ b/contrib/world_builder/include/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.h @@ -104,6 +104,7 @@ namespace WorldBuilder std::vector grain_sizes; std::vector normalize_grain_sizes; std::vector deflections; + std::vector, 3>> basis_rotation_matrices; }; } // namespace Grains } // namespace FaultModels diff --git a/contrib/world_builder/include/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.h b/contrib/world_builder/include/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.h index 4d0bd807be8..5b28b4bced0 100644 --- a/contrib/world_builder/include/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.h +++ b/contrib/world_builder/include/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.h @@ -105,6 +105,7 @@ namespace WorldBuilder std::vector grain_sizes; std::vector normalize_grain_sizes; std::vector deflections; + std::vector, 3>> basis_rotation_matrices; }; } // namespace Grains } // namespace MantleLayerModels diff --git a/contrib/world_builder/include/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.h b/contrib/world_builder/include/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.h new file mode 100644 index 00000000000..0ae3dd84a23 --- /dev/null +++ b/contrib/world_builder/include/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.h @@ -0,0 +1,149 @@ +/* + Copyright (C) 2018 - 2024 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +#ifndef WORLD_BUILDER_FEATURES_OCEANIC_PLATE_MODELS_COMPOSITION_WATER_CONTENT_H +#define WORLD_BUILDER_FEATURES_OCEANIC_PLATE_MODELS_COMPOSITION_WATER_CONTENT_H + + +#include "world_builder/features/oceanic_plate_models/composition/interface.h" +#include "world_builder/objects/surface.h" +#include "world_builder/features/feature_utilities.h" + + +namespace WorldBuilder +{ + namespace Features + { + using namespace FeatureUtilities; + namespace OceanicPlateModels + { + namespace Composition + { + /** + * This class represents the bound water content in a subducting plate and can implement + * submodules for computing this bound water content. These submodules determine what + * the returned water content will be based on the the temperature and pressure at a point + * within the world. Currently, the bound water content can be determined for four different + * lithologies: sediments, mid-ocean ridge basalts, gabbros, and peridotites, using + * parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). + */ + class TianWaterContent final: public Interface + { + public: + /** + * constructor + */ + TianWaterContent(WorldBuilder::World *world); + + /** + * Destructor + */ + ~TianWaterContent() override final; + + /** + * declare and read in the world builder file into the parameters class + */ + static + void declare_entries(Parameters &prm, const std::string &parent_name = ""); + + /** + * declare and read in the world builder file into the parameters class + */ + void parse_entries(Parameters &prm, const std::vector> &coordinates) override final; + + /** + * Calculates what the maximum bound water content is at a point given a pressure and + * temperature. This can be done for 4 different lithologies, "sediment", "gabbro", + * "MORB", and "peridotite" + */ + double calculate_water_content(double pressure, + double temperature) const; + + /** + * Returns a value for the bound water contend based on the given position, depth in the model, + * gravity, and the temperature at that point. + */ + double get_composition(const Point<3> &position, + const Objects::NaturalCoordinate &position_in_natural_coordinates, + const double depth, + const unsigned int composition_number, + double composition, + const double feature_min_depth, + const double feature_max_depth) const override final; + + + private: + // TianWaterContent composition submodule parameters + double min_depth; + Objects::Surface min_depth_surface; + double max_depth; + double density; // Density used to compute the lithostatic pressure + Objects::Surface max_depth_surface; + std::vector compositions; + Operations operation; + double max_water_content; + + enum LithologyName + { + peridotite, + gabbro, + MORB, + sediment + }; + LithologyName lithology_type; + + // Define the coefficients for the polynomials for 3 quantities: LR which represents the + // enthalpy change of the dehydration reactions, c_sat which represents the volatile saturation + // content, and Td which represents the onset temperature of dehydration. The first row is for + // 'peridotite', the second row is for 'gabbro', the third row is for 'MORB', and the fourth row + // is for 'sediment'. + std::vector> LR_poly = + { + {-19.0609, 168.983, -630.032, 1281.84, -1543.14, 1111.88, -459.142, 95.4143, 1.97246}, + {-1.81745, 7.67198, -10.8507, 5.09329, 8.14519}, + {-1.78177, 7.50871, -10.4840, 5.19725, 7.96365}, + {-2.03283, 10.8186, -21.2119, 18.3351, -6.48711, 8.32459} + }; + + std::vector> c_sat_poly = + { + {0.00115628, 2.42179}, + {-0.0176673, 0.0893044, 1.52732}, + {0.0102725, -0.115390, 0.324452, 1.41588}, + {-0.150662, 0.301807, 1.01867} + }; + + std::vector> Td_poly = + { + {-15.4627, 94.9716, 636.603}, + {-1.72277, 20.5898, 637.517}, + {-3.81280, 22.7809, 638.049}, + {2.83277, -24.7593, 85.9090, 524.898} + }; + + // Maximum pressure for the lithologies (Peridotite, Gabbro, MORB, Sediment). These are required because + // Above these pressures, the parameterized phase diagrams break down and the solubility goes to infinity. + double cutoff_pressure; + }; + } // namespace Composition + } // namespace OceanicPlateModels + } // namespace Features +} // namespace WorldBuilder + +#endif diff --git a/contrib/world_builder/include/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.h b/contrib/world_builder/include/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.h index 4a80945817d..f9b9c408a06 100644 --- a/contrib/world_builder/include/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.h +++ b/contrib/world_builder/include/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.h @@ -34,7 +34,7 @@ namespace WorldBuilder namespace Grains { /** - * This class represents a continental plate and can implement + * This class represents an oceanic plate and can implement * submodules for temperature and grains. These submodules determine * what the returned temperature or grains of the temperature and grains * functions of this class will be. @@ -105,6 +105,7 @@ namespace WorldBuilder std::vector grain_sizes; std::vector normalize_grain_sizes; std::vector deflections; + std::vector, 3>> basis_rotation_matrices; }; } // namespace Grains } // namespace OceanicPlateModels diff --git a/contrib/world_builder/include/world_builder/features/plume_models/grains/random_uniform_distribution_deflected.h b/contrib/world_builder/include/world_builder/features/plume_models/grains/random_uniform_distribution_deflected.h new file mode 100644 index 00000000000..da139e04885 --- /dev/null +++ b/contrib/world_builder/include/world_builder/features/plume_models/grains/random_uniform_distribution_deflected.h @@ -0,0 +1,112 @@ +/* + Copyright (C) 2018-2024 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +#ifndef WORLD_BUILDER_FEATURES_PLUME_MODELS_GRAINS_RANDOM_UNIFORM_DISTRIBUTION_DEFLECTED_H +#define WORLD_BUILDER_FEATURES_PLUME_MODELS_GRAINS_RANDOM_UNIFORM_DISTRIBUTION_DEFLECTED_H + + +#include "world_builder/features/plume_models/grains/interface.h" +#include "world_builder/objects/surface.h" + +namespace WorldBuilder +{ + namespace Features + { + namespace PlumeModels + { + namespace Grains + { + /** + * This class represents a plume and can implement + * submodules for temperature and grains. These submodules determine + * what the returned temperature or grains of the temperature and grains + * functions of this class will be. + */ + class RandomUniformDistributionDeflected final : public Interface + { + public: + /** + * constructor + */ + RandomUniformDistributionDeflected(WorldBuilder::World *world); + + /** + * Destructor + */ + ~RandomUniformDistributionDeflected() override final; + + /** + * declare and read in the world builder file into the parameters + * class + */ + static void declare_entries(Parameters &prm, + const std::string &parent_name = ""); + + /** + * declare and read in the world builder file into the parameters + * class + */ + static void declare_grain_size_model_entries( + Parameters &prm, const std::string &parent_name, + const std::vector &required_entries); + + /** + * declare and read in the world builder file into the parameters + * class + */ + static void + declare_fixed_size_model_entries(Parameters &prm, + const std::string &parent_name = ""); + + /** + * declare and read in the world builder file into the parameters + * class + */ + void parse_entries(Parameters &prm) override final; + + /** + * Returns a grains based on the given position, composition (e.g. + * olivine and/or enstatite)depth in the model, gravity and current grains. + */ + WorldBuilder::grains + get_grains(const Point<3> &position, + const Objects::NaturalCoordinate &position_in_natural_coordinates, + const double depth, + const unsigned int composition_number, + WorldBuilder::grains grains, + const double feature_min_depth, + const double feature_max_depth) const override final; + + private: + double min_depth; + double max_depth; + std::vector grains; + std::vector compositions; + std::string operation; + std::vector grain_sizes; + std::vector normalize_grain_sizes; + std::vector deflections; + std::vector, 3>> basis_rotation_matrices; + }; + } // namespace Grains + } // namespace PlumeModels + } // namespace Features +} // namespace WorldBuilder + +#endif diff --git a/contrib/world_builder/include/world_builder/features/subducting_plate_models/composition/tian2019_water_content.h b/contrib/world_builder/include/world_builder/features/subducting_plate_models/composition/tian2019_water_content.h new file mode 100644 index 00000000000..94092b3c38d --- /dev/null +++ b/contrib/world_builder/include/world_builder/features/subducting_plate_models/composition/tian2019_water_content.h @@ -0,0 +1,147 @@ +/* + Copyright (C) 2018 - 2024 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +#ifndef WORLD_BUILDER_FEATURES_SUBDUCTING_PLATE_MODELS_COMPOSITION_WATER_CONTENT_H +#define WORLD_BUILDER_FEATURES_SUBDUCTING_PLATE_MODELS_COMPOSITION_WATER_CONTENT_H + + +#include "world_builder/features/subducting_plate_models/composition/interface.h" +#include + + +namespace WorldBuilder +{ + + namespace Features + { + namespace SubductingPlateModels + { + namespace Composition + { + /** + * This class represents the bound water content in a subducting plate and can implement + * submodules for computing this bound water content. These submodules determine what + * the returned water content will be based on the the temperature and pressure at a point + * within the world. Currently, the bound water content can be determined for four different + * lithologies: sediments, mid-ocean ridge basalts, gabbros, and peridotites, using + * parameterized phase diagrams from Tian et al., 2019 (https://doi.org/10.1029/2019GC008488). + */ + class TianWaterContent final: public Interface + { + public: + /** + * constructor + */ + TianWaterContent(WorldBuilder::World *world); + + /** + * Destructor + */ + ~TianWaterContent() override final; + + /** + * declare and read in the world builder file into the parameters class + */ + static + void declare_entries(Parameters &prm, const std::string &parent_name = ""); + + /** + * declare and read in the world builder file into the parameters class + */ + void parse_entries(Parameters &prm) override final; + + /** + * Calculates what the maximum bound water content is at a point given a pressure and + * temperature. This can be done for 4 different lithologies, "sediment", "gabbro", + * "MORB", and "peridotite" + */ + double calculate_water_content(double pressure, + double temperature) const; + /** + * Returns a value for the bound water contend based on the given position, depth in the model, + * gravity, and the temperature at that point. + */ + double get_composition(const Point<3> &position, + const double depth, + const unsigned int composition_number, + double composition, + const double feature_min_depth, + const double feature_max_depth, + const WorldBuilder::Utilities::PointDistanceFromCurvedPlanes &distance_from_planes, + const AdditionalParameters &additional_parameters) const override final; + + + private: + // TianWaterContent composition submodule parameters + double min_depth; + double max_depth; + double density; // Density used to calculate the lithostatic pressure + std::vector compositions; + Operations operation; + std::string lithology_str; + double max_water_content; + + enum LithologyName + { + peridotite, + gabbro, + MORB, + sediment + }; + LithologyName lithology_type; + + // Define the coefficients for the polynomials for 3 quantities: LR which represents the + // enthalpy change of the dehydration reactions, c_sat which represents the volatile saturation + // content, and Td which represents the onset temperature of dehydration. The first row is for + // 'peridotite', the second row is for 'gabbro', the third row is for 'MORB', and the fourth row + // is for 'sediment'. + std::vector> LR_poly = + { + {-19.0609, 168.983, -630.032, 1281.84, -1543.14, 1111.88, -459.142, 95.4143, 1.97246}, + {-1.81745, 7.67198, -10.8507, 5.09329, 8.14519}, + {-1.78177, 7.50871, -10.4840, 5.19725, 7.96365}, + {-2.03283, 10.8186, -21.2119, 18.3351, -6.48711, 8.32459} + }; + + std::vector> c_sat_poly = + { + {0.00115628, 2.42179}, + {-0.0176673, 0.0893044, 1.52732}, + {0.0102725, -0.115390, 0.324452, 1.41588}, + {-0.150662, 0.301807, 1.01867} + }; + + std::vector> Td_poly = + { + {-15.4627, 94.9716, 636.603}, + {-1.72277, 20.5898, 637.517}, + {-3.81280, 22.7809, 638.049}, + {2.83277, -24.7593, 85.9090, 524.898} + }; + + // Maximum pressure for the lithologies (Peridotite, Gabbro, MORB, Sediment). These are required because + // Above these pressures, the parameterized phase diagrams break down and the solubility goes to infinity. + double cutoff_pressure; + }; + } // namespace Composition + } // namespace SubductingPlateModels + } // namespace Features +} // namespace WorldBuilder + +#endif diff --git a/contrib/world_builder/include/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.h b/contrib/world_builder/include/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.h index ddaada0be0b..273764c13f9 100644 --- a/contrib/world_builder/include/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.h +++ b/contrib/world_builder/include/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.h @@ -103,6 +103,7 @@ namespace WorldBuilder std::vector grain_sizes; std::vector normalize_grain_sizes; std::vector deflections; + std::vector, 3>> basis_rotation_matrices; }; } // namespace Grains diff --git a/contrib/world_builder/include/world_builder/utilities.h b/contrib/world_builder/include/world_builder/utilities.h index 9b5d2687a2d..68d389714f6 100644 --- a/contrib/world_builder/include/world_builder/utilities.h +++ b/contrib/world_builder/include/world_builder/utilities.h @@ -487,6 +487,14 @@ namespace WorldBuilder std::vector calculate_effective_trench_and_plate_ages(std::vector ridge_parameters, double distance_along_plane); + /* + * Returns the result of the multiplication of two 3*3 matrix, + * used in applying the random uniform distribution rotation matrix + * to a given orientation (rotation matrix) + */ + std::array,3> + multiply_3x3_matrices(const std::array,3> mat1, std::array,3> const mat2); + } // namespace Utilities } // namespace WorldBuilder diff --git a/contrib/world_builder/source/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.cc b/contrib/world_builder/source/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.cc index 02150f29edc..d1b077f17fc 100644 --- a/contrib/world_builder/source/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.cc +++ b/contrib/world_builder/source/world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.cc @@ -19,8 +19,6 @@ #include "world_builder/features/continental_plate_models/grains/random_uniform_distribution_deflected.h" -#include - #include "world_builder/nan.h" #include "world_builder/types/array.h" #include "world_builder/types/bool.h" @@ -29,6 +27,7 @@ #include "world_builder/types/one_of.h" #include "world_builder/types/unsigned_int.h" #include "world_builder/types/value_at_points.h" +#include "world_builder/utilities.h" #include "world_builder/world.h" namespace WorldBuilder @@ -89,7 +88,11 @@ namespace WorldBuilder Types::Array(Types::Double(1),0), "A list of the deflections of all of the grains in each composition between 0 and 1."); + prm.declare_entry("basis rotation matrices", Types::Array(Types::Array(Types::Array(Types::Double(0),3,3),3,3),0), + "A list with the rotation matrices of the grains which are present there for each compositions."); + prm.declare_entry("basis Euler angles z-x-z", Types::Array(Types::Array(Types::Double(0),3,3),0), + "A list with the z-x-z Euler angles of the grains which are present there for each compositions."); } @@ -102,6 +105,31 @@ namespace WorldBuilder max_depth = max_depth_surface.maximum; compositions = prm.get_vector("compositions"); + const bool set_euler_angles = prm.check_entry("basis Euler angles z-x-z"); + const bool set_rotation_matrices = prm.check_entry("basis rotation matrices"); + + WBAssertThrow(!(set_euler_angles == true && set_rotation_matrices == true), + "Only Euler angles or Rotation matrices may be set, but both are set for " << prm.get_full_json_path()); + + + WBAssertThrow(!(set_euler_angles == false && set_rotation_matrices == false), + "Euler angles or Rotation matrices have to be set, but neither are set for " << prm.get_full_json_path()); + + if (set_euler_angles) + { + std::vector > basis_euler_angles_vector = prm.get_vector >("basis Euler angles z-x-z"); + basis_rotation_matrices.resize(basis_euler_angles_vector.size()); + for (size_t i = 0; i,3> >("basis rotation matrices"); + } + operation = prm.get("orientation operation"); grain_sizes = prm.get_vector("grain sizes"); normalize_grain_sizes = prm.get_vector("normalize grain sizes"); @@ -116,9 +144,11 @@ namespace WorldBuilder WBAssertThrow(compositions.size() == deflections.size(), "There are not the same amount of compositions (" << compositions.size() << ") and deflections (" << deflections.size() << ")."); + WBAssertThrow(compositions.size() == basis_rotation_matrices.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and rotation_matrices (" << basis_rotation_matrices.size() << ")."); } - WorldBuilder::grains RandomUniformDistributionDeflected::get_grains(const Point<3> & /*position_in_cartesian_coordinates*/, const Objects::NaturalCoordinate &position_in_natural_coordinates, @@ -161,9 +191,10 @@ namespace WorldBuilder const double two = dist(world->get_random_number_engine()); const double three = dist(world->get_random_number_engine()); + // the distribution is restricted by the deflection (between 0 and 1) const double theta = 2.0 * Consts::PI * one * deflections[i]; // Rotation about the pole (Z) const double phi = 2.0 * Consts::PI * two; // For direction of pole deflection. - const double z = 2.0* three * deflections[i]; //For magnitude of pole deflection. + const double z = 2.0 * three * deflections[i]; //For magnitude of pole deflection. // Compute a vector V used for distributing points over the sphere // via the reflection I - V Transpose(V). This formulation of V @@ -188,17 +219,33 @@ namespace WorldBuilder // Construct the rotation matrix ( V Transpose(V) - I ) R, which // is equivalent to V S - R. - it_rotation_matrices[0][0] = Vx * Sx - ct; - it_rotation_matrices[0][1] = Vx * Sy - st; - it_rotation_matrices[0][2] = Vx * Vz; - - it_rotation_matrices[1][0] = Vy * Sx + st; - it_rotation_matrices[1][1] = Vy * Sy - ct; - it_rotation_matrices[1][2] = Vy * Vz; - - it_rotation_matrices[2][0] = Vz * Sx; - it_rotation_matrices[2][1] = Vz * Sy; - it_rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + std::array,3> rotation_matrices; + rotation_matrices[0][0] = (Vx * Sx - ct); + rotation_matrices[0][1] = (Vx * Sy - st); + rotation_matrices[0][2] = Vx * Vz; + + rotation_matrices[1][0] = (Vy * Sx + st); + rotation_matrices[1][1] = (Vy * Sy - ct); + rotation_matrices[1][2] = Vy * Vz; + + rotation_matrices[2][0] = Vz * Sx; + rotation_matrices[2][1] = Vz * Sy; + rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + + // Rotate the basis rotation matrix with the random uniform distribution rotation matrix + // First get the transpose of the rotation matrix + std::array, 3> rot_T= rotation_matrices; + rot_T[0][1] = rotation_matrices[1][0]; + rot_T[1][0] = rotation_matrices[0][1]; + rot_T[1][2] = rotation_matrices[2][1]; + rot_T[2][1] = rotation_matrices[1][2]; + rot_T[0][2] = rotation_matrices[2][0]; + rot_T[2][0] = rotation_matrices[0][2]; + + // Then U' = R * U * R^T + std::array,3> result1 = Utilities::multiply_3x3_matrices(rotation_matrices, basis_rotation_matrices[i]); + + it_rotation_matrices = result1; } double total_size = 0; @@ -211,8 +258,15 @@ namespace WorldBuilder if (normalize_grain_sizes[i]) { const double one_over_total_size = 1/total_size; - std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), - [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // std::transform is a c++17 feature, while current GWB is c++14 + // update this after switching to c+=17 + // std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), + // [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // Apply the transformation using a loop + for (auto &&size : grains_local.sizes) + { + size = size*one_over_total_size; + } } diff --git a/contrib/world_builder/source/world_builder/features/continental_plate_models/temperature/linear.cc b/contrib/world_builder/source/world_builder/features/continental_plate_models/temperature/linear.cc index 2c92fae4f7d..03d173390fa 100644 --- a/contrib/world_builder/source/world_builder/features/continental_plate_models/temperature/linear.cc +++ b/contrib/world_builder/source/world_builder/features/continental_plate_models/temperature/linear.cc @@ -129,8 +129,8 @@ namespace WorldBuilder } const double new_temperature = top_temperature_local + (max_depth_local_local - min_depth_local_local < 10.0*std::numeric_limits::epsilon() ? 0.0 : - (depth - min_depth_local) * - ((bottom_temperature_local - top_temperature_local) / (max_depth_local_local - min_depth_local_local))); + (depth - min_depth_local) * + ((bottom_temperature_local - top_temperature_local) / (max_depth_local_local - min_depth_local_local))); WBAssert(!std::isnan(new_temperature), "Temperature is not a number: " << new_temperature << ", based on a temperature model with the name " << this->name); diff --git a/contrib/world_builder/source/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.cc b/contrib/world_builder/source/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.cc index 1f970ee202e..d2d10249d79 100644 --- a/contrib/world_builder/source/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.cc +++ b/contrib/world_builder/source/world_builder/features/fault_models/grains/random_uniform_distribution_deflected.cc @@ -19,8 +19,6 @@ #include "world_builder/features/fault_models/grains/random_uniform_distribution_deflected.h" -#include - #include "world_builder/nan.h" #include "world_builder/types/array.h" #include "world_builder/types/bool.h" @@ -88,6 +86,12 @@ namespace WorldBuilder Types::Array(Types::Double(1),0), "A list of the deflections of all of the grains in each composition between 0 and 1."); + prm.declare_entry("basis rotation matrices", Types::Array(Types::Array(Types::Array(Types::Double(0),3,3),3,3),0), + "A list with the rotation matrices of the grains which are present there for each compositions."); + + prm.declare_entry("basis Euler angles z-x-z", Types::Array(Types::Array(Types::Double(0),3,3),0), + "A list with the z-x-z Euler angles of the grains which are present there for each compositions."); + } @@ -99,6 +103,31 @@ namespace WorldBuilder max_depth = prm.get("max distance fault center"); compositions = prm.get_vector("compositions"); + const bool set_euler_angles = prm.check_entry("basis Euler angles z-x-z"); + const bool set_rotation_matrices = prm.check_entry("basis rotation matrices"); + + WBAssertThrow(!(set_euler_angles == true && set_rotation_matrices == true), + "Only Euler angles or Rotation matrices may be set, but both are set for " << prm.get_full_json_path()); + + + WBAssertThrow(!(set_euler_angles == false && set_rotation_matrices == false), + "Euler angles or Rotation matrices have to be set, but neither are set for " << prm.get_full_json_path()); + + if (set_euler_angles) + { + std::vector > basis_euler_angles_vector = prm.get_vector >("basis Euler angles z-x-z"); + basis_rotation_matrices.resize(basis_euler_angles_vector.size()); + for (size_t i = 0; i,3> >("basis rotation matrices"); + } + operation = prm.get("orientation operation"); grain_sizes = prm.get_vector("grain sizes"); normalize_grain_sizes = prm.get_vector("normalize grain sizes"); @@ -113,9 +142,11 @@ namespace WorldBuilder WBAssertThrow(compositions.size() == deflections.size(), "There are not the same amount of compositions (" << compositions.size() << ") and deflections (" << deflections.size() << ")."); + WBAssertThrow(compositions.size() == basis_rotation_matrices.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and rotation_matrices (" << basis_rotation_matrices.size() << ")."); } - WorldBuilder::grains RandomUniformDistributionDeflected::get_grains(const Point<3> & /*position_in_cartesian_coordinates*/, const double /*depth*/, @@ -182,17 +213,33 @@ namespace WorldBuilder // Construct the rotation matrix ( V Transpose(V) - I ) R, which // is equivalent to V S - R. - it_rotation_matrices[0][0] = Vx * Sx - ct; - it_rotation_matrices[0][1] = Vx * Sy - st; - it_rotation_matrices[0][2] = Vx * Vz; - - it_rotation_matrices[1][0] = Vy * Sx + st; - it_rotation_matrices[1][1] = Vy * Sy - ct; - it_rotation_matrices[1][2] = Vy * Vz; - - it_rotation_matrices[2][0] = Vz * Sx; - it_rotation_matrices[2][1] = Vz * Sy; - it_rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + std::array,3> rotation_matrices; + rotation_matrices[0][0] = (Vx * Sx - ct); + rotation_matrices[0][1] = (Vx * Sy - st); + rotation_matrices[0][2] = Vx * Vz; + + rotation_matrices[1][0] = (Vy * Sx + st); + rotation_matrices[1][1] = (Vy * Sy - ct); + rotation_matrices[1][2] = Vy * Vz; + + rotation_matrices[2][0] = Vz * Sx; + rotation_matrices[2][1] = Vz * Sy; + rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + + // Rotate the basis rotation matrix with the random uniform distribution rotation matrix + // First get the transpose of the rotation matrix + std::array, 3> rot_T= rotation_matrices; + rot_T[0][1] = rotation_matrices[1][0]; + rot_T[1][0] = rotation_matrices[0][1]; + rot_T[1][2] = rotation_matrices[2][1]; + rot_T[2][1] = rotation_matrices[1][2]; + rot_T[0][2] = rotation_matrices[2][0]; + rot_T[2][0] = rotation_matrices[0][2]; + + // Then U' = R * U * R^T + std::array,3> result1 = multiply_3x3_matrices(rotation_matrices, basis_rotation_matrices[i]); + + it_rotation_matrices = result1; } double total_size = 0; @@ -205,8 +252,15 @@ namespace WorldBuilder if (normalize_grain_sizes[i]) { const double one_over_total_size = 1/total_size; - std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), - [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // std::transform is a c++17 feature, while current GWB is c++14 + // update this after switching to c+=17 + // std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), + // [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // Apply the transformation using a loop + for (auto &&size : grains_local.sizes) + { + size = size*one_over_total_size; + } } return grains_local; diff --git a/contrib/world_builder/source/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.cc b/contrib/world_builder/source/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.cc index d3cf85005b2..deb0dfa724e 100644 --- a/contrib/world_builder/source/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.cc +++ b/contrib/world_builder/source/world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.cc @@ -19,8 +19,6 @@ #include "world_builder/features/mantle_layer_models/grains/random_uniform_distribution_deflected.h" -#include - #include "world_builder/nan.h" #include "world_builder/types/array.h" #include "world_builder/types/bool.h" @@ -29,6 +27,7 @@ #include "world_builder/types/one_of.h" #include "world_builder/types/unsigned_int.h" #include "world_builder/types/value_at_points.h" +#include "world_builder/utilities.h" #include "world_builder/world.h" namespace WorldBuilder @@ -89,7 +88,11 @@ namespace WorldBuilder Types::Array(Types::Double(1),0), "A list of the deflections of all of the grains in each composition between 0 and 1."); + prm.declare_entry("basis rotation matrices", Types::Array(Types::Array(Types::Array(Types::Double(0),3,3),3,3),0), + "A list with the rotation matrices of the grains which are present there for each compositions."); + prm.declare_entry("basis Euler angles z-x-z", Types::Array(Types::Array(Types::Double(0),3,3),0), + "A list with the z-x-z Euler angles of the grains which are present there for each compositions."); } @@ -102,6 +105,31 @@ namespace WorldBuilder max_depth = max_depth_surface.maximum; compositions = prm.get_vector("compositions"); + const bool set_euler_angles = prm.check_entry("basis Euler angles z-x-z"); + const bool set_rotation_matrices = prm.check_entry("basis rotation matrices"); + + WBAssertThrow(!(set_euler_angles == true && set_rotation_matrices == true), + "Only Euler angles or Rotation matrices may be set, but both are set for " << prm.get_full_json_path()); + + + WBAssertThrow(!(set_euler_angles == false && set_rotation_matrices == false), + "Euler angles or Rotation matrices have to be set, but neither are set for " << prm.get_full_json_path()); + + if (set_euler_angles) + { + std::vector > basis_euler_angles_vector = prm.get_vector >("basis Euler angles z-x-z"); + basis_rotation_matrices.resize(basis_euler_angles_vector.size()); + for (size_t i = 0; i,3> >("basis rotation matrices"); + } + operation = prm.get("orientation operation"); grain_sizes = prm.get_vector("grain sizes"); normalize_grain_sizes = prm.get_vector("normalize grain sizes"); @@ -116,9 +144,11 @@ namespace WorldBuilder WBAssertThrow(compositions.size() == deflections.size(), "There are not the same amount of compositions (" << compositions.size() << ") and deflections (" << deflections.size() << ")."); + WBAssertThrow(compositions.size() == basis_rotation_matrices.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and rotation_matrices (" << basis_rotation_matrices.size() << ")."); } - WorldBuilder::grains RandomUniformDistributionDeflected::get_grains(const Point<3> & /*position_in_cartesian_coordinates*/, const Objects::NaturalCoordinate &position_in_natural_coordinates, @@ -164,7 +194,7 @@ namespace WorldBuilder // the distribution is restricted by the deflection (between 0 and 1) const double theta = 2.0 * Consts::PI * one * deflections[i]; // Rotation about the pole (Z) const double phi = 2.0 * Consts::PI * two; // For direction of pole deflection. - const double z = 2.0* three * deflections[i]; //For magnitude of pole deflection. + const double z = 2.0 * three * deflections[i]; //For magnitude of pole deflection. // Compute a vector V used for distributing points over the sphere // via the reflection I - V Transpose(V). This formulation of V @@ -189,17 +219,33 @@ namespace WorldBuilder // Construct the rotation matrix ( V Transpose(V) - I ) R, which // is equivalent to V S - R. - it_rotation_matrices[0][0] = Vx * Sx - ct; - it_rotation_matrices[0][1] = Vx * Sy - st; - it_rotation_matrices[0][2] = Vx * Vz; - - it_rotation_matrices[1][0] = Vy * Sx + st; - it_rotation_matrices[1][1] = Vy * Sy - ct; - it_rotation_matrices[1][2] = Vy * Vz; - - it_rotation_matrices[2][0] = Vz * Sx; - it_rotation_matrices[2][1] = Vz * Sy; - it_rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + std::array,3> rotation_matrices; + rotation_matrices[0][0] = (Vx * Sx - ct); + rotation_matrices[0][1] = (Vx * Sy - st); + rotation_matrices[0][2] = Vx * Vz; + + rotation_matrices[1][0] = (Vy * Sx + st); + rotation_matrices[1][1] = (Vy * Sy - ct); + rotation_matrices[1][2] = Vy * Vz; + + rotation_matrices[2][0] = Vz * Sx; + rotation_matrices[2][1] = Vz * Sy; + rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + + // Rotate the basis rotation matrix with the random uniform distribution rotation matrix + // First get the transpose of the rotation matrix + std::array, 3> rot_T= rotation_matrices; + rot_T[0][1] = rotation_matrices[1][0]; + rot_T[1][0] = rotation_matrices[0][1]; + rot_T[1][2] = rotation_matrices[2][1]; + rot_T[2][1] = rotation_matrices[1][2]; + rot_T[0][2] = rotation_matrices[2][0]; + rot_T[2][0] = rotation_matrices[0][2]; + + // Then U' = R * U * R^T + std::array,3> result1 = multiply_3x3_matrices(rotation_matrices, basis_rotation_matrices[i]); + + it_rotation_matrices = result1; } double total_size = 0; @@ -212,8 +258,15 @@ namespace WorldBuilder if (normalize_grain_sizes[i]) { const double one_over_total_size = 1/total_size; - std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), - [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // std::transform is a c++17 feature, while current GWB is c++14 + // update this after switching to c+=17 + // std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), + // [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // Apply the transformation using a loop + for (auto &&size : grains_local.sizes) + { + size = size*one_over_total_size; + } } return grains_local; diff --git a/contrib/world_builder/source/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.cc b/contrib/world_builder/source/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.cc new file mode 100644 index 00000000000..4794a54f5da --- /dev/null +++ b/contrib/world_builder/source/world_builder/features/oceanic_plate_models/composition/tian2019_water_content.cc @@ -0,0 +1,206 @@ +/* + Copyright (C) 2018 - 2024 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +#include "world_builder/features/oceanic_plate_models/composition/tian2019_water_content.h" + +#include "world_builder/kd_tree.h" +#include "world_builder/nan.h" +#include "world_builder/types/array.h" +#include "world_builder/types/double.h" +#include "world_builder/types/object.h" +#include "world_builder/types/one_of.h" +#include "world_builder/types/unsigned_int.h" +#include "world_builder/types/value_at_points.h" +#include "world_builder/utilities.h" +#include "world_builder/world.h" + + +namespace WorldBuilder +{ + + using namespace Utilities; + + namespace Features + { + namespace OceanicPlateModels + { + namespace Composition + { + TianWaterContent::TianWaterContent(WorldBuilder::World *world_) + : + min_depth(NaN::DSNAN), + max_depth(NaN::DSNAN), + density(NaN::DSNAN) + { + this->world = world_; + this->name = "water content"; + } + + TianWaterContent::~TianWaterContent() + = default; + + void + TianWaterContent::declare_entries(Parameters &prm, const std::string & /*unused*/) + { + // Document plugin and require entries if needed. + // Add compositions to the required parameters. + prm.declare_entry("", Types::Object({"compositions"}), + "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned " + "water content is based on the the temperature and pressure at a point within the world. Currently, " + "the bound water content can be determined for four different lithologies: 'sediment', mid-ocean " + "ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 " + "(https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined " + "density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the " + "parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', " + "26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'."); + + // Declare entries of this plugin + prm.declare_entry("min depth", Types::OneOf(Types::Double(0),Types::Array(Types::ValueAtPoints(0., 2.))), + "The depth in meters from which the composition of this feature is present."); + prm.declare_entry("max depth", Types::OneOf(Types::Double(std::numeric_limits::max()),Types::Array(Types::ValueAtPoints(std::numeric_limits::max(), 2.))), + "The depth in meters to which the composition of this feature is present."); + prm.declare_entry("compositions", Types::Array(Types::UnsignedInt(),0), + "A list with the labels of the composition which are present there."); + prm.declare_entry("density", Types::Double(3000.0), + "The reference density used for determining the lithostatic pressure for calculating " + "the bound water content."); + prm.declare_entry("lithology", Types::String("peridotite"), + "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: " + "'sediment', 'MORB', 'gabbro', and 'peridotite'."); + prm.declare_entry("initial water content", Types::Double(5), + "The value of the initial water content (in wt%) for the lithology at the trench. This represents the " + "max value applied to this lithology."); + prm.declare_entry("cutoff pressure", Types::Double(10), + "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because " + "the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for " + "'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'."); + prm.declare_entry("operation", Types::String("replace", std::vector {"replace", "replace defined only", "add", "subtract"}), + "Whether the value should replace any value previously defined at this location (replace) or " + "add the value to the previously define value. Replacing implies that all compositions not " + "explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option."); + } + + void + TianWaterContent::parse_entries(Parameters &prm, const std::vector> &coordinates) + { + min_depth_surface = Objects::Surface(prm.get("min depth",coordinates)); + min_depth = min_depth_surface.minimum; + max_depth_surface = Objects::Surface(prm.get("max depth",coordinates)); + max_depth = max_depth_surface.maximum; + density = prm.get("density"); + compositions = prm.get_vector("compositions"); + max_water_content = prm.get("initial water content"); + operation = string_operations_to_enum(prm.get("operation")); + cutoff_pressure = prm.get("cutoff pressure"); + std::string lithology_string = prm.get("lithology"); + + if (lithology_string=="peridotite") + lithology_type = peridotite; + else if (lithology_string=="gabbro") + lithology_type = gabbro; + else if (lithology_string=="MORB") + lithology_type = MORB; + else if (lithology_string=="sediment") + lithology_type = sediment; + } + + + double + TianWaterContent::calculate_water_content(double pressure, + double temperature) const + { + double ln_LR_value = 0; + double ln_c_sat_value = 0; + double Td_value = 0; + std::vector LR_polynomial_coeffs; + std::vector c_sat_polynomial_coeffs; + std::vector Td_polynomial_coeffs; + + // Calculate the c_sat value from Tian et al., 2019 + if (lithology_type == sediment) + { + for (unsigned int c_sat_index = 0; c_sat_index < c_sat_poly[lithology_type].size(); ++c_sat_index) + ln_c_sat_value += c_sat_poly[lithology_type][c_sat_index] * (std::pow(std::log10(pressure), c_sat_poly[lithology_type].size() - 1 - c_sat_index)); + } + else + { + for (unsigned int c_sat_index = 0; c_sat_index < c_sat_poly[lithology_type].size(); ++c_sat_index) + ln_c_sat_value += c_sat_poly[lithology_type][c_sat_index] * (std::pow(pressure, c_sat_poly[lithology_type].size() - 1 - c_sat_index)); + } + + // Calculate the LR value from Tian et al., 2019 + for (unsigned int LR_coeff_index = 0; LR_coeff_index < LR_poly[lithology_type].size(); ++LR_coeff_index) + ln_LR_value += LR_poly[lithology_type][LR_coeff_index] * (std::pow(1/pressure, LR_poly[lithology_type].size() - 1 - LR_coeff_index)); + + // Calculate the Td value from Tian et al., 2019 + for (unsigned int Td_coeff_index = 0; Td_coeff_index < Td_poly[lithology_type].size(); ++Td_coeff_index) + Td_value += Td_poly[lithology_type][Td_coeff_index] * (std::pow(pressure, Td_poly[lithology_type].size() - 1 - Td_coeff_index)); + + double partition_coeff = std::exp(ln_c_sat_value) * std::exp(std::exp(ln_LR_value) * (1/temperature - 1/Td_value)); + return partition_coeff; + } + + + double + TianWaterContent::get_composition(const Point<3> &position_in_cartesian_coordinates, + const Objects::NaturalCoordinate &position_in_natural_coordinates, + const double depth, + const unsigned int composition_number, + double composition, + const double /*feature_min_depth*/, + const double /*feature_max_depth*/) const + { + if (depth <= max_depth && depth >= min_depth) + { + const double min_depth_local = min_depth_surface.constant_value ? min_depth : min_depth_surface.local_value(position_in_natural_coordinates.get_surface_point()).interpolated_value; + const double max_depth_local = max_depth_surface.constant_value ? max_depth : max_depth_surface.local_value(position_in_natural_coordinates.get_surface_point()).interpolated_value; + if (depth <= max_depth_local && depth >= min_depth_local) + { + // The polynomials break down for pressures less than 0.5 GPa, and for pressures above a user defined cutoff pressure + // ensure that the pressure is never below 0.5 GPa + const double lithostatic_pressure = std::max(0.5, std::min(density * 9.81 * depth / 1e9, cutoff_pressure)); // GPa + const double slab_temperature = world->properties(position_in_cartesian_coordinates.get_array(), depth, {{{1,0,0}}})[0]; + double partition_coefficient = calculate_water_content(lithostatic_pressure, + slab_temperature); + + partition_coefficient = std::min(max_water_content, partition_coefficient); + + for (unsigned int i = 0; i < compositions.size(); ++i) + { + if (compositions[i] == composition_number) + { + return apply_operation(operation,composition, partition_coefficient); + } + } + + if (operation == Operations::REPLACE) + { + return 0.0; + } + } + } + return composition; + } + WB_REGISTER_FEATURE_OCEANIC_PLATE_COMPOSITION_MODEL(TianWaterContent, tian water content) + } // namespace Composition + } // namespace OceanicPlateModels + } // namespace Features +} // namespace WorldBuilder + + diff --git a/contrib/world_builder/source/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.cc b/contrib/world_builder/source/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.cc index ffac673631f..e95a4cf56bd 100644 --- a/contrib/world_builder/source/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.cc +++ b/contrib/world_builder/source/world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.cc @@ -19,8 +19,6 @@ #include "world_builder/features/oceanic_plate_models/grains/random_uniform_distribution_deflected.h" -#include - #include "world_builder/nan.h" #include "world_builder/types/array.h" #include "world_builder/types/bool.h" @@ -29,6 +27,7 @@ #include "world_builder/types/one_of.h" #include "world_builder/types/unsigned_int.h" #include "world_builder/types/value_at_points.h" +#include "world_builder/utilities.h" #include "world_builder/world.h" namespace WorldBuilder @@ -89,7 +88,11 @@ namespace WorldBuilder Types::Array(Types::Double(1),0), "A list of the deflections of all of the grains in each composition between 0 and 1."); + prm.declare_entry("basis rotation matrices", Types::Array(Types::Array(Types::Array(Types::Double(0),3,3),3,3),0), + "A list with the rotation matrices of the grains which are present there for each compositions."); + prm.declare_entry("basis Euler angles z-x-z", Types::Array(Types::Array(Types::Double(0),3,3),0), + "A list with the z-x-z Euler angles of the grains which are present there for each compositions."); } @@ -102,6 +105,31 @@ namespace WorldBuilder max_depth = max_depth_surface.maximum; compositions = prm.get_vector("compositions"); + const bool set_euler_angles = prm.check_entry("basis Euler angles z-x-z"); + const bool set_rotation_matrices = prm.check_entry("basis rotation matrices"); + + WBAssertThrow(!(set_euler_angles == true && set_rotation_matrices == true), + "Only Euler angles or Rotation matrices may be set, but both are set for " << prm.get_full_json_path()); + + + WBAssertThrow(!(set_euler_angles == false && set_rotation_matrices == false), + "Euler angles or Rotation matrices have to be set, but neither are set for " << prm.get_full_json_path()); + + if (set_euler_angles) + { + std::vector > basis_euler_angles_vector = prm.get_vector >("basis Euler angles z-x-z"); + basis_rotation_matrices.resize(basis_euler_angles_vector.size()); + for (size_t i = 0; i,3> >("basis rotation matrices"); + } + operation = prm.get("orientation operation"); grain_sizes = prm.get_vector("grain sizes"); normalize_grain_sizes = prm.get_vector("normalize grain sizes"); @@ -116,9 +144,11 @@ namespace WorldBuilder WBAssertThrow(compositions.size() == deflections.size(), "There are not the same amount of compositions (" << compositions.size() << ") and deflections (" << deflections.size() << ")."); + WBAssertThrow(compositions.size() == basis_rotation_matrices.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and rotation_matrices (" << basis_rotation_matrices.size() << ")."); } - WorldBuilder::grains RandomUniformDistributionDeflected::get_grains(const Point<3> & /*position_in_cartesian_coordinates*/, const Objects::NaturalCoordinate &position_in_natural_coordinates, @@ -161,9 +191,10 @@ namespace WorldBuilder const double two = dist(world->get_random_number_engine()); const double three = dist(world->get_random_number_engine()); + // the distribution is restricted by the deflection (between 0 and 1) const double theta = 2.0 * Consts::PI * one * deflections[i]; // Rotation about the pole (Z) const double phi = 2.0 * Consts::PI * two; // For direction of pole deflection. - const double z = 2.0* three * deflections[i]; //For magnitude of pole deflection. + const double z = 2.0 * three * deflections[i]; //For magnitude of pole deflection. // Compute a vector V used for distributing points over the sphere // via the reflection I - V Transpose(V). This formulation of V @@ -188,17 +219,33 @@ namespace WorldBuilder // Construct the rotation matrix ( V Transpose(V) - I ) R, which // is equivalent to V S - R. - it_rotation_matrices[0][0] = Vx * Sx - ct; - it_rotation_matrices[0][1] = Vx * Sy - st; - it_rotation_matrices[0][2] = Vx * Vz; - - it_rotation_matrices[1][0] = Vy * Sx + st; - it_rotation_matrices[1][1] = Vy * Sy - ct; - it_rotation_matrices[1][2] = Vy * Vz; - - it_rotation_matrices[2][0] = Vz * Sx; - it_rotation_matrices[2][1] = Vz * Sy; - it_rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + std::array,3> rotation_matrices; + rotation_matrices[0][0] = (Vx * Sx - ct); + rotation_matrices[0][1] = (Vx * Sy - st); + rotation_matrices[0][2] = Vx * Vz; + + rotation_matrices[1][0] = (Vy * Sx + st); + rotation_matrices[1][1] = (Vy * Sy - ct); + rotation_matrices[1][2] = Vy * Vz; + + rotation_matrices[2][0] = Vz * Sx; + rotation_matrices[2][1] = Vz * Sy; + rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + + // Rotate the basis rotation matrix with the random uniform distribution rotation matrix + // First get the transpose of the rotation matrix + std::array, 3> rot_T= rotation_matrices; + rot_T[0][1] = rotation_matrices[1][0]; + rot_T[1][0] = rotation_matrices[0][1]; + rot_T[1][2] = rotation_matrices[2][1]; + rot_T[2][1] = rotation_matrices[1][2]; + rot_T[0][2] = rotation_matrices[2][0]; + rot_T[2][0] = rotation_matrices[0][2]; + + // Then U' = R * U * R^T + std::array,3> result1 = multiply_3x3_matrices(rotation_matrices, basis_rotation_matrices[i]); + + it_rotation_matrices = result1; } double total_size = 0; @@ -211,8 +258,15 @@ namespace WorldBuilder if (normalize_grain_sizes[i]) { const double one_over_total_size = 1/total_size; - std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), - [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // std::transform is a c++17 feature, while current GWB is c++14 + // update this after switching to c+=17 + // std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), + // [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // Apply the transformation using a loop + for (auto &&size : grains_local.sizes) + { + size = size*one_over_total_size; + } } return grains_local; diff --git a/contrib/world_builder/source/world_builder/features/oceanic_plate_models/temperature/linear.cc b/contrib/world_builder/source/world_builder/features/oceanic_plate_models/temperature/linear.cc index 3dad3b341bb..c76478656ba 100644 --- a/contrib/world_builder/source/world_builder/features/oceanic_plate_models/temperature/linear.cc +++ b/contrib/world_builder/source/world_builder/features/oceanic_plate_models/temperature/linear.cc @@ -126,8 +126,8 @@ namespace WorldBuilder } const double new_temperature = top_temperature_local + (max_depth_local_local - min_depth_local_local < 10.0*std::numeric_limits::epsilon() ? 0.0 : - (depth - min_depth_local_local) * - ((bottom_temperature_local - top_temperature_local) / (max_depth_local_local - min_depth_local_local))); + (depth - min_depth_local_local) * + ((bottom_temperature_local - top_temperature_local) / (max_depth_local_local - min_depth_local_local))); return apply_operation(operation,temperature_,new_temperature); } diff --git a/contrib/world_builder/source/world_builder/features/plume_models/grains/random_uniform_distribution_deflected.cc b/contrib/world_builder/source/world_builder/features/plume_models/grains/random_uniform_distribution_deflected.cc new file mode 100644 index 00000000000..c1b98b6dbc9 --- /dev/null +++ b/contrib/world_builder/source/world_builder/features/plume_models/grains/random_uniform_distribution_deflected.cc @@ -0,0 +1,282 @@ +/* + Copyright (C) 2018-2024 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +#include "world_builder/features/plume_models/grains/random_uniform_distribution_deflected.h" + +#include "world_builder/nan.h" +#include "world_builder/types/array.h" +#include "world_builder/types/double.h" +#include "world_builder/types/object.h" +#include "world_builder/types/one_of.h" +#include "world_builder/types/unsigned_int.h" +#include "world_builder/types/value_at_points.h" +#include "world_builder/utilities.h" +#include "world_builder/types/bool.h" +#include "world_builder/world.h" + +namespace WorldBuilder +{ + + using namespace Utilities; + + namespace Features + { + namespace PlumeModels + { + namespace Grains + { + RandomUniformDistributionDeflected::RandomUniformDistributionDeflected(WorldBuilder::World *world_) + : + min_depth(NaN::DSNAN), + max_depth(NaN::DSNAN) + + { + this->world = world_; + this->name = "random uniform distribution deflected"; + } + + RandomUniformDistributionDeflected::~RandomUniformDistributionDeflected() + = default; + + void + RandomUniformDistributionDeflected::declare_entries(Parameters &prm, const std::string & /*unused*/) + { + // Document plugin and require entries if needed. + // Add compositions to the required parameters. + prm.declare_entry("", Types::Object({"compositions"}), + "Random uniform distribution grains model. The size of the grains can be independently set " + "to a single value or to a random distribution."); + + // Declare entries of this plugin + prm.declare_entry("min depth", Types::Double(0), + "The depth in meters from which the grains of this feature are present."); + prm.declare_entry("max depth", Types::Double(std::numeric_limits::max()), + "The depth in meters to which the grains of this feature are present."); + + prm.declare_entry("compositions", Types::Array(Types::UnsignedInt(),0), + "A list with the integer labels of the composition which are present there."); + + prm.declare_entry("orientation operation", Types::String("replace", std::vector {"replace", "multiply"}), + "Whether the value should replace any value previously defined at this location (replace) or " + "add the value to the previously define value (add, not implemented). Replacing implies that all values not " + "explicitly defined are set to zero."); + + prm.declare_entry("grain sizes", + Types::Array(Types::Double(1),0), + "A list of the size of all of the grains in each composition. If set to <0, the size will be randomized between 0 and 1."); + + prm.declare_entry("normalize grain sizes", + Types::Array(Types::Bool(true),0), + "A list of whether the sizes of the grains should be normalized or not. If normalized, the total of the grains of a composition will be equal to 1."); + + prm.declare_entry("deflections", + Types::Array(Types::Double(1),0), + "A list of the deflections of all of the grains in each composition between 0 and 1."); + + prm.declare_entry("basis rotation matrices", Types::Array(Types::Array(Types::Array(Types::Double(0),3,3),3,3),0), + "A list with the rotation matrices of the grains which are present there for each compositions."); + + prm.declare_entry("basis Euler angles z-x-z", Types::Array(Types::Array(Types::Double(0),3,3),0), + "A list with the z-x-z Euler angles of the grains which are present there for each compositions."); + + + } + + void + RandomUniformDistributionDeflected::parse_entries(Parameters &prm) + { + min_depth = prm.get("min depth"); + max_depth = prm.get("max depth"); + compositions = prm.get_vector("compositions"); + + const bool set_euler_angles = prm.check_entry("basis Euler angles z-x-z"); + const bool set_rotation_matrices = prm.check_entry("basis rotation matrices"); + + WBAssertThrow(!(set_euler_angles == true && set_rotation_matrices == true), + "Only Euler angles or Rotation matrices may be set, but both are set for " << prm.get_full_json_path()); + + + WBAssertThrow(!(set_euler_angles == false && set_rotation_matrices == false), + "Euler angles or Rotation matrices have to be set, but neither are set for " << prm.get_full_json_path()); + + if (set_euler_angles) + { + std::vector > basis_euler_angles_vector = prm.get_vector >("basis Euler angles z-x-z"); + basis_rotation_matrices.resize(basis_euler_angles_vector.size()); + for (size_t i = 0; i,3> >("basis rotation matrices"); + } + + operation = prm.get("orientation operation"); + grain_sizes = prm.get_vector("grain sizes"); + normalize_grain_sizes = prm.get_vector("normalize grain sizes"); + deflections = prm.get_vector("deflections"); + + + WBAssertThrow(compositions.size() == grain_sizes.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and grain_sizes (" << grain_sizes.size() << ")."); + WBAssertThrow(compositions.size() == normalize_grain_sizes.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and normalize_grain_sizes (" << normalize_grain_sizes.size() << ")."); + WBAssertThrow(compositions.size() == deflections.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and deflections (" << deflections.size() << ")."); + WBAssertThrow(compositions.size() == basis_rotation_matrices.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and rotation_matrices (" << basis_rotation_matrices.size() << ")."); + } + + WorldBuilder::grains + RandomUniformDistributionDeflected::get_grains(const Point<3> & /*position_in_cartesian_coordinates*/, + const Objects::NaturalCoordinate & /*position_in_natural_coordinates*/, + const double depth, + const unsigned int composition_number, + WorldBuilder::grains grains_, + const double /*feature_min_depth*/, + const double /*feature_max_depth*/) const + { + WorldBuilder::grains grains_local = grains_; + if (depth <= max_depth && depth >= min_depth) + { + for (unsigned int i =0; i < compositions.size(); ++i) + { + if (compositions[i] == composition_number) + { + std::uniform_real_distribution<> dist(0.0,1.0); + for (auto &&it_rotation_matrices : grains_local.rotation_matrices) + { + // set a uniform random a_cosine_matrix per grain + // This function is based on an article in Graphic Gems III, written by James Arvo, Cornell University (p 116-120). + // The original code can be found on http://www.realtimerendering.com/resources/GraphicsGems/gemsiii/rand_rotation.c + // and is licenend accourding to this website with the following licence: + // + // "The Graphics Gems code is copyright-protected. In other words, you cannot claim the text of the code as your own and + // resell it. Using the code is permitted in any program, product, or library, non-commercial or commercial. Giving credit + // is not required, though is a nice gesture. The code comes as-is, and if there are any flaws or problems with any Gems + // code, nobody involved with Gems - authors, editors, publishers, or webmasters - are to be held responsible. Basically, + // don't be a jerk, and remember that anything free comes with no guarantee."" + // + // The book saids in the preface the following: "As in the first two volumes, all of the C and C++ code in this book is in + // the public domain, and is yours to study, modify, and use." + + // first generate three random numbers between 0 and 1 and multiply them with 2 PI or 2 for z. Note that these are not the same as phi_1, theta and phi_2. + const double one = dist(world->get_random_number_engine()); + const double two = dist(world->get_random_number_engine()); + const double three = dist(world->get_random_number_engine()); + + // the distribution is restricted by the deflection (between 0 and 1) + const double theta = 2.0 * Consts::PI * one * deflections[i]; // Rotation about the pole (Z) + const double phi = 2.0 * Consts::PI * two; // For direction of pole deflection. + const double z = 2.0 * three * deflections[i]; //For magnitude of pole deflection. + + // Compute a vector V used for distributing points over the sphere + // via the reflection I - V Transpose(V). This formulation of V + // will guarantee that if x[1] and x[2] are uniformly distributed, + // the reflected points will be uniform on the sphere. Note that V + // has length sqrt(2) to eliminate the 2 in the Householder matrix. + + const double r = std::sqrt( z ); + const double Vx = std::sin( phi ) * r; + const double Vy = std::cos( phi ) * r; + const double Vz = std::sqrt( 2.F - z ); + + // Compute the row vector S = Transpose(V) * R, where R is a simple + // rotation by theta about the z-axis. No need to compute Sz since + // it's just Vz. + + const double st = std::sin( theta ); + const double ct = std::cos( theta ); + const double Sx = Vx * ct - Vy * st; + const double Sy = Vx * st + Vy * ct; + + // Construct the rotation matrix ( V Transpose(V) - I ) R, which + // is equivalent to V S - R. + + std::array,3> rotation_matrices; + rotation_matrices[0][0] = (Vx * Sx - ct); + rotation_matrices[0][1] = (Vx * Sy - st); + rotation_matrices[0][2] = Vx * Vz; + + rotation_matrices[1][0] = (Vy * Sx + st); + rotation_matrices[1][1] = (Vy * Sy - ct); + rotation_matrices[1][2] = Vy * Vz; + + rotation_matrices[2][0] = Vz * Sx; + rotation_matrices[2][1] = Vz * Sy; + rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + + // Rotate the basis rotation matrix with the random uniform distribution rotation matrix + // First get the transpose of the rotation matrix + std::array, 3> rot_T= rotation_matrices; + rot_T[0][1] = rotation_matrices[1][0]; + rot_T[1][0] = rotation_matrices[0][1]; + rot_T[1][2] = rotation_matrices[2][1]; + rot_T[2][1] = rotation_matrices[1][2]; + rot_T[0][2] = rotation_matrices[2][0]; + rot_T[2][0] = rotation_matrices[0][2]; + + // Then U' = R * U * R^T + std::array,3> result1 = multiply_3x3_matrices(rotation_matrices, basis_rotation_matrices[i]); + + it_rotation_matrices = result1; + } + + double total_size = 0; + for (auto &&it_sizes : grains_local.sizes) + { + it_sizes = grain_sizes[i] < 0 ? dist(world->get_random_number_engine()) : grain_sizes[i]; + total_size += it_sizes; + } + + if (normalize_grain_sizes[i]) + { + const double one_over_total_size = 1/total_size; + // std::transform is a c++17 feature, while current GWB is c++14 + // update this after switching to c+=17 + // std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), + // [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // Apply the transformation using a loop + for (auto &&size : grains_local.sizes) + { + size = size*one_over_total_size; + } + } + + + return grains_local; + } + } + } + return grains_local; + } + WB_REGISTER_FEATURE_PLUME_GRAINS_MODEL(RandomUniformDistributionDeflected, random uniform distribution deflected) + } // namespace Grains + } // namespace PlumeModels + } // namespace Features +} // namespace WorldBuilder + + diff --git a/contrib/world_builder/source/world_builder/features/subducting_plate.cc b/contrib/world_builder/source/world_builder/features/subducting_plate.cc index 8d5faa53360..7b5cec01669 100644 --- a/contrib/world_builder/source/world_builder/features/subducting_plate.cc +++ b/contrib/world_builder/source/world_builder/features/subducting_plate.cc @@ -685,7 +685,7 @@ namespace WorldBuilder grains.sizes[i] = grains_current_section.sizes[i] + section_fraction * (grains_next_section.sizes[i] - grains_current_section.sizes[i]); } - // average two rotations matrices throu quaternions. + // average two rotations matrices through quaternions. for (size_t i = 0; i < grains_current_section.rotation_matrices.size(); i++) { const glm::quaternion::quat quat_current = glm::quaternion::quat_cast(grains_current_section.rotation_matrices[i]); diff --git a/contrib/world_builder/source/world_builder/features/subducting_plate_models/composition/tian2019_water_content.cc b/contrib/world_builder/source/world_builder/features/subducting_plate_models/composition/tian2019_water_content.cc new file mode 100644 index 00000000000..0835b4c4c58 --- /dev/null +++ b/contrib/world_builder/source/world_builder/features/subducting_plate_models/composition/tian2019_water_content.cc @@ -0,0 +1,198 @@ +/* + Copyright (C) 2018 - 2024 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . +*/ + +#include "world_builder/features/subducting_plate_models/composition/tian2019_water_content.h" + +#include "world_builder/nan.h" +#include "world_builder/types/array.h" +#include "world_builder/types/double.h" +#include "world_builder/types/object.h" +#include "world_builder/types/unsigned_int.h" +#include "world_builder/utilities.h" +#include "world_builder/world.h" + + +namespace WorldBuilder +{ + + using namespace Utilities; + + namespace Features + { + namespace SubductingPlateModels + { + namespace Composition + { + TianWaterContent::TianWaterContent(WorldBuilder::World *world_) + : + min_depth(NaN::DSNAN), + max_depth(NaN::DSNAN), + density(NaN::DSNAN) + { + this->world = world_; + this->name = "water content"; + } + + TianWaterContent::~TianWaterContent() + = default; + + void + TianWaterContent::declare_entries(Parameters &prm, const std::string & /*unused*/) + { + // Document plugin and require entries if needed. + // Add compositions to the required parameters. + prm.declare_entry("", Types::Object({"compositions"}), + "TianWaterContent compositional model. Sets bound water content as a compositional field. The returned " + "water content is based on the the temperature and pressure at a point within the world. Currently, " + "the bound water content can be determined for four different lithologies: 'sediment', mid-ocean " + "ridge basalt ('MORB'), 'gabbro', and 'peridotite', using parameterized phase diagrams from Tian et al., 2019 " + "(https://doi.org/10.1029/2019GC008488). The pressure is lithostatic, calculated with a constant user defined " + "density, and is limited by a user defined cutoff pressure (in GPa) for each lithology. This is required because the " + "parameterization breaks down at large pressures. Recommended cutoff pressures are 10 GPa is used for 'peridotite', " + "26 GPa is used for 'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'."); + + // Declare entries of this plugin + prm.declare_entry("min distance slab top", Types::Double(0), + "todo The depth in meters from which the composition of this feature is present."); + prm.declare_entry("max distance slab top", Types::Double(std::numeric_limits::max()), + "todo The depth in meters to which the composition of this feature is present."); + prm.declare_entry("density", Types::Double(3000.0), + "The reference density used for determining the lithostatic pressure for calculating " + "the bound water content."); + prm.declare_entry("compositions", Types::Array(Types::UnsignedInt(),0), + "A list with the labels of the composition which are present there."); + prm.declare_entry("lithology", Types::String("peridotite"), + "The lithology used to determine which polynomials to use for calculating the water content. Valid options are: " + "'sediment', 'MORB', 'gabbro', and 'peridotite'."); + prm.declare_entry("initial water content", Types::Double(5), + "The value of the initial water content (in wt%) for the lithology at the trench. This represents the " + "max value applied to this lithology."); + prm.declare_entry("cutoff pressure", Types::Double(10), + "The upper bound for the pressure, in GPa, for the specified lithology in the Tian parameterization. This is necessary because " + "the parameterization breaks down for high pressures. It is recommended that 10 GPa is used for 'peridotite', 26 GPa is used for " + "'gabbro', 16 GPa is used for 'MORB', and 1 GPa is used for 'sediment'."); + prm.declare_entry("operation", Types::String("replace", std::vector {"replace", "replace defined only", "add", "subtract"}), + "Whether the value should replace any value previously defined at this location (replace) or " + "add the value to the previously define value. Replacing implies that all compositions not " + "explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option."); + + } + + void + TianWaterContent::parse_entries(Parameters &prm) + { + min_depth = prm.get("min distance slab top"); + max_depth = prm.get("max distance slab top"); + density = prm.get("density"); + compositions = prm.get_vector("compositions"); + max_water_content = prm.get("initial water content"); + cutoff_pressure = prm.get("cutoff pressure"); + operation = string_operations_to_enum(prm.get("operation")); + std::string lithology_string = prm.get("lithology"); + + if (lithology_string=="peridotite") + lithology_type = peridotite; + else if (lithology_string=="gabbro") + lithology_type = gabbro; + else if (lithology_string=="MORB") + lithology_type = MORB; + else if (lithology_string=="sediment") + lithology_type = sediment; + } + + + double + TianWaterContent::calculate_water_content(double pressure, + double temperature) const + { + double ln_LR_value = 0; + double ln_c_sat_value = 0; + double Td_value = 0; + std::vector LR_polynomial_coeffs; + std::vector c_sat_polynomial_coeffs; + std::vector Td_polynomial_coeffs; + + // Calculate the c_sat value from Tian et al., 2019 + if (lithology_type == sediment) + { + for (unsigned int c_sat_index = 0; c_sat_index < c_sat_poly[lithology_type].size(); ++c_sat_index) + ln_c_sat_value += c_sat_poly[lithology_type][c_sat_index] * (std::pow(std::log10(pressure), c_sat_poly[lithology_type].size() - 1 - c_sat_index)); + } + else + { + for (unsigned int c_sat_index = 0; c_sat_index < c_sat_poly[lithology_type].size(); ++c_sat_index) + ln_c_sat_value += c_sat_poly[lithology_type][c_sat_index] * (std::pow(pressure, c_sat_poly[lithology_type].size() - 1 - c_sat_index)); + } + + // Calculate the LR value from Tian et al., 2019 + for (unsigned int LR_coeff_index = 0; LR_coeff_index < LR_poly[lithology_type].size(); ++LR_coeff_index) + ln_LR_value += LR_poly[lithology_type][LR_coeff_index] * (std::pow(1/pressure, LR_poly[lithology_type].size() - 1 - LR_coeff_index)); + + // Calculate the Td value from Tian et al., 2019 + for (unsigned int Td_coeff_index = 0; Td_coeff_index < Td_poly[lithology_type].size(); ++Td_coeff_index) + Td_value += Td_poly[lithology_type][Td_coeff_index] * (std::pow(pressure, Td_poly[lithology_type].size() - 1 - Td_coeff_index)); + + double partition_coeff = std::exp(ln_c_sat_value) * std::exp(std::exp(ln_LR_value) * (1/temperature - 1/Td_value)); + return partition_coeff; + } + + + double + TianWaterContent::get_composition(const Point<3> &position_in_cartesian_coordinates, + const double depth, + const unsigned int composition_number, + double composition, + const double /*feature_min_depth*/, + const double /*feature_max_depth*/, + const WorldBuilder::Utilities::PointDistanceFromCurvedPlanes &distance_from_plane, + const AdditionalParameters & /*additional_parameters*/) const + { + if (distance_from_plane.distance_from_plane <= max_depth && distance_from_plane.distance_from_plane >= min_depth) + { + // The polynomials break down for pressures less than 0.5 GPa, and for pressures above a user defined cutoff pressure + // ensure that the pressure is never below 0.5 GPa + const double lithostatic_pressure = std::max(0.5, std::min(density * 9.81 * depth / 1e9, cutoff_pressure)); // GPa + const double slab_temperature = world->properties(position_in_cartesian_coordinates.get_array(), depth, {{{1,0,0}}})[0]; + double partition_coefficient = calculate_water_content(lithostatic_pressure, + slab_temperature); + + partition_coefficient = std::min(max_water_content, partition_coefficient); + + for (unsigned int i = 0; i < compositions.size(); ++i) + { + if (compositions[i] == composition_number) + { + return apply_operation(operation,composition, partition_coefficient); + } + } + + if (operation == Operations::REPLACE) + { + return 0.0; + } + } + return composition; + } + WB_REGISTER_FEATURE_SUBDUCTING_PLATE_COMPOSITION_MODEL(TianWaterContent, tian water content) + } // namespace Composition + } // namespace SubductingPlateModels + } // namespace Features +} // namespace WorldBuilder + + diff --git a/contrib/world_builder/source/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.cc b/contrib/world_builder/source/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.cc index bf9ac3a3e05..dfbf267af36 100644 --- a/contrib/world_builder/source/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.cc +++ b/contrib/world_builder/source/world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.cc @@ -19,8 +19,6 @@ #include "world_builder/features/subducting_plate_models/grains/random_uniform_distribution_deflected.h" -#include - #include "world_builder/nan.h" #include "world_builder/types/array.h" #include "world_builder/types/bool.h" @@ -88,6 +86,12 @@ namespace WorldBuilder Types::Array(Types::Double(1),0), "A list of the deflections of all of the grains in each composition between 0 and 1."); + prm.declare_entry("basis rotation matrices", Types::Array(Types::Array(Types::Array(Types::Double(0),3,3),3,3),0), + "A list with the rotation matrices of the grains which are present there for each compositions."); + + prm.declare_entry("basis Euler angles z-x-z", Types::Array(Types::Array(Types::Double(0),3,3),0), + "A list with the z-x-z Euler angles of the grains which are present there for each compositions."); + } @@ -99,6 +103,31 @@ namespace WorldBuilder max_depth = prm.get("max distance slab top"); compositions = prm.get_vector("compositions"); + const bool set_euler_angles = prm.check_entry("basis Euler angles z-x-z"); + const bool set_rotation_matrices = prm.check_entry("basis rotation matrices"); + + WBAssertThrow(!(set_euler_angles == true && set_rotation_matrices == true), + "Only Euler angles or Rotation matrices may be set, but both are set for " << prm.get_full_json_path()); + + + WBAssertThrow(!(set_euler_angles == false && set_rotation_matrices == false), + "Euler angles or Rotation matrices have to be set, but neither are set for " << prm.get_full_json_path()); + + if (set_euler_angles) + { + std::vector > basis_euler_angles_vector = prm.get_vector >("basis Euler angles z-x-z"); + basis_rotation_matrices.resize(basis_euler_angles_vector.size()); + for (size_t i = 0; i,3> >("basis rotation matrices"); + } + operation = prm.get("orientation operation"); grain_sizes = prm.get_vector("grain sizes"); normalize_grain_sizes = prm.get_vector("normalize grain sizes"); @@ -113,9 +142,11 @@ namespace WorldBuilder WBAssertThrow(compositions.size() == deflections.size(), "There are not the same amount of compositions (" << compositions.size() << ") and deflections (" << deflections.size() << ")."); + WBAssertThrow(compositions.size() == basis_rotation_matrices.size(), + "There are not the same amount of compositions (" << compositions.size() + << ") and rotation_matrices (" << basis_rotation_matrices.size() << ")."); } - WorldBuilder::grains RandomUniformDistributionDeflected::get_grains(const Point<3> & /*position_in_cartesian_coordinates*/, const double /*depth*/, @@ -182,17 +213,33 @@ namespace WorldBuilder // Construct the rotation matrix ( V Transpose(V) - I ) R, which // is equivalent to V S - R. - it_rotation_matrices[0][0] = Vx * Sx - ct; - it_rotation_matrices[0][1] = Vx * Sy - st; - it_rotation_matrices[0][2] = Vx * Vz; - - it_rotation_matrices[1][0] = Vy * Sx + st; - it_rotation_matrices[1][1] = Vy * Sy - ct; - it_rotation_matrices[1][2] = Vy * Vz; - - it_rotation_matrices[2][0] = Vz * Sx; - it_rotation_matrices[2][1] = Vz * Sy; - it_rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + std::array,3> rotation_matrices; + rotation_matrices[0][0] = (Vx * Sx - ct); + rotation_matrices[0][1] = (Vx * Sy - st); + rotation_matrices[0][2] = Vx * Vz; + + rotation_matrices[1][0] = (Vy * Sx + st); + rotation_matrices[1][1] = (Vy * Sy - ct); + rotation_matrices[1][2] = Vy * Vz; + + rotation_matrices[2][0] = Vz * Sx; + rotation_matrices[2][1] = Vz * Sy; + rotation_matrices[2][2] = 1.0 - z; // This equals Vz * Vz - 1.0 + + // Rotate the basis rotation matrix with the random uniform distribution rotation matrix + // First get the transpose of the rotation matrix + std::array, 3> rot_T= rotation_matrices; + rot_T[0][1] = rotation_matrices[1][0]; + rot_T[1][0] = rotation_matrices[0][1]; + rot_T[1][2] = rotation_matrices[2][1]; + rot_T[2][1] = rotation_matrices[1][2]; + rot_T[0][2] = rotation_matrices[2][0]; + rot_T[2][0] = rotation_matrices[0][2]; + + // Then U' = R * U * R^T + std::array,3> result1 = multiply_3x3_matrices(rotation_matrices, basis_rotation_matrices[i]); + + it_rotation_matrices = result1; } double total_size = 0; @@ -205,8 +252,15 @@ namespace WorldBuilder if (normalize_grain_sizes[i]) { const double one_over_total_size = 1/total_size; - std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), - [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // std::transform is a c++17 feature, while current GWB is c++14 + // update this after switching to c+=17 + // std::transform(grains_local.sizes.begin(), grains_local.sizes.end(), grains_local.sizes.begin(), + // [one_over_total_size](double sizes) -> double { return sizes *one_over_total_size; }); + // Apply the transformation using a loop + for (auto &&size : grains_local.sizes) + { + size = size*one_over_total_size; + } } return grains_local; diff --git a/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/mass_conserving.cc b/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/mass_conserving.cc index f2ad576c5c2..647d74d0c42 100644 --- a/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/mass_conserving.cc +++ b/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/mass_conserving.cc @@ -74,8 +74,8 @@ namespace WorldBuilder MassConserving::declare_entries(Parameters &prm, const std::string & /*unused*/) { // Document plugin and require entries if needed. - // Add `plate velocity` to the required parameters. - prm.declare_entry("", Types::Object({"plate velocity"}), + // Add `spreading velocity` to the required parameters. + prm.declare_entry("", Types::Object({"spreading velocity", "subducting velocity"}), "Mass conserving temperature model. The temperature " "model uses the heat content (proportional to to thermal mass anomaly) to " "define a smooth temperature profile that conserves mass along the slab length. " @@ -119,12 +119,11 @@ namespace WorldBuilder prm.declare_entry("density", Types::Double(3300), "The reference density of the subducting plate in $kg/m^3$"); - prm.declare_entry("plate velocity", Types::OneOf(Types::Double(0.05),Types::Array(Types::ValueAtPoints(0.05, std::numeric_limits::max()))), - "The velocity with which the plate subducts in meters per year. Default is 5 cm/yr"); + prm.declare_entry("spreading velocity", Types::OneOf(Types::Double(0.05),Types::Array(Types::ValueAtPoints(0.05, std::numeric_limits::max()))), + "The velocity with which the ridge spreads and create the plate in meters per year. Default is 5 cm/yr"); - prm.declare_entry("subducting velocity", Types::OneOf(Types::Double(-1), Types::Array(Types::Array(Types::Double(-1), 1), 1)), - "The velocity with which the ridge is moving through time, and how long the ridge " - "has been moving. First value is the velocity, second is the time. Default is [0 cm/yr, 0 yr]"); + prm.declare_entry("subducting velocity", Types::OneOf(Types::Double(0.05), Types::Array(Types::Array(Types::Double(0.05), 1), 1)), + "The velocity with which the slab is subducting through time. Default is 5 cm/yr"); prm.declare_entry("coupling depth", Types::Double(100e3), "The depth at which the slab surface first comes in contact with the hot mantle wedge " @@ -194,7 +193,7 @@ namespace WorldBuilder density = prm.get("density"); thermal_conductivity = prm.get("thermal conductivity"); - ridge_spreading_velocities = prm.get_value_at_array("plate velocity"); + ridge_spreading_velocities = prm.get_value_at_array("spreading velocity"); subducting_velocities = prm.get_vector_or_double("subducting velocity"); mantle_coupling_depth = prm.get("coupling depth"); @@ -290,6 +289,8 @@ namespace WorldBuilder const AdditionalParameters &additional_parameters) const { + const double seconds_in_year = 60.0 * 60.0 * 24.0 * 365.25; // sec/y + const double distance_from_plane = distance_from_planes.distance_from_plane; if (distance_from_plane <= max_depth && distance_from_plane >= min_depth) @@ -318,13 +319,9 @@ namespace WorldBuilder std::vector slab_ages = calculate_effective_trench_and_plate_ages(ridge_parameters, distance_along_plane); - const double seconds_in_year = 60.0 * 60.0 * 24.0 * 365.25; // sec/y const double spreading_velocity = ridge_parameters[0] * seconds_in_year; // m/yr double subducting_velocity = ridge_parameters[2] * seconds_in_year; // m/yr - if (subducting_velocity <= 0) - subducting_velocity = spreading_velocity; - const double age_at_trench = slab_ages[0]; const double plate_age_sec = age_at_trench * seconds_in_year; // y --> seconds // 1. Determine initial heat content of the slab based on age of plate at trench @@ -359,7 +356,7 @@ namespace WorldBuilder } // Plate age increases with distance along the slab in the mantle - double effective_plate_age = slab_ages[1]; + double effective_plate_age_sec = slab_ages[1] * seconds_in_year; // Need adiabatic temperature at position of grid point const double background_temperature = adiabatic_heating ? potential_mantle_temperature * @@ -373,13 +370,13 @@ namespace WorldBuilder const double adiabatic_gradient = adiabatic_heating ? background_temperature - potential_mantle_temperature : 0; - // 2. Get Tmin and offset as a function of depth: these depend on plate velocity and plate age_at_trench. + // 2. Get Tmin and offset as a function of depth: these depend on spreading velocity and plate age_at_trench. // shallow-dipping slabs will take longer to reach the same depth - this leads to larger effective age at a given depth // causing these slabs to be broader than steeper dipping slabs // These equations are empirical based on fitting the temperature profiles from dynamic subduction models. // and published kinematic models for specific subduction zones. - // increases Tmin slope for slower relative to slope for maximum plate velocity + // increases Tmin slope for slower relative to slope for maximum spreading velocity // will be between 0.1 (fast) and 0.35 (slow) const double max_plate_vel = 20/cm2m; // e.g., 20 cm/yr -> 0.2 m/yr const double vsubfact = std::min( std::max( 0.35 + ((0.1-0.35) / max_plate_vel) * subducting_velocity, 0.1), 0.35); @@ -453,7 +450,7 @@ namespace WorldBuilder // Also taper the initial heat content and effective plate age initial_heat_content = initial_heat_content * std::erfc(1.5*taper_con*theta); - effective_plate_age = effective_plate_age * std::erfc(1.5*taper_con*theta); + effective_plate_age_sec = effective_plate_age_sec * std::erfc(1.5*taper_con*theta); } else @@ -496,14 +493,14 @@ namespace WorldBuilder exp((subducting_velocity_UI * max_depth / 2.0 / thermal_diffusivity - std::sqrt(subducting_velocity_UI * subducting_velocity_UI * max_depth * max_depth / 4.0 / thermal_diffusivity / thermal_diffusivity + double(2*i + 1) * double(2*i + 1) * Consts::PI * Consts::PI)) * - subducting_velocity_UI * effective_plate_age / max_depth); + subducting_velocity_UI * effective_plate_age_sec / max_depth); bottom_heat_content -= temp_heat_content; } } else { bottom_heat_content = 2 * thermal_conductivity * (min_temperature - potential_mantle_temperature) * - std::sqrt(effective_plate_age /(thermal_diffusivity * Consts::PI)); + std::sqrt(effective_plate_age_sec /(thermal_diffusivity * Consts::PI)); } // 4. The difference in heat content goes into the temperature above where Tmin occurs. @@ -534,7 +531,7 @@ namespace WorldBuilder for (size_t i = 0; i < 2 * spline_n_points + 1; ++i) { const double i_adjusted_distance = (static_cast(i) * interval_spline_distance - 1.0) * max_depth; - const double i_temperature = get_temperature_analytic(top_heat_content, min_temperature, background_temperature, temperature_, spreading_velocity, effective_plate_age, i_adjusted_distance); + const double i_temperature = get_temperature_analytic(top_heat_content, min_temperature, background_temperature, temperature_, spreading_velocity, effective_plate_age_sec, i_adjusted_distance); i_temperatures[i] = i_temperature; } @@ -546,7 +543,7 @@ namespace WorldBuilder else { // Call the analytic solution to compute the temperature - temperature = get_temperature_analytic(top_heat_content, min_temperature, background_temperature, temperature_, spreading_velocity, effective_plate_age, adjusted_distance); + temperature = get_temperature_analytic(top_heat_content, min_temperature, background_temperature, temperature_, spreading_velocity, effective_plate_age_sec, adjusted_distance); } } else @@ -570,7 +567,7 @@ namespace WorldBuilder const double background_temperature, const double temperature_, const double subducting_velocity, - const double effective_plate_age, + const double effective_plate_age_sec, const double adjusted_distance) const { const double seconds_in_year = 60.0 * 60.0 * 24.0 * 365.25; // sec/y @@ -614,7 +611,7 @@ namespace WorldBuilder std::exp((((subducting_velocity_UI * max_depth)/(2 * thermal_diffusivity)) - std::sqrt(((subducting_velocity_UI*subducting_velocity_UI*max_depth*max_depth) / (4*thermal_diffusivity*thermal_diffusivity)) + double(i) * double(i) * Consts::PI * Consts::PI)) * - ((subducting_velocity_UI * effective_plate_age) / max_depth))); + ((subducting_velocity_UI * effective_plate_age_sec) / max_depth))); } } else @@ -625,7 +622,7 @@ namespace WorldBuilder else { temperature = background_temperature + (min_temperature - background_temperature) * - std::erfc(adjusted_distance / (2 * std::sqrt(thermal_diffusivity * effective_plate_age))); + std::erfc(adjusted_distance / (2 * std::sqrt(thermal_diffusivity * effective_plate_age_sec))); } } diff --git a/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/plate_model.cc b/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/plate_model.cc index 368adcdc09d..2b3a942cf7a 100644 --- a/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/plate_model.cc +++ b/contrib/world_builder/source/world_builder/features/subducting_plate_models/temperature/plate_model.cc @@ -170,7 +170,7 @@ namespace WorldBuilder distance_along_plane/thickness_local); // the paper uses `(x_scaled * sin(average_angle) - z_scaled * cos(average_angle))` to compute the - // depth (execpt that you do not use average angles since they only have on angle). On recomputing + // depth (except that you do not use average angles since they only have on angle). On recomputing // their result it seems to me (Menno) that it should have been `(1-z_scaled)` instead of `z_scaled`. // To avoid this whole problem we just use the depth directly since we have that. // todo: get the local thickniss out of H, that prevents an other division. diff --git a/contrib/world_builder/source/world_builder/utilities.cc b/contrib/world_builder/source/world_builder/utilities.cc index 90ecdf099fe..135427a10b2 100644 --- a/contrib/world_builder/source/world_builder/utilities.cc +++ b/contrib/world_builder/source/world_builder/utilities.cc @@ -621,9 +621,9 @@ namespace WorldBuilder if (!bool_cartesian) { - const double normal = std::fabs(point_list[i_section_min_distance+static_cast((std::round(fraction_CPL_P1P2)))][0]-check_point_surface_2d[0]); - const double plus = std::fabs(point_list[i_section_min_distance+static_cast((std::round(fraction_CPL_P1P2)))][0]-(check_point_surface_2d[0]+2*Consts::PI)); - const double min = std::fabs(point_list[i_section_min_distance+static_cast((std::round(fraction_CPL_P1P2)))][0]-(check_point_surface_2d[0]-2*Consts::PI)); + const double normal = std::fabs(point_list[i_section_min_distance+static_cast(std::round(fraction_CPL_P1P2))][0]-check_point_surface_2d[0]); + const double plus = std::fabs(point_list[i_section_min_distance+static_cast(std::round(fraction_CPL_P1P2))][0]-(check_point_surface_2d[0]+2*Consts::PI)); + const double min = std::fabs(point_list[i_section_min_distance+static_cast(std::round(fraction_CPL_P1P2))][0]-(check_point_surface_2d[0]-2*Consts::PI)); // find out whether the check point, checkpoint + 2pi or check point -2 pi is closest to the point list. if (plus < normal) @@ -1485,24 +1485,45 @@ namespace WorldBuilder WBAssert(ridge_parameters.size() == 4, "Internal error: ridge_parameters have the wrong size: " << ridge_parameters.size() << " instead of 4."); const double seconds_in_year = 60.0 * 60.0 * 24.0 * 365.25; // sec/y const double spreading_velocity = ridge_parameters[0] * seconds_in_year; // m/yr - double subducting_velocity = ridge_parameters[2] * seconds_in_year; // m/yr + const double distance_ridge = ridge_parameters[1]; + const double subducting_velocity = ridge_parameters[2] * seconds_in_year; // m/yr - if (subducting_velocity <= 0) - subducting_velocity = spreading_velocity; - - const double age_at_trench = ridge_parameters[1] / spreading_velocity; // m/(m/y) = yr - const double plate_age_sec = age_at_trench * seconds_in_year; // y --> seconds + WBAssertThrow(subducting_velocity >= 0, "The subducting velocity is less than 0. " + "Subducting velocity: " << subducting_velocity); // Plate age increases with distance along the slab in the mantle - double effective_plate_age = plate_age_sec + (distance_along_plane / subducting_velocity) * seconds_in_year; // m/(m/y) = y(seconds_in_year) - WBAssertThrow(effective_plate_age >= 0, "The age of the subducting plate is less than or equal to 0. " - "Effective plate age: " << effective_plate_age); + double effective_plate_age = (distance_ridge + distance_along_plane) / spreading_velocity; // m/(m/y) = yr + + // Age of trench when the query point was at the trench + const double age_at_trench = effective_plate_age - distance_along_plane / subducting_velocity; // m/(m/y) = yr + WBAssertThrow(age_at_trench >= 0, "The age of trench at subducting initiation is less than 0. " + "Age at trench: " << age_at_trench); + std::vector result; result.push_back(age_at_trench); result.push_back(effective_plate_age); return result; } + + std::array,3> + multiply_3x3_matrices(const std::array,3> mat1, const std::array,3> mat2) + { + std::array,3> result; + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + result[i][j] = 0; + for (size_t k = 0; k < 3; k++) + { + result[i][j] += mat1[i][k] * mat2[k][j]; + } + } + } + + return result; + } } // namespace Utilities } // namespace WorldBuilder diff --git a/contrib/world_builder/source/world_builder/world.cc b/contrib/world_builder/source/world_builder/world.cc index 6871f29ea9c..f182edd1d44 100644 --- a/contrib/world_builder/source/world_builder/world.cc +++ b/contrib/world_builder/source/world_builder/world.cc @@ -163,12 +163,8 @@ namespace WorldBuilder * version number of the program. */ - WBAssertThrow((Version::MAJOR == "0" - && prm.get("version") == Version::MAJOR + "." + Version::MINOR) - || (Version::MAJOR != "0" - && prm.get("version") == Version::MAJOR), - "The major and minor version combination (for major version 0) or the major " - "version (for major versions after 0) for which is input file was written " + WBAssertThrow((prm.get("version") == Version::MAJOR + "." + Version::MINOR), + "The major and minor version combination for which is input file was written " "is not the same as the version of the World Builder you are running. This means " "That there may have been incompatible changes made between the versions. \n\n" "Verify those changes and whether they affect your model. If this is not " diff --git a/contrib/world_builder/tests/data/continental_plate.wb b/contrib/world_builder/tests/data/continental_plate.wb index c7e0955322d..3d519acda2e 100644 --- a/contrib/world_builder/tests/data/continental_plate.wb +++ b/contrib/world_builder/tests/data/continental_plate.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/fault_constant_angles_cartesian.wb b/contrib/world_builder/tests/data/fault_constant_angles_cartesian.wb index 275bfd549cb..8654738b1a1 100644 --- a/contrib/world_builder/tests/data/fault_constant_angles_cartesian.wb +++ b/contrib/world_builder/tests/data/fault_constant_angles_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/fault_constant_angles_cartesian_2.wb b/contrib/world_builder/tests/data/fault_constant_angles_cartesian_2.wb index 04b1f4a8eec..8875bbc62c7 100644 --- a/contrib/world_builder/tests/data/fault_constant_angles_cartesian_2.wb +++ b/contrib/world_builder/tests/data/fault_constant_angles_cartesian_2.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[750e3,500e3],[500e3,0e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/fault_constant_angles_cartesian_force_temp.wb b/contrib/world_builder/tests/data/fault_constant_angles_cartesian_force_temp.wb index c991f528a89..caa9af69742 100644 --- a/contrib/world_builder/tests/data/fault_constant_angles_cartesian_force_temp.wb +++ b/contrib/world_builder/tests/data/fault_constant_angles_cartesian_force_temp.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/fault_different_angles_cartesian.wb b/contrib/world_builder/tests/data/fault_different_angles_cartesian.wb index aba4a432d6f..d070d75c7a7 100644 --- a/contrib/world_builder/tests/data/fault_different_angles_cartesian.wb +++ b/contrib/world_builder/tests/data/fault_different_angles_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/interpolation_monotone_spline_cartesian.wb b/contrib/world_builder/tests/data/interpolation_monotone_spline_cartesian.wb index ba5c4659473..69f52a3e73c 100644 --- a/contrib/world_builder/tests/data/interpolation_monotone_spline_cartesian.wb +++ b/contrib/world_builder/tests/data/interpolation_monotone_spline_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/mantle_layer_cartesian.wb b/contrib/world_builder/tests/data/mantle_layer_cartesian.wb index 9313f4610bd..114d7b64f32 100644 --- a/contrib/world_builder/tests/data/mantle_layer_cartesian.wb +++ b/contrib/world_builder/tests/data/mantle_layer_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/oceanic_plate_cartesian.wb b/contrib/world_builder/tests/data/oceanic_plate_cartesian.wb index 388c1c2da0a..dd26b8509b1 100644 --- a/contrib/world_builder/tests/data/oceanic_plate_cartesian.wb +++ b/contrib/world_builder/tests/data/oceanic_plate_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[0,0],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/oceanic_plate_spherical.wb b/contrib/world_builder/tests/data/oceanic_plate_spherical.wb index 9d834ea1a44..b670305846b 100644 --- a/contrib/world_builder/tests/data/oceanic_plate_spherical.wb +++ b/contrib/world_builder/tests/data/oceanic_plate_spherical.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"spherical", "depth method":"starting point"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/data/simple_wb1.json b/contrib/world_builder/tests/data/simple_wb1.json index 921c31a2ab5..64eb634303e 100644 --- a/contrib/world_builder/tests/data/simple_wb1.json +++ b/contrib/world_builder/tests/data/simple_wb1.json @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[100e3,100e3],[400e3,500e3]], diff --git a/contrib/world_builder/tests/data/simple_wb2.json b/contrib/world_builder/tests/data/simple_wb2.json index 8dcdf8b3100..f072d0048a7 100644 --- a/contrib/world_builder/tests/data/simple_wb2.json +++ b/contrib/world_builder/tests/data/simple_wb2.json @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "features": [ diff --git a/contrib/world_builder/tests/data/simple_wb3.json b/contrib/world_builder/tests/data/simple_wb3.json index 8b838770349..361ed39d3ee 100644 --- a/contrib/world_builder/tests/data/simple_wb3.json +++ b/contrib/world_builder/tests/data/simple_wb3.json @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "surface rotation point": ["165e3","166e3"], "surface rotation angle": "0", diff --git a/contrib/world_builder/tests/data/spherical_depth_method_begin_segment.wb b/contrib/world_builder/tests/data/spherical_depth_method_begin_segment.wb index 17d0b51a0c2..b861809450d 100644 --- a/contrib/world_builder/tests/data/spherical_depth_method_begin_segment.wb +++ b/contrib/world_builder/tests/data/spherical_depth_method_begin_segment.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"spherical", "depth method":"begin segment"}, diff --git a/contrib/world_builder/tests/data/spherical_depth_method_starting_point.wb b/contrib/world_builder/tests/data/spherical_depth_method_starting_point.wb index c0b5e66a8eb..8a41bd076af 100644 --- a/contrib/world_builder/tests/data/spherical_depth_method_starting_point.wb +++ b/contrib/world_builder/tests/data/spherical_depth_method_starting_point.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"spherical", "depth method":"starting point"}, diff --git a/contrib/world_builder/tests/data/subducting_plate_composition_smooth_by_tag.wb b/contrib/world_builder/tests/data/subducting_plate_composition_smooth_by_tag.wb index 49ca6082e06..5e4b952b916 100644 --- a/contrib/world_builder/tests/data/subducting_plate_composition_smooth_by_tag.wb +++ b/contrib/world_builder/tests/data/subducting_plate_composition_smooth_by_tag.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/data/subducting_plate_composition_smooth_filtered.wb b/contrib/world_builder/tests/data/subducting_plate_composition_smooth_filtered.wb index 49ca6082e06..5e4b952b916 100644 --- a/contrib/world_builder/tests/data/subducting_plate_composition_smooth_filtered.wb +++ b/contrib/world_builder/tests/data/subducting_plate_composition_smooth_filtered.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/data/subducting_plate_constant_angles_cartesian.wb b/contrib/world_builder/tests/data/subducting_plate_constant_angles_cartesian.wb index 87c4d187d4b..7c5431c558a 100644 --- a/contrib/world_builder/tests/data/subducting_plate_constant_angles_cartesian.wb +++ b/contrib/world_builder/tests/data/subducting_plate_constant_angles_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,100e3]], "coordinate system":{"model":"cartesian"}, diff --git a/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian.wb b/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian.wb index ba2f98aeca6..544127f1947 100644 --- a/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian.wb +++ b/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, diff --git a/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian_2.wb b/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian_2.wb index 820d1cd948b..108b9e354ea 100644 --- a/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian_2.wb +++ b/contrib/world_builder/tests/data/subducting_plate_different_angles_cartesian_2.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, diff --git a/contrib/world_builder/tests/data/subducting_plate_different_angles_spherical.wb b/contrib/world_builder/tests/data/subducting_plate_different_angles_spherical.wb index a3842da8836..d5ce54e6f71 100644 --- a/contrib/world_builder/tests/data/subducting_plate_different_angles_spherical.wb +++ b/contrib/world_builder/tests/data/subducting_plate_different_angles_spherical.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"spherical", "depth method":"starting point"}, diff --git a/contrib/world_builder/tests/gwb-dat/2d_cartesian_plume_points.wb b/contrib/world_builder/tests/gwb-dat/2d_cartesian_plume_points.wb index a3f4e1c455c..50b22a4d4b7 100644 --- a/contrib/world_builder/tests/gwb-dat/2d_cartesian_plume_points.wb +++ b/contrib/world_builder/tests/gwb-dat/2d_cartesian_plume_points.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,0],[100,0]], "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/app_continental_plate_2d.wb b/contrib/world_builder/tests/gwb-dat/app_continental_plate_2d.wb index fbaa65fa045..39aed2add9a 100644 --- a/contrib/world_builder/tests/gwb-dat/app_continental_plate_2d.wb +++ b/contrib/world_builder/tests/gwb-dat/app_continental_plate_2d.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/gwb-dat/app_continental_plate_3d.wb b/contrib/world_builder/tests/gwb-dat/app_continental_plate_3d.wb index 176b1424bed..6763a852bf4 100644 --- a/contrib/world_builder/tests/gwb-dat/app_continental_plate_3d.wb +++ b/contrib/world_builder/tests/gwb-dat/app_continental_plate_3d.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/gwb-dat/app_continental_plate_cartesian.wb b/contrib/world_builder/tests/gwb-dat/app_continental_plate_cartesian.wb index 177c11ae5ff..a02c7593d01 100644 --- a/contrib/world_builder/tests/gwb-dat/app_continental_plate_cartesian.wb +++ b/contrib/world_builder/tests/gwb-dat/app_continental_plate_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_cartesian.wb b/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_cartesian.wb index 2fd3a624086..b9c37f2d9fa 100644 --- a/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_cartesian.wb +++ b/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_cartesian.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[100e3,100e3],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, diff --git a/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_constant_age.wb b/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_constant_age.wb index 9e35d9db3f4..2891cbac691 100644 --- a/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_constant_age.wb +++ b/contrib/world_builder/tests/gwb-dat/app_oceanic_plate_constant_age.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[1000e3,0]],"surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/app_operations_add.wb b/contrib/world_builder/tests/gwb-dat/app_operations_add.wb index bfd65c8bffd..af93a935ccb 100644 --- a/contrib/world_builder/tests/gwb-dat/app_operations_add.wb +++ b/contrib/world_builder/tests/gwb-dat/app_operations_add.wb @@ -1,6 +1,6 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/app_operations_replace.wb b/contrib/world_builder/tests/gwb-dat/app_operations_replace.wb index 383b96eb009..adacbe92ced 100644 --- a/contrib/world_builder/tests/gwb-dat/app_operations_replace.wb +++ b/contrib/world_builder/tests/gwb-dat/app_operations_replace.wb @@ -1,6 +1,6 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/app_operations_subtract.wb b/contrib/world_builder/tests/gwb-dat/app_operations_subtract.wb index 26ad58b8194..0a92aead731 100644 --- a/contrib/world_builder/tests/gwb-dat/app_operations_subtract.wb +++ b/contrib/world_builder/tests/gwb-dat/app_operations_subtract.wb @@ -1,6 +1,6 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/app_spherical_2d.wb b/contrib/world_builder/tests/gwb-dat/app_spherical_2d.wb index de3a0d55522..6e41a36f0d2 100644 --- a/contrib/world_builder/tests/gwb-dat/app_spherical_2d.wb +++ b/contrib/world_builder/tests/gwb-dat/app_spherical_2d.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], diff --git a/contrib/world_builder/tests/gwb-dat/app_spherical_3d.wb b/contrib/world_builder/tests/gwb-dat/app_spherical_3d.wb index de3a0d55522..6e41a36f0d2 100644 --- a/contrib/world_builder/tests/gwb-dat/app_spherical_3d.wb +++ b/contrib/world_builder/tests/gwb-dat/app_spherical_3d.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section": [[100e3,100e3],[400e3,500e3]], diff --git a/contrib/world_builder/tests/gwb-dat/app_wb1.wb b/contrib/world_builder/tests/gwb-dat/app_wb1.wb index ae20fef6e5f..65f85e9b79d 100644 --- a/contrib/world_builder/tests/gwb-dat/app_wb1.wb +++ b/contrib/world_builder/tests/gwb-dat/app_wb1.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/app_wb2.wb b/contrib/world_builder/tests/gwb-dat/app_wb2.wb index b0b3807993c..f7989b3efae 100644 --- a/contrib/world_builder/tests/gwb-dat/app_wb2.wb +++ b/contrib/world_builder/tests/gwb-dat/app_wb2.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "features": [ {"model":"continental plate", "name":"Caribbean", "max depth":250e3, "coordinates":[[-1e3,500e3],[500e3,500e3],[500e3,1000e3],[-1e3,1000e3]], diff --git a/contrib/world_builder/tests/gwb-dat/app_wb3.wb b/contrib/world_builder/tests/gwb-dat/app_wb3.wb index b0b3807993c..f7989b3efae 100644 --- a/contrib/world_builder/tests/gwb-dat/app_wb3.wb +++ b/contrib/world_builder/tests/gwb-dat/app_wb3.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "features": [ {"model":"continental plate", "name":"Caribbean", "max depth":250e3, "coordinates":[[-1e3,500e3],[500e3,500e3],[500e3,1000e3],[-1e3,1000e3]], diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_fault_x_and_y_direction.wb b/contrib/world_builder/tests/gwb-dat/cartesian_fault_x_and_y_direction.wb index 6af3b6efc9c..a1c162ce1c8 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_fault_x_and_y_direction.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_fault_x_and_y_direction.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "interpolation":"continuous monotone spline", "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_multiridge.wb b/contrib/world_builder/tests/gwb-dat/cartesian_multiridge.wb index cf9b98258ea..ab505a98da6 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_multiridge.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_multiridge.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "cross section": [[0,0],[400e3,500e3]], "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, @@ -22,7 +22,7 @@ "segments":[{"length":200e3,"thickness":[300e3],"top truncation":[-100e3],"angle":[90]}, {"length":460e3,"thickness":[300e3],"top truncation":[-300e3],"angle":[90]}], "temperature models":[{"model":"mass conserving", "density":3300, "thermal conductivity":3.3, - "adiabatic heating":true,"plate velocity":0.125, + "adiabatic heating":true,"spreading velocity":0.125, "subducting velocity": 0.125, "ridge coordinates":[[[1500e3,1500e3],[1500e3,2250e3]],[[1000e3,2250e3],[1000e3,3000e3]]], "coupling depth":100e3, "taper distance":100e3, "min distance slab top":-300e3, "max distance slab top":300e3}], diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_no_ridge_drift.wb b/contrib/world_builder/tests/gwb-dat/cartesian_no_ridge_drift.wb index 8bc20540c08..527b7c5b9d9 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_no_ridge_drift.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_no_ridge_drift.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, @@ -72,7 +72,7 @@ "density": 3300, "thermal conductivity": 3.3, "adiabatic heating": true, - "plate velocity": 0.05, + "spreading velocity": 0.05, "subducting velocity": [[0.05, 0.05]], "ridge coordinates": [[[-100e3, 1000.0], [-100e3, -1000.0]]], "coupling depth": 50000.0, diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_slab_linear_adiabat.wb b/contrib/world_builder/tests/gwb-dat/cartesian_slab_linear_adiabat.wb index 8ae69fe295d..c0fc93fbaa7 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_slab_linear_adiabat.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_slab_linear_adiabat.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[1000e3,0]],"surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_slab_mass_conserving.wb b/contrib/world_builder/tests/gwb-dat/cartesian_slab_mass_conserving.wb index c1cc7e56be3..ca0ac263a85 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_slab_mass_conserving.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_slab_mass_conserving.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[0,0],[1000e3,0]],"surface temperature":273, "force surface temperature":true, "potential mantle temperature":1623, "thermal expansion coefficient":3.1e-5, @@ -17,7 +17,8 @@ "temperature models":[ {"model":"mass conserving", "density":3300, "thermal conductivity":3.3,"adiabatic heating":true, - "plate velocity":0.05, + "spreading velocity":0.05, + "subducting velocity":0.05, "ridge coordinates":[[[6500e3,-100e3],[6500e3,100e3]]], "coupling depth":80e3, "forearc cooling factor":20.0, diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_slab_spline_complex.wb b/contrib/world_builder/tests/gwb-dat/cartesian_slab_spline_complex.wb index 98382b3e07a..cc43be20a02 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_slab_spline_complex.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_slab_spline_complex.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,50e3],[50e3,0]], "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_slab_x_and_y_direction.wb b/contrib/world_builder/tests/gwb-dat/cartesian_slab_x_and_y_direction.wb index f87247d5552..c67e518d231 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_slab_x_and_y_direction.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_slab_x_and_y_direction.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "interpolation":"continuous monotone spline", "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/cartesian_young_slab_mass_conserving.wb b/contrib/world_builder/tests/gwb-dat/cartesian_young_slab_mass_conserving.wb index ad3ef4402fe..25f2e402dcb 100644 --- a/contrib/world_builder/tests/gwb-dat/cartesian_young_slab_mass_conserving.wb +++ b/contrib/world_builder/tests/gwb-dat/cartesian_young_slab_mass_conserving.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[0,0],[1000e3,0]],"surface temperature":273, "force surface temperature":true, "potential mantle temperature":1623, "thermal expansion coefficient":3.1e-5, @@ -15,7 +15,7 @@ "temperature models":[ {"model":"mass conserving", "density":3300, "thermal conductivity":3.3,"adiabatic heating":true, - "plate velocity":0.04, + "spreading velocity":0.04, "subducting velocity": 0.04, "ridge coordinates":[[[2900e3,-100e3],[2900e3,100e3]]], "coupling depth":120e3, "forearc cooling factor":10.0, diff --git a/contrib/world_builder/tests/gwb-dat/chunk_slab_mass_conserving.wb b/contrib/world_builder/tests/gwb-dat/chunk_slab_mass_conserving.wb index 880cb3c5344..b41596305d9 100644 --- a/contrib/world_builder/tests/gwb-dat/chunk_slab_mass_conserving.wb +++ b/contrib/world_builder/tests/gwb-dat/chunk_slab_mass_conserving.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment", "radius":6371000.0}, "cross section":[[0,0],[45,0]],"surface temperature":273, "force surface temperature":true, "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, @@ -17,7 +17,7 @@ "temperature models":[ {"model":"mass conserving", "density":3300, "thermal conductivity":3.3,"adiabatic heating":true, - "plate velocity":0.05, + "spreading velocity":0.05, "subducting velocity":0.05, "ridge coordinates": [[[45,-5],[45,5]]], "coupling depth":80e3, "forearc cooling factor":10.0, diff --git a/contrib/world_builder/tests/gwb-dat/continental_min_max_surface.wb b/contrib/world_builder/tests/gwb-dat/continental_min_max_surface.wb index 9d005767abb..6e7cbe00bd5 100644 --- a/contrib/world_builder/tests/gwb-dat/continental_min_max_surface.wb +++ b/contrib/world_builder/tests/gwb-dat/continental_min_max_surface.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "features":[ { diff --git a/contrib/world_builder/tests/gwb-dat/continental_min_max_surface_spherical.wb b/contrib/world_builder/tests/gwb-dat/continental_min_max_surface_spherical.wb index a88363ec185..c0c1da34577 100644 --- a/contrib/world_builder/tests/gwb-dat/continental_min_max_surface_spherical.wb +++ b/contrib/world_builder/tests/gwb-dat/continental_min_max_surface_spherical.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment"}, "features":[ { diff --git a/contrib/world_builder/tests/gwb-dat/depth_method_slab_begin_at_end_segment.wb b/contrib/world_builder/tests/gwb-dat/depth_method_slab_begin_at_end_segment.wb index 159f958d703..0b014475716 100644 --- a/contrib/world_builder/tests/gwb-dat/depth_method_slab_begin_at_end_segment.wb +++ b/contrib/world_builder/tests/gwb-dat/depth_method_slab_begin_at_end_segment.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"begin at end segment"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[45,0]],"surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/fault_complex_spherical.wb b/contrib/world_builder/tests/gwb-dat/fault_complex_spherical.wb index 52614be3491..b175d23414d 100644 --- a/contrib/world_builder/tests/gwb-dat/fault_complex_spherical.wb +++ b/contrib/world_builder/tests/gwb-dat/fault_complex_spherical.wb @@ -1,4 +1,4 @@ -{"version": "0.6", "interpolation": "continuous monotone spline", "coordinate system": {"model": "spherical", "depth method": "starting point"}, "features": [{"model": "fault", "name": "fault_2", "coordinates": [[144.8, 41.0], [143.0, 42.0], [142.2, 43.0], [142.0, 44.0], [142.0, 46.0], [142.2, 48.0], [142.5, 50.0], [142.5, 52.5], [142.5, 55.0], [147.0, 61.9], [146.2, 63.3], [146.1, 63.9], [142.1, 66.2], [140.0, 67.7], [126.2, 70.2], [122.8, 75.5], [126.7, 78.2], [122.0, 80.7], [98.5, 85.0], [43.0, 86.5], [7.5, 84.9], [0.0, 84.1], [-4.5, 83.4], [-6.0, 82.1], [-3.5, 80.9], [-2.0, 80.38], [4.25, 79.6], [3.0, 79.04], [7.0, 78.45], [7.6, 77.9], [7.4, 76.75], [7.2, 76.55], [7.3, 75.6], [8.4, 74.8], [8.4, 74.6], [8.7, 74.35], [8.8, 73.95], [8.25, 73.55], [7.8, 73.4], [6.8, 73.25], [4.4, 72.8], [1.1, 72.2], [-4.699999999999989, 71.4], [-6.5, 70.92], [-12.0, 71.7], [-13.199999999999989, 70.92], [-13.800000000000011, 70.97], [-14.699999999999989, 70.55], [-15.399999999999977, 70.0], [-16.5, 68.9], [-17.30000000000001, 68.98], [-18.100000000000023, 68.4], [-18.5, 67.7], [-19.5, 66.7], [-16.5, 66.4], [-17.0, 66.0], [-17.0, 65.0], [-19.0, 63.7], [-22.5, 64.1], [-24.600000000000023, 63.0], [-27.0, 61.6], [-29.5, 60.0], [-34.0, 57.0], [-35.30000000000001, 55.2], [-35.19999999999999, 53.0], [-35.0, 52.7], [-31.80000000000001, 52.6], [-31.80000000000001, 52.2], [-30.0, 52.1], [-30.0, 51.2], [-29.0, 49.8], [-27.5, 47.8], [-27.399999999999977, 46.5], [-28.0, 45.0], [-28.19999999999999, 44.5], [-28.5, 43.8], [-29.0, 43.3], [-29.30000000000001, 42.9], [-29.30000000000001, 42.7], [-29.30000000000001, 42.3], [-29.30000000000001, 41.7], [-29.69999999999999, 40.0], [-29.75, 39.45]], "dip point": [0, 1], "min depth": -1000.0, "max depth": 300000.0, "segments": [{"length": 300000.0, "thickness": [100000.0], "angle": [90, 90]}], "composition models": [{"model": "uniform", "compositions": [0], "max distance fault center": 50000.0}]}, +{"version": "1.0", "interpolation": "continuous monotone spline", "coordinate system": {"model": "spherical", "depth method": "starting point"}, "features": [{"model": "fault", "name": "fault_2", "coordinates": [[144.8, 41.0], [143.0, 42.0], [142.2, 43.0], [142.0, 44.0], [142.0, 46.0], [142.2, 48.0], [142.5, 50.0], [142.5, 52.5], [142.5, 55.0], [147.0, 61.9], [146.2, 63.3], [146.1, 63.9], [142.1, 66.2], [140.0, 67.7], [126.2, 70.2], [122.8, 75.5], [126.7, 78.2], [122.0, 80.7], [98.5, 85.0], [43.0, 86.5], [7.5, 84.9], [0.0, 84.1], [-4.5, 83.4], [-6.0, 82.1], [-3.5, 80.9], [-2.0, 80.38], [4.25, 79.6], [3.0, 79.04], [7.0, 78.45], [7.6, 77.9], [7.4, 76.75], [7.2, 76.55], [7.3, 75.6], [8.4, 74.8], [8.4, 74.6], [8.7, 74.35], [8.8, 73.95], [8.25, 73.55], [7.8, 73.4], [6.8, 73.25], [4.4, 72.8], [1.1, 72.2], [-4.699999999999989, 71.4], [-6.5, 70.92], [-12.0, 71.7], [-13.199999999999989, 70.92], [-13.800000000000011, 70.97], [-14.699999999999989, 70.55], [-15.399999999999977, 70.0], [-16.5, 68.9], [-17.30000000000001, 68.98], [-18.100000000000023, 68.4], [-18.5, 67.7], [-19.5, 66.7], [-16.5, 66.4], [-17.0, 66.0], [-17.0, 65.0], [-19.0, 63.7], [-22.5, 64.1], [-24.600000000000023, 63.0], [-27.0, 61.6], [-29.5, 60.0], [-34.0, 57.0], [-35.30000000000001, 55.2], [-35.19999999999999, 53.0], [-35.0, 52.7], [-31.80000000000001, 52.6], [-31.80000000000001, 52.2], [-30.0, 52.1], [-30.0, 51.2], [-29.0, 49.8], [-27.5, 47.8], [-27.399999999999977, 46.5], [-28.0, 45.0], [-28.19999999999999, 44.5], [-28.5, 43.8], [-29.0, 43.3], [-29.30000000000001, 42.9], [-29.30000000000001, 42.7], [-29.30000000000001, 42.3], [-29.30000000000001, 41.7], [-29.69999999999999, 40.0], [-29.75, 39.45]], "dip point": [0, 1], "min depth": -1000.0, "max depth": 300000.0, "segments": [{"length": 300000.0, "thickness": [100000.0], "angle": [90, 90]}], "composition models": [{"model": "uniform", "compositions": [0], "max distance fault center": 50000.0}]}, {"model": "fault", "name": "fault_3", "coordinates": [[-29.75, 39.45], [-29.100000000000023, 39.3], [-28.100000000000023, 39.0], [-27.399999999999977, 38.8], [-26.80000000000001, 38.4], [-26.19999999999999, 38.1], [-25.399999999999977, 37.7], [-24.69999999999999, 37.3], [-24.100000000000023, 36.82], [-23.19999999999999, 36.97], [-21.5, 37.07], [-21.30000000000001, 37.1], [-20.899999999999977, 37.14], [-20.5, 37.13], [-20.19999999999999, 37.12], [-18.0, 37.8], [-16.0, 37.8], [-14.0, 37.0], [-10.0, 36.0], [-6.0, 36.0], [1.4, 36.2], [6.8, 36.4], [14.2, 38.5], [15.1, 38.5], [16.6, 38.3], [17.3, 38.9], [18.2, 39.7], [18.9, 40.2], [19.4, 39.9], [19.7, 39.1], [20.0, 38.2], [20.5, 37.3], [20.9, 36.5], [21.6, 35.8], [22.2, 35.2], [23.0, 34.7], [23.7, 34.4], [24.6, 34.2], [25.7, 34.3], [26.7, 34.4], [27.4, 34.5], [28.2, 34.8], [29.2, 35.2], [29.8, 35.7], [30.3, 35.8], [30.9, 35.4], [31.4, 34.9], [32.3, 34.3], [32.9, 34.2], [34.0, 34.6], [34.5, 35.0], [35.2, 35.6], [35.6, 35.9]], "dip point": [0, 1], "min depth": -1000.0, "max depth": 300000.0, "segments": [{"length": 300000.0, "thickness": [100000.0], "angle": [90, 90]}], "composition models": [{"model": "uniform", "compositions": [0], "max distance fault center": 50000.0}]}, {"model": "fault", "name": "fault_4", "coordinates": [[-29.75, 39.45], [-29.94999999999999, 39.45], [-30.30000000000001, 38.4], [-30.649999999999977, 38.3], [-30.80000000000001, 38.0], [-31.149999999999977, 37.9], [-32.0, 37.5], [-33.19999999999999, 36.8], [-33.69999999999999, 36.5], [-34.10000000000002, 36.0], [-35.0, 35.0], [-36.39999999999998, 35.3], [-37.80000000000001, 33.5], [-39.30000000000001, 33.8], [-40.5, 31.9], [-41.69999999999999, 30.9], [-41.89999999999998, 30.5], [-42.0, 30.0], [-42.69999999999999, 30.1], [-43.14999999999998, 28.75], [-43.75, 28.75], [-44.19999999999999, 27.5], [-44.5, 26.9], [-44.80000000000001, 26.2], [-45.0, 25.7], [-45.39999999999998, 25.2], [-46.10000000000002, 24.5], [-46.30000000000001, 24.2], [-46.30000000000001, 23.9], [-46.30000000000001, 23.9], [-44.89999999999998, 23.7], [-45.0, 23.0], [-45.0, 22.8], [-45.5, 22.0], [-45.60000000000002, 21.3], [-45.69999999999999, 20.3]], "dip point": [0, 1], "min depth": -1000.0, "max depth": 300000.0, "segments": [{"length": 300000.0, "thickness": [100000.0], "angle": [90, 90]}], "composition models": [{"model": "uniform", "compositions": [0], "max distance fault center": 50000.0}]}, {"model": "fault", "name": "fault_5", "coordinates": [[-45.7, 20.3], [-59.39999999999998, 16.3], [-59.80000000000001, 16.9], [-60.30000000000001, 17.4], [-61, 18.0]], "dip point": [0, 1], "min depth": -1000.0, "max depth": 300000.0, "segments": [{"length": 300000.0, "thickness": [100000.0], "angle": [90, 90]}], "composition models": [{"model": "uniform", "compositions": [0], "max distance fault center": 50000.0}]}, diff --git a/contrib/world_builder/tests/gwb-dat/geodynamic_world_builder_mar.json b/contrib/world_builder/tests/gwb-dat/geodynamic_world_builder_mar.json index 90d51ff3e35..9674df9a9de 100644 --- a/contrib/world_builder/tests/gwb-dat/geodynamic_world_builder_mar.json +++ b/contrib/world_builder/tests/gwb-dat/geodynamic_world_builder_mar.json @@ -1 +1 @@ -{"version": "0.6", "coordinate system": {"model": "spherical", "depth method": "starting point"}, "features": [{"model": "fault", "name": "fault_1", "coordinates": [[-24.612, -1.103], [-24.603095, -1.101906], [-24.59419, -1.100811], [-24.585285, -1.099717], [-24.57638, -1.098622], [-24.567475, -1.097528], [-24.55857, -1.096433], [-24.549665, -1.095338], [-24.540761, -1.094244], [-24.531856, -1.093149], [-24.522951, -1.092055], [-24.514046, -1.09096], [-24.505141, -1.089865], [-24.496236, -1.08877], [-24.487331, -1.087676], [-24.478426, -1.086581], [-24.469521, -1.085486], [-24.460617, -1.084391], [-24.451712, -1.083296], [-24.442807, -1.082201], [-24.433902, -1.081106], [-24.424997, -1.080012], [-24.416092, -1.078917], [-24.407188, -1.077822], [-24.398283, -1.076726], [-24.389378, -1.075631], [-24.380473, -1.074536], [-24.371568, -1.073441], [-24.362664, -1.072346], [-24.353759, -1.071251], [-24.344854, -1.070156], [-24.335949, -1.069061], [-24.327044, -1.067965], [-24.31814, -1.06687], [-24.309235, -1.065775], [-24.30033, -1.064679], [-24.291426, -1.063584], [-24.282521, -1.062489], [-24.273616, -1.061393], [-24.264711, -1.060298], [-24.255807, -1.059202], [-24.246902, -1.058107], [-24.237997, -1.057011], [-24.229093, -1.055916], [-24.220188, -1.05482], [-24.211283, -1.053725], [-24.202378, -1.052629], [-24.193474, -1.051534], [-24.184569, -1.050438], [-24.175665, -1.049342], [-24.16676, -1.048246], [-24.157855, -1.047151], [-24.148951, -1.046055], [-24.140046, -1.044959], [-24.131141, -1.043863], [-24.122237, -1.042768], [-24.113332, -1.041672], [-24.104428, -1.040576], [-24.095523, -1.03948], [-24.086618, -1.038384], [-24.077714, -1.037288], [-24.068809, -1.036192], [-24.059905, -1.035096], [-24.051, -1.034]], "dip point": [0.9698279114934465, 0.24379052911928262], "min depth": -100.0, "max depth": 20000.0, "segments": [{"length": 20000.0, "thickness": [100000.0], "angle": [90.0, 90.0]}], "composition models": [{"model": "smooth", "compositions": [0], "side distance fault center": 500000.0}]}, {"model": "fault", "name": "fault_2", "coordinates": [[-24.051, -1.034], [-24.042095, -1.03289], [-24.03319, -1.031779], [-24.024285, -1.030669], [-24.01538, -1.029558], [-24.006475, -1.028448], [-23.99757, -1.027338], [-23.988665, -1.026227], [-23.979761, -1.025117], [-23.970856, -1.024006], [-23.961951, -1.022895], [-23.953046, -1.021785], [-23.944141, -1.020674], [-23.935236, -1.019564], [-23.926331, -1.018453], [-23.917426, -1.017342], [-23.908522, -1.016231], [-23.899617, -1.015121], [-23.890712, -1.01401], [-23.881807, -1.012899], [-23.872902, -1.011788], [-23.863997, -1.010677], [-23.855093, -1.009567], [-23.846188, -1.008456], [-23.837283, -1.007345], [-23.828378, -1.006234], [-23.819473, -1.005123], [-23.810569, -1.004012], [-23.801664, -1.002901], [-23.792759, -1.00179], [-23.783854, -1.000679], [-23.774949, -0.999568], [-23.766045, -0.998456], [-23.75714, -0.997345], [-23.748235, -0.996234], [-23.73933, -0.995123], [-23.730426, -0.994012], [-23.721521, -0.992901], [-23.712616, -0.991789], [-23.703711, -0.990678], [-23.694807, -0.989567], [-23.685902, -0.988455], [-23.676997, -0.987344], [-23.668093, -0.986233], [-23.659188, -0.985121], [-23.650283, -0.98401], [-23.641379, -0.982898], [-23.632474, -0.981787], [-23.623569, -0.980675], [-23.614665, -0.979564], [-23.60576, -0.978452], [-23.596855, -0.977341], [-23.587951, -0.976229], [-23.579046, -0.975117], [-23.570141, -0.974006], [-23.561237, -0.972894], [-23.552332, -0.971782], [-23.543428, -0.970671], [-23.534523, -0.969559], [-23.525618, -0.968447], [-23.516714, -0.967335], [-23.507809, -0.966224], [-23.498905, -0.965112], [-23.49, -0.964]], "dip point": [0.9752552113408824, 0.22108204981963328], "min depth": -100.0, "max depth": 20000.0, "segments": [{"length": 20000.0, "thickness": [100000.0], "angle": [90.0, 90.0]}], "composition models": [{"model": "smooth", "compositions": [0], "side distance fault center": 500000.0}]}, {"model": "fault", "name": "fault_3", "coordinates": [[-23.49, -0.964], [-23.48119, -0.962667], [-23.472381, -0.961335], [-23.463571, -0.960002], [-23.454761, -0.958669], [-23.445951, -0.957337], [-23.437142, -0.956004], [-23.428332, -0.954671], [-23.419522, -0.953338], [-23.410713, -0.952005], [-23.401903, -0.950673], [-23.393093, -0.94934], [-23.384284, -0.948007], [-23.375474, -0.946674], [-23.366664, -0.945341], [-23.357855, -0.944008], [-23.349045, -0.942675], [-23.340236, -0.941342], [-23.331426, -0.940009], [-23.322616, -0.938676], [-23.313807, -0.937343], [-23.304997, -0.93601], [-23.296188, -0.934677], [-23.287378, -0.933343], [-23.278568, -0.93201], [-23.269759, -0.930677], [-23.260949, -0.929344], [-23.25214, -0.928011], [-23.24333, -0.926677], [-23.234521, -0.925344], [-23.225711, -0.924011], [-23.216902, -0.922678], [-23.208092, -0.921344], [-23.199282, -0.920011], [-23.190473, -0.918677], [-23.181663, -0.917344], [-23.172854, -0.916011], [-23.164044, -0.914677], [-23.155235, -0.913344], [-23.146426, -0.91201], [-23.137616, -0.910677], [-23.128807, -0.909343], [-23.119997, -0.90801], [-23.111188, -0.906676], [-23.102378, -0.905342], [-23.093569, -0.904009], [-23.084759, -0.902675], [-23.07595, -0.901342], [-23.067141, -0.900008], [-23.058331, -0.898674], [-23.049522, -0.89734], [-23.040712, -0.896007], [-23.031903, -0.894673], [-23.023094, -0.893339], [-23.014284, -0.892005], [-23.005475, -0.890671], [-22.996665, -0.889338], [-22.987856, -0.888004], [-22.979047, -0.88667], [-22.970237, -0.885336], [-22.961428, -0.884002], [-22.952619, -0.882668], [-22.943809, -0.881334], [-22.935, -0.88]], "dip point": [0.9708605070210597, 0.23964531271612796], "min depth": -100.0, "max depth": 20000.0, "segments": [{"length": 20000.0, "thickness": [100000.0], "angle": [90.0, 90.0]}], "composition models": [{"model": "smooth", "compositions": [0], "side distance fault center": 500000.0}]}]} +{"version": "1.0", "coordinate system": {"model": "spherical", "depth method": "starting point"}, "features": [{"model": "fault", "name": "fault_1", "coordinates": [[-24.612, -1.103], [-24.603095, -1.101906], [-24.59419, -1.100811], [-24.585285, -1.099717], [-24.57638, -1.098622], [-24.567475, -1.097528], [-24.55857, -1.096433], [-24.549665, -1.095338], [-24.540761, -1.094244], [-24.531856, -1.093149], [-24.522951, -1.092055], [-24.514046, -1.09096], [-24.505141, -1.089865], [-24.496236, -1.08877], [-24.487331, -1.087676], [-24.478426, -1.086581], [-24.469521, -1.085486], [-24.460617, -1.084391], [-24.451712, -1.083296], [-24.442807, -1.082201], [-24.433902, -1.081106], [-24.424997, -1.080012], [-24.416092, -1.078917], [-24.407188, -1.077822], [-24.398283, -1.076726], [-24.389378, -1.075631], [-24.380473, -1.074536], [-24.371568, -1.073441], [-24.362664, -1.072346], [-24.353759, -1.071251], [-24.344854, -1.070156], [-24.335949, -1.069061], [-24.327044, -1.067965], [-24.31814, -1.06687], [-24.309235, -1.065775], [-24.30033, -1.064679], [-24.291426, -1.063584], [-24.282521, -1.062489], [-24.273616, -1.061393], [-24.264711, -1.060298], [-24.255807, -1.059202], [-24.246902, -1.058107], [-24.237997, -1.057011], [-24.229093, -1.055916], [-24.220188, -1.05482], [-24.211283, -1.053725], [-24.202378, -1.052629], [-24.193474, -1.051534], [-24.184569, -1.050438], [-24.175665, -1.049342], [-24.16676, -1.048246], [-24.157855, -1.047151], [-24.148951, -1.046055], [-24.140046, -1.044959], [-24.131141, -1.043863], [-24.122237, -1.042768], [-24.113332, -1.041672], [-24.104428, -1.040576], [-24.095523, -1.03948], [-24.086618, -1.038384], [-24.077714, -1.037288], [-24.068809, -1.036192], [-24.059905, -1.035096], [-24.051, -1.034]], "dip point": [0.9698279114934465, 0.24379052911928262], "min depth": -100.0, "max depth": 20000.0, "segments": [{"length": 20000.0, "thickness": [100000.0], "angle": [90.0, 90.0]}], "composition models": [{"model": "smooth", "compositions": [0], "side distance fault center": 500000.0}]}, {"model": "fault", "name": "fault_2", "coordinates": [[-24.051, -1.034], [-24.042095, -1.03289], [-24.03319, -1.031779], [-24.024285, -1.030669], [-24.01538, -1.029558], [-24.006475, -1.028448], [-23.99757, -1.027338], [-23.988665, -1.026227], [-23.979761, -1.025117], [-23.970856, -1.024006], [-23.961951, -1.022895], [-23.953046, -1.021785], [-23.944141, -1.020674], [-23.935236, -1.019564], [-23.926331, -1.018453], [-23.917426, -1.017342], [-23.908522, -1.016231], [-23.899617, -1.015121], [-23.890712, -1.01401], [-23.881807, -1.012899], [-23.872902, -1.011788], [-23.863997, -1.010677], [-23.855093, -1.009567], [-23.846188, -1.008456], [-23.837283, -1.007345], [-23.828378, -1.006234], [-23.819473, -1.005123], [-23.810569, -1.004012], [-23.801664, -1.002901], [-23.792759, -1.00179], [-23.783854, -1.000679], [-23.774949, -0.999568], [-23.766045, -0.998456], [-23.75714, -0.997345], [-23.748235, -0.996234], [-23.73933, -0.995123], [-23.730426, -0.994012], [-23.721521, -0.992901], [-23.712616, -0.991789], [-23.703711, -0.990678], [-23.694807, -0.989567], [-23.685902, -0.988455], [-23.676997, -0.987344], [-23.668093, -0.986233], [-23.659188, -0.985121], [-23.650283, -0.98401], [-23.641379, -0.982898], [-23.632474, -0.981787], [-23.623569, -0.980675], [-23.614665, -0.979564], [-23.60576, -0.978452], [-23.596855, -0.977341], [-23.587951, -0.976229], [-23.579046, -0.975117], [-23.570141, -0.974006], [-23.561237, -0.972894], [-23.552332, -0.971782], [-23.543428, -0.970671], [-23.534523, -0.969559], [-23.525618, -0.968447], [-23.516714, -0.967335], [-23.507809, -0.966224], [-23.498905, -0.965112], [-23.49, -0.964]], "dip point": [0.9752552113408824, 0.22108204981963328], "min depth": -100.0, "max depth": 20000.0, "segments": [{"length": 20000.0, "thickness": [100000.0], "angle": [90.0, 90.0]}], "composition models": [{"model": "smooth", "compositions": [0], "side distance fault center": 500000.0}]}, {"model": "fault", "name": "fault_3", "coordinates": [[-23.49, -0.964], [-23.48119, -0.962667], [-23.472381, -0.961335], [-23.463571, -0.960002], [-23.454761, -0.958669], [-23.445951, -0.957337], [-23.437142, -0.956004], [-23.428332, -0.954671], [-23.419522, -0.953338], [-23.410713, -0.952005], [-23.401903, -0.950673], [-23.393093, -0.94934], [-23.384284, -0.948007], [-23.375474, -0.946674], [-23.366664, -0.945341], [-23.357855, -0.944008], [-23.349045, -0.942675], [-23.340236, -0.941342], [-23.331426, -0.940009], [-23.322616, -0.938676], [-23.313807, -0.937343], [-23.304997, -0.93601], [-23.296188, -0.934677], [-23.287378, -0.933343], [-23.278568, -0.93201], [-23.269759, -0.930677], [-23.260949, -0.929344], [-23.25214, -0.928011], [-23.24333, -0.926677], [-23.234521, -0.925344], [-23.225711, -0.924011], [-23.216902, -0.922678], [-23.208092, -0.921344], [-23.199282, -0.920011], [-23.190473, -0.918677], [-23.181663, -0.917344], [-23.172854, -0.916011], [-23.164044, -0.914677], [-23.155235, -0.913344], [-23.146426, -0.91201], [-23.137616, -0.910677], [-23.128807, -0.909343], [-23.119997, -0.90801], [-23.111188, -0.906676], [-23.102378, -0.905342], [-23.093569, -0.904009], [-23.084759, -0.902675], [-23.07595, -0.901342], [-23.067141, -0.900008], [-23.058331, -0.898674], [-23.049522, -0.89734], [-23.040712, -0.896007], [-23.031903, -0.894673], [-23.023094, -0.893339], [-23.014284, -0.892005], [-23.005475, -0.890671], [-22.996665, -0.889338], [-22.987856, -0.888004], [-22.979047, -0.88667], [-22.970237, -0.885336], [-22.961428, -0.884002], [-22.952619, -0.882668], [-22.943809, -0.881334], [-22.935, -0.88]], "dip point": [0.9708605070210597, 0.23964531271612796], "min depth": -100.0, "max depth": 20000.0, "segments": [{"length": 20000.0, "thickness": [100000.0], "angle": [90.0, 90.0]}], "composition models": [{"model": "smooth", "compositions": [0], "side distance fault center": 500000.0}]}]} diff --git a/contrib/world_builder/tests/gwb-dat/half_space_plate_model.wb b/contrib/world_builder/tests/gwb-dat/half_space_plate_model.wb index a44c2d8c749..7413ae237e4 100644 --- a/contrib/world_builder/tests/gwb-dat/half_space_plate_model.wb +++ b/contrib/world_builder/tests/gwb-dat/half_space_plate_model.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[1000e3,0]],"surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/half_space_variable_spreading.wb b/contrib/world_builder/tests/gwb-dat/half_space_variable_spreading.wb index 88e7706b382..86eb003322c 100644 --- a/contrib/world_builder/tests/gwb-dat/half_space_variable_spreading.wb +++ b/contrib/world_builder/tests/gwb-dat/half_space_variable_spreading.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface.wb b/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface.wb index 68285ba8984..118b5a82b7f 100644 --- a/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface.wb +++ b/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "features":[ diff --git a/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface_spherical.wb b/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface_spherical.wb index 28e6ea93854..bceeabc9341 100644 --- a/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface_spherical.wb +++ b/contrib/world_builder/tests/gwb-dat/mantle_layer_min_max_surface_spherical.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment"}, "gravity model":{"model":"uniform", "magnitude":10}, "features":[ diff --git a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_old.wb b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_old.wb index 38e826083ea..b7ce37f0a11 100644 --- a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_old.wb +++ b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_old.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, @@ -137,7 +137,8 @@ "density": 3300, "thermal conductivity": 3.3, "adiabatic heating": true, - "plate velocity": 0.05, + "spreading velocity": 0.05, + "subducting velocity": 0.05, "ridge coordinates": [ [ [ diff --git a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_young.wb b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_young.wb index cc3b53e474f..5234c29dda3 100644 --- a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_young.wb +++ b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_plate_model_young.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, @@ -137,7 +137,8 @@ "density": 3300, "thermal conductivity": 3.3, "adiabatic heating": true, - "plate velocity": 0.05, + "spreading velocity": 0.05, + "subducting velocity": 0.05, "ridge coordinates": [ [ [ diff --git a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_spline.wb b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_spline.wb index b5eb710882d..4550cf90726 100644 --- a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_spline.wb +++ b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_temperature_spline.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, @@ -137,7 +137,8 @@ "density": 3300, "thermal conductivity": 3.3, "adiabatic heating": true, - "plate velocity": 0.05, + "spreading velocity": 0.05, + "subducting velocity": 0.05, "ridge coordinates": [ [ [ diff --git a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_with_variable_spreading.wb b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_with_variable_spreading.wb index 970e2e9a1b7..0ae1222b076 100644 --- a/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_with_variable_spreading.wb +++ b/contrib/world_builder/tests/gwb-dat/mass_conserving_slab_with_variable_spreading.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, @@ -137,7 +137,8 @@ "density": 3300, "thermal conductivity": 3.3, "adiabatic heating": true, - "plate velocity": [ [1,[[0.000005, 0.05]]] ], + "spreading velocity": [ [1,[[0.000005, 0.05]]] ], + "subducting velocity": [[0.000005, 0.05]], "ridge coordinates": [ [ [ diff --git a/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface.wb b/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface.wb index 153f40ad672..cf092788ded 100644 --- a/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface.wb +++ b/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "features":[ diff --git a/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface_spherical.wb b/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface_spherical.wb index 33c451f5e88..25aeae315f3 100644 --- a/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface_spherical.wb +++ b/contrib/world_builder/tests/gwb-dat/oceanic_min_max_surface_spherical.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment"}, "gravity model":{"model":"uniform", "magnitude":10}, "features":[ diff --git a/contrib/world_builder/tests/gwb-dat/plate_model_variable_spreading.wb b/contrib/world_builder/tests/gwb-dat/plate_model_variable_spreading.wb index 3d994e44b1c..830efb70e0d 100644 --- a/contrib/world_builder/tests/gwb-dat/plate_model_variable_spreading.wb +++ b/contrib/world_builder/tests/gwb-dat/plate_model_variable_spreading.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"cartesian"}, "gravity model":{"model":"uniform", "magnitude":10}, "surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/plume_gaussian.wb b/contrib/world_builder/tests/gwb-dat/plume_gaussian.wb index 6c74bc87e49..1c42877aa0f 100644 --- a/contrib/world_builder/tests/gwb-dat/plume_gaussian.wb +++ b/contrib/world_builder/tests/gwb-dat/plume_gaussian.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "surface temperature":273.15, "potential mantle temperature":1573.15, "features": diff --git a/contrib/world_builder/tests/gwb-dat/plume_gaussian_spherical.wb b/contrib/world_builder/tests/gwb-dat/plume_gaussian_spherical.wb index a57c814a401..3db7e624aa4 100644 --- a/contrib/world_builder/tests/gwb-dat/plume_gaussian_spherical.wb +++ b/contrib/world_builder/tests/gwb-dat/plume_gaussian_spherical.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"starting point"}, "maximum distance between coordinates":0.01, "thermal expansion coefficient":0.0, diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1.dat b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1.dat new file mode 100644 index 00000000000..99dd6303dba --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1.dat @@ -0,0 +1,14 @@ +# This is a comment in the data +# file. +# Now define parameters: +# dim = 3 +# compositions = 6 +# grain compositions = 2 +# number of grains = 1 +# x y z d c1 c2 c3 c4 c5 c6 +5 5 0 15 +1 5 0 5 +7 5 0 5 +5 3 0 0.1 +4.5 0 0 15 +5 6 0 0.1 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1.wb b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1.wb new file mode 100644 index 00000000000..0cd87ce47a0 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1.wb @@ -0,0 +1,80 @@ +{ + "version": "1.0", + "coordinate system":{"model":"cartesian"}, + "random number seed":1, + "features": + [ + { + "model":"mantle layer", "name":"Mantle", "min depth":10, "max depth": 20, + "coordinates":[[0,0],[0,10],[10,10],[10,0]], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[0]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,0,0]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"continental plate", "name":"CP", "min depth":0, "max depth": 10, + "coordinates":[[0,0],[0,10],[5,10],[5,0]], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[1]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,30,0]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"oceanic plate", "name":"OP", "min depth":0, "max depth": 10, + "coordinates":[[5,0],[5,10],[10,10],[10,0]], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[2]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,0,45]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"fault", "name":"Fault", "min depth":0, "max depth": 10, + "coordinates":[[0,3],[10,3]], "dip point":[0,0], + "segments":[{"length":10, "thickness":[1], "angle":[45]}], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[3]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[60,60,60]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"plume", + "name":"Plume", + "coordinates":[[3, 0],[3.7, 0],[5.5, 0],[4.5, 0],[4, 0]], + "cross section depths":[0, 1, 2.5, 5, 7.5], + "semi-major axis":[0.5, 0.7, 0.3, 0.8, 1], + "eccentricity":[0, 0, 0, 0, 0], + "rotation angles":[0, 0, 0, 0, 0], + "temperature models":[{"model":"uniform", "min depth": 10, "max depth":20, "temperature":1800}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.5], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,90,90]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"subducting plate", "name":"SP", "min depth":0, "max depth": 10, + "coordinates":[[0,6],[10,6]], "dip point":[0,0], + "segments":[{"length":10, "thickness":[1], "angle":[45]}], + "temperature models":[{"model":"uniform", "temperature":150}], + "composition models":[{"model":"uniform", "compositions":[5]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[30,30,60]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + } + + ] +} \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1/screen-output.log b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1/screen-output.log new file mode 100644 index 00000000000..4c039fb16fd --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1/screen-output.log @@ -0,0 +1,7 @@ +# x y z d g T c0 c1 c2 c3 c4 c5 gs0-0 gm0-0[0:0] gm0-0[0:1] gm0-0[0:2] gm0-0[1:0] gm0-0[1:1] gm0-0[1:2] gm0-0[2:0] gm0-0[2:1] gm0-0[2:2] gs1-0 gm1-0[0:0] gm1-0[0:1] gm1-0[0:2] gm1-0[1:0] gm1-0[1:1] gm1-0[1:2] gm1-0[2:0] gm1-0[2:1] gm1-0[2:2] tag +5 5 0 15 293 1 0 0 0 0 0 1 0.499857 -0.0018567 -0.023828 -0.000554464 -0.999508 0.0313571 -0.0119373 -0.0313217 -0.999224 0 0 0 0 0 0 0 0 0 0 0 +1 5 0 5 293 0 1 0 0 0 0 1 0.499473 -0.00264771 -0.0458424 -0.00146095 -0.999978 -0.005915 -0.0229129 0.00604271 -0.998931 0 0 0 0 0 0 0 0 0 0 1 +7 5 0 5 293 0 0 1 0 0 0 1 0.499912 -0.00455493 0.0182169 -0.00222068 -0.99997 -0.00626999 0.00912247 0.00618798 -0.999814 0 0 0 0 0 0 0 0 0 0 2 +5 3 0 0.1 293 0 0 0 1 0 0 1 0.999529 -0.0039371 -0.0290701 -0.00342152 -0.825622 0.0162258 -0.0291353 -0.0161085 -0.825165 0 1 0 0 0 1 0 0 0 1 3 +4.5 0 0 15 1800 1 0 0 0 0 0 1 0.499757 -0.000725128 0.0311578 0.000175418 -0.999404 -0.0345134 0.0155821 0.0345076 -0.998918 0 0 0 0 0 0 0 0 0 0 4 +5 6 0 0.1 150 0 0 0 0 0 1 1 0.999996 -0.00262365 0.000402509 -0.0025966 -0.824507 -0.0517783 0.000550654 0.0517769 -0.824511 0 1 0 0 0 1 0 0 0 1 5 diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000.dat b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000.dat new file mode 100644 index 00000000000..99dd6303dba --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000.dat @@ -0,0 +1,14 @@ +# This is a comment in the data +# file. +# Now define parameters: +# dim = 3 +# compositions = 6 +# grain compositions = 2 +# number of grains = 1 +# x y z d c1 c2 c3 c4 c5 c6 +5 5 0 15 +1 5 0 5 +7 5 0 5 +5 3 0 0.1 +4.5 0 0 15 +5 6 0 0.1 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000.wb b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000.wb new file mode 100644 index 00000000000..479bce67583 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000.wb @@ -0,0 +1,80 @@ +{ + "version": "1.0", + "coordinate system":{"model":"cartesian"}, + "random number seed":1000, + "features": + [ + { + "model":"mantle layer", "name":"Mantle", "min depth":10, "max depth": 20, + "coordinates":[[0,0],[0,10],[10,10],[10,0]], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[0]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,0,0]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"continental plate", "name":"CP", "min depth":0, "max depth": 10, + "coordinates":[[0,0],[0,10],[5,10],[5,0]], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[1]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,30,0]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"oceanic plate", "name":"OP", "min depth":0, "max depth": 10, + "coordinates":[[5,0],[5,10],[10,10],[10,0]], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[2]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,0,45]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"fault", "name":"Fault", "min depth":0, "max depth": 10, + "coordinates":[[0,3],[10,3]], "dip point":[0,0], + "segments":[{"length":10, "thickness":[1], "angle":[45]}], + "temperature models":[{"model":"uniform", "temperature":293}], + "composition models":[{"model":"uniform", "compositions":[3]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[60,60,60]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"plume", + "name":"Plume", + "coordinates":[[3, 0],[3.7, 0],[5.5, 0],[4.5, 0],[4, 0]], + "cross section depths":[0, 1, 2.5, 5, 7.5], + "semi-major axis":[0.5, 0.7, 0.3, 0.8, 1], + "eccentricity":[0, 0, 0, 0, 0], + "rotation angles":[0, 0, 0, 0, 0], + "temperature models":[{"model":"uniform", "min depth": 10, "max depth":20, "temperature":1800}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.5], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[0,90,90]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + }, + + { + "model":"subducting plate", "name":"SP", "min depth":0, "max depth": 10, + "coordinates":[[0,6],[10,6]], "dip point":[0,0], + "segments":[{"length":10, "thickness":[1], "angle":[45]}], + "temperature models":[{"model":"uniform", "temperature":150}], + "composition models":[{"model":"uniform", "compositions":[5]}], + "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis Euler angles z-x-z": [[30,30,60]]}, + {"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], + "deflections": [0.001], "normalize grain sizes": [true], "basis rotation matrices": [[[-0.5,0,0],[0,1,0],[0,0,-1]]]}] + } + + ] +} \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000/screen-output.log b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000/screen-output.log new file mode 100644 index 00000000000..7956bb5c0ad --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/random_uniform_distribution_deflected_asrotation_seed1000/screen-output.log @@ -0,0 +1,7 @@ +# x y z d g T c0 c1 c2 c3 c4 c5 gs0-0 gm0-0[0:0] gm0-0[0:1] gm0-0[0:2] gm0-0[1:0] gm0-0[1:1] gm0-0[1:2] gm0-0[2:0] gm0-0[2:1] gm0-0[2:2] gs1-0 gm1-0[0:0] gm1-0[0:1] gm1-0[0:2] gm1-0[1:0] gm1-0[1:1] gm1-0[1:2] gm1-0[2:0] gm1-0[2:1] gm1-0[2:2] tag +5 5 0 15 293 1 0 0 0 0 0 1 0.499991 -0.00528206 -0.00316564 -0.00269775 -0.999302 -0.0369657 -0.00148409 0.0369821 -0.999312 0 0 0 0 0 0 0 0 0 0 0 +1 5 0 5 293 0 1 0 0 0 0 1 0.499984 -0.000140805 -0.00798551 -0.000308283 -0.998222 -0.0596069 -0.00398146 0.0596099 -0.99819 0 0 0 0 0 0 0 0 0 0 1 +7 5 0 5 293 0 0 1 0 0 0 1 0.499796 -0.00317139 0.0283707 -0.00140799 -0.999917 -0.0125586 0.0142041 0.0124735 -0.999519 0 0 0 0 0 0 0 0 0 0 2 +5 3 0 0.1 293 0 0 0 1 0 0 1 0.999858 -0.00458949 -0.0154063 -0.00475835 -0.825733 -0.00998195 -0.015355 0.0100607 -0.825615 0 1 0 0 0 1 0 0 0 1 3 +4.5 0 0 15 1800 1 0 0 0 0 0 1 0.499936 -0.00455961 -0.0152841 -0.00258492 -0.999181 -0.0401272 -0.00754431 0.0402011 -0.999078 0 0 0 0 0 0 0 0 0 0 4 +5 6 0 0.1 150 0 0 0 0 0 1 1 0.999991 -0.00293585 0.00292161 -0.0029854 -0.8257 0.0156096 0.00287097 -0.015619 -0.8257 0 1 0 0 0 1 0 0 0 1 5 diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1.dat b/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1.dat deleted file mode 100644 index d0c093e2ecb..00000000000 --- a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1.dat +++ /dev/null @@ -1,20 +0,0 @@ -# This is a comment in the data -# file. -# Now define parameters: -# dim = 3 -# compositions = 5 -# grain compositions = 1 -# number of grains = 1 -# x y z d c1 c2 c3 c4 -300e3 500e3 0 50e3 -1400e3 500e3 0 50e3 -1600e3 500e3 0 50e3 -1800e3 500e3 0 50e3 -500e3 500e3 0 300e3 -2000e3 500e3 0 400e3 -1500e3 500e3 0 50e3 -1400e3 500e3 0 200e3 -950e3 500e3 0 50e3 -1050e3 500e3 0 50e3 -950e3 500e3 0 210e3 -1050e3 500e3 0 210e3 diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1.wb b/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1.wb deleted file mode 100644 index 63e3fa94aec..00000000000 --- a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1.wb +++ /dev/null @@ -1,54 +0,0 @@ -{ - "version": "0.6", - "coordinate system":{"model":"cartesian"}, - "random number seed":1, - "features": - [ - { - "model":"continental plate", "name":"Overriding Plate", "max depth":100e3, - "coordinates":[[0,0],[0,1000e3],[1500e3,1000e3],[1500e3,0]], - "temperature models":[{"model":"uniform", "temperature":293}], - "composition models":[{"model":"uniform", "compositions":[0]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.1]}] - }, - - { - "model":"oceanic plate", "name":"Subducting Plate", "max depth":100e3, - "coordinates":[[1500e3,0],[1500e3,1000e3],[2500e3,1000e3],[2500e3,0]], - "temperature models":[{"model":"uniform", "temperature":293}], - "composition models":[{"model":"uniform", "compositions":[1]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.2]}] - }, - - { - "model":"mantle layer", "name":"Mantle", "min depth":100e3, - "coordinates":[[0,0],[0,1000e3],[2500e3,1000e3],[2500e3,0]], - "temperature models":[{"model":"uniform", "temperature":293}], - "composition models":[{"model":"uniform", "compositions":[2]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.3]}] - }, - - { - "model":"subducting plate", "name":"Slab", "min depth":0e3, - "coordinates":[[1500e3,0],[1500e3,500e3],[1500e3,1000e3]], "dip point":[10, 10], - "segments":[{"length":500e3, "thickness":[100e3], "angle":[50]}], - "temperature models":[{"model":"uniform", "temperature":10}], - "composition models":[{"model":"uniform", "compositions":[3]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.4]}] - }, - - { - "model":"fault", "name":"Fault", "min depth":0e3, - "coordinates":[[1000e3,0],[1000e3,500e3],[1000e3,1000e3]], "dip point":[10, 10], - "segments":[{"length":200e3, "thickness":[200e3], "angle":[90]}], - "temperature models":[{"model":"uniform", "temperature":10}], - "composition models":[{"model":"uniform", "compositions":[4]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.5]}] - } - ] -} \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1/screen-output.log b/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1/screen-output.log deleted file mode 100644 index e797cc6a96a..00000000000 --- a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1/screen-output.log +++ /dev/null @@ -1,13 +0,0 @@ -# x y z d g T c0 c1 c2 c3 c4 gs0-0 gm0-0[0:0] gm0-0[0:1] gm0-0[0:2] gm0-0[1:0] gm0-0[1:1] gm0-0[1:2] gm0-0[2:0] gm0-0[2:1] gm0-0[2:2] tag -300e3 500e3 0 50e3 293 1 0 0 0 0 1 -0.800914 -0.591593 -0.0924877 0.566088 -0.798439 0.205035 -0.195143 0.111859 0.974375 0 -1400e3 500e3 0 50e3 293 1 0 0 0 0 1 -0.955406 -0.180561 0.233658 0.103564 -0.945899 -0.307488 0.276538 -0.269578 0.922418 0 -1600e3 500e3 0 50e3 293 0 1 0 0 0 1 -0.298222 -0.867278 -0.398613 0.862937 -0.423456 0.275724 -0.407925 -0.261751 0.874691 1 -1800e3 500e3 0 50e3 293 0 1 0 0 0 1 -0.684602 -0.394635 0.612848 0.550037 -0.831389 0.0790752 0.478309 0.391224 0.786234 1 -500e3 500e3 0 300e3 293 0 0 1 0 0 1 -0.422225 -0.823232 0.379494 0.267122 -0.513044 -0.81574 0.86624 -0.243055 0.436523 2 -2000e3 500e3 0 400e3 293 0 0 1 0 0 1 -0.191783 -0.93082 -0.311117 0.966116 -0.234847 0.107082 -0.172739 -0.280039 0.94432 2 -1500e3 500e3 0 50e3 10 0 0 0 1 0 1 -0.46567 -0.645243 0.60565 0.87519 -0.437189 0.207144 0.131125 0.62652 0.768296 3 -1400e3 500e3 0 200e3 10 0 0 0 1 0 1 -0.9776 -0.197078 0.0738833 0.155499 -0.912865 -0.377488 0.14184 -0.357544 0.923062 3 -950e3 500e3 0 50e3 10 0 0 0 0 1 1 0.407186 -0.895089 -0.181701 0.733709 0.202085 0.648716 -0.54394 -0.397464 0.739021 4 -1050e3 500e3 0 50e3 10 0 0 0 0 1 1 -0.728705 -0.338593 -0.595268 -0.202176 -0.724117 0.659379 -0.654305 0.600841 0.459212 4 -950e3 500e3 0 210e3 293 0 0 1 0 0 1 -0.815387 -0.468934 -0.339477 0.54922 -0.441202 -0.709717 0.183032 -0.765142 0.617298 2 -1050e3 500e3 0 210e3 293 0 0 1 0 0 1 -0.328436 -0.805474 -0.493297 0.917498 -0.148023 -0.36917 0.224338 -0.573848 0.787637 2 diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000.dat b/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000.dat deleted file mode 100644 index d0c093e2ecb..00000000000 --- a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000.dat +++ /dev/null @@ -1,20 +0,0 @@ -# This is a comment in the data -# file. -# Now define parameters: -# dim = 3 -# compositions = 5 -# grain compositions = 1 -# number of grains = 1 -# x y z d c1 c2 c3 c4 -300e3 500e3 0 50e3 -1400e3 500e3 0 50e3 -1600e3 500e3 0 50e3 -1800e3 500e3 0 50e3 -500e3 500e3 0 300e3 -2000e3 500e3 0 400e3 -1500e3 500e3 0 50e3 -1400e3 500e3 0 200e3 -950e3 500e3 0 50e3 -1050e3 500e3 0 50e3 -950e3 500e3 0 210e3 -1050e3 500e3 0 210e3 diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000.wb b/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000.wb deleted file mode 100644 index 9372d2ea50a..00000000000 --- a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000.wb +++ /dev/null @@ -1,54 +0,0 @@ -{ - "version": "0.6", - "coordinate system":{"model":"cartesian"}, - "random number seed":1000, - "features": - [ - { - "model":"continental plate", "name":"Overriding Plate", "max depth":100e3, - "coordinates":[[0,0],[0,1000e3],[1500e3,1000e3],[1500e3,0]], - "temperature models":[{"model":"uniform", "temperature":293}], - "composition models":[{"model":"uniform", "compositions":[0]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.1]}] - }, - - { - "model":"oceanic plate", "name":"Subducting Plate", "max depth":100e3, - "coordinates":[[1500e3,0],[1500e3,1000e3],[2500e3,1000e3],[2500e3,0]], - "temperature models":[{"model":"uniform", "temperature":293}], - "composition models":[{"model":"uniform", "compositions":[1]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.2]}] - }, - - { - "model":"mantle layer", "name":"Mantle", "min depth":100e3, - "coordinates":[[0,0],[0,1000e3],[2500e3,1000e3],[2500e3,0]], - "temperature models":[{"model":"uniform", "temperature":293}], - "composition models":[{"model":"uniform", "compositions":[2]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.3]}] - }, - - { - "model":"subducting plate", "name":"Slab", "min depth":0e3, - "coordinates":[[1500e3,0],[1500e3,500e3],[1500e3,1000e3]], "dip point":[10, 10], - "segments":[{"length":500e3, "thickness":[100e3], "angle":[50]}], - "temperature models":[{"model":"uniform", "temperature":10}], - "composition models":[{"model":"uniform", "compositions":[3]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.4]}] - }, - - { - "model":"fault", "name":"Fault", "min depth":0e3, - "coordinates":[[1000e3,0],[1000e3,500e3],[1000e3,1000e3]], "dip point":[10, 10], - "segments":[{"length":200e3, "thickness":[200e3], "angle":[90]}], - "temperature models":[{"model":"uniform", "temperature":10}], - "composition models":[{"model":"uniform", "compositions":[4]}], - "grains models": [{"model":"random uniform distribution deflected", "compositions":[0], "grain sizes":[-1], - "normalize grain sizes":[true], "deflections":[0.5]}] - } - ] -} \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000/screen-output.log b/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000/screen-output.log deleted file mode 100644 index 3ecc838490f..00000000000 --- a/contrib/world_builder/tests/gwb-dat/random_uniform_texture_all_features_seed1000/screen-output.log +++ /dev/null @@ -1,13 +0,0 @@ -# x y z d g T c0 c1 c2 c3 c4 gs0-0 gm0-0[0:0] gm0-0[0:1] gm0-0[0:2] gm0-0[1:0] gm0-0[1:1] gm0-0[1:2] gm0-0[2:0] gm0-0[2:1] gm0-0[2:2] tag -300e3 500e3 0 50e3 293 1 0 0 0 0 1 -0.990972 -0.127666 -0.0409292 0.129618 -0.990341 -0.0492332 -0.0342484 -0.0540939 0.997948 0 -1400e3 500e3 0 50e3 293 1 0 0 0 0 1 -0.863294 -0.503742 0.0311121 0.479282 -0.798937 0.363301 -0.158154 0.328547 0.931152 0 -1600e3 500e3 0 50e3 293 0 1 0 0 0 1 -0.55876 -0.762818 -0.325417 0.720801 -0.252629 -0.645465 0.410162 -0.595221 0.690999 1 -1800e3 500e3 0 50e3 293 0 1 0 0 0 1 -0.994372 -0.0277444 0.102248 0.0963064 -0.638921 0.76322 0.0441535 0.768772 0.637997 1 -500e3 500e3 0 300e3 293 0 0 1 0 0 1 -0.88545 -0.216658 -0.411142 0.0819602 -0.943615 0.32074 -0.45745 0.250302 0.853281 2 -2000e3 500e3 0 400e3 293 0 0 1 0 0 1 -0.505877 -0.721112 -0.473377 0.730473 -0.65 0.209545 -0.4588 -0.239785 0.855573 2 -1500e3 500e3 0 50e3 10 0 0 0 1 0 1 0.277217 -0.320014 -0.905948 0.59042 0.800607 -0.102137 0.757994 -0.506575 0.410885 3 -1400e3 500e3 0 200e3 10 0 0 0 1 0 1 0.784316 -0.497925 -0.370026 0.616522 0.559361 0.55409 -0.0689168 -0.662711 0.745697 3 -950e3 500e3 0 50e3 10 0 0 0 0 1 1 -0.459173 -0.634613 -0.621632 -0.305909 -0.544008 0.781329 -0.834014 0.548928 0.05566 4 -1050e3 500e3 0 50e3 10 0 0 0 0 1 1 0.615449 -0.728911 0.299852 0.271936 0.553452 0.787237 -0.739779 -0.402964 0.538839 4 -950e3 500e3 0 210e3 293 0 0 1 0 0 1 -0.577637 -0.64995 -0.493863 0.410363 -0.754211 0.51261 -0.705647 0.0934395 0.702375 2 -1050e3 500e3 0 210e3 293 0 0 1 0 0 1 0.248301 -0.967981 0.0368649 0.636139 0.134242 -0.759807 0.73053 0.212112 0.649103 2 diff --git a/contrib/world_builder/tests/gwb-dat/slab_complex_spherical.wb b/contrib/world_builder/tests/gwb-dat/slab_complex_spherical.wb index 49cf69cea24..d8df77734da 100644 --- a/contrib/world_builder/tests/gwb-dat/slab_complex_spherical.wb +++ b/contrib/world_builder/tests/gwb-dat/slab_complex_spherical.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment"}, "cross section":[[0,0],[10,0]], "features": diff --git a/contrib/world_builder/tests/gwb-dat/slab_interpolation_180pm_CMS.wb b/contrib/world_builder/tests/gwb-dat/slab_interpolation_180pm_CMS.wb index c7ae9ddc7b7..3b642267fb9 100644 --- a/contrib/world_builder/tests/gwb-dat/slab_interpolation_180pm_CMS.wb +++ b/contrib/world_builder/tests/gwb-dat/slab_interpolation_180pm_CMS.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"begin segment"}, "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,0],[10,0]], diff --git a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_CMS.wb b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_CMS.wb index 5522cdfd11e..7df3d6580aa 100644 --- a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_CMS.wb +++ b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_CMS.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "interpolation":"continuous monotone spline", diff --git a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_CMS.wb b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_CMS.wb index 36ebef7f87d..590802d1534 100644 --- a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_CMS.wb +++ b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_CMS.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,50e3],[50e3,0]], "interpolation":"continuous monotone spline", "features": diff --git a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_none.wb b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_none.wb index 2c58e6b758e..09dfdd05776 100644 --- a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_none.wb +++ b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_curved_none.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,50e3],[50e3,0]], "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_none.wb b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_none.wb index b5d0ef15e67..8002a112177 100644 --- a/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_none.wb +++ b/contrib/world_builder/tests/gwb-dat/slab_interpolation_simple_none.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,50e3],[50e3,0]], "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance.dat b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance.dat new file mode 100644 index 00000000000..184a1d3316d --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance.dat @@ -0,0 +1,18 @@ +# 2 profiles across a slab, one at 500 km depth +# and one at 200 km depth +# Now define parameters: +# dim = 2 +# compositions = 0 +# x z d T +8000e3 0 500e3 +8050e3 0 500e3 +8100e3 0 500e3 +8150e3 0 500e3 +8200e3 0 500e3 +8300e3 0 500e3 +7800e3 0 200e3 +7850e3 0 200e3 +7900e3 0 200e3 +7950e3 0 200e3 +8000e3 0 200e3 +8200e3 0 200e3 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance.wb b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance.wb new file mode 100644 index 00000000000..85811dfbbc1 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance.wb @@ -0,0 +1,163 @@ +{ + "version":"1.0", + "coordinate system":{"model":"cartesian"}, + "gravity model":{"model":"uniform", "magnitude":10}, + "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, + "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, + "specific heat":1000, "thermal diffusivity":1.0e-6, + "features": + [ + { + "model": "oceanic plate", + "name": "sp plate", + "max depth": 150000.0, + "min depth": -100000.0, + "coordinates": [ + [ + 0.0, + -1000e3 + ], + [ + 0.0, + 1000e3 + ], + [ + 7500000.0, + 1000e3 + ], + [ + 7500000.0, + -1000e3 + ] + ], + "temperature models": [ + { + "model": "plate model", + "min depth": -10000.0, + "max depth": 150000.0, + "spreading velocity": 0.05, + "ridge coordinates": [ + [ + [ + 0, + -1000.0 + ], + [ + 0, + 1000.0 + ] + ] + ] + } + ], + "composition models": [ + { + "model": "uniform", + "min depth": -10000.0, + "max depth": 7500.0, + "compositions": [ + 0 + ] + }, + { + "model": "uniform", + "min depth": 7500.0, + "max depth": 35200.0, + "compositions": [ + 1 + ] + } + ] + }, + { + "model": "subducting plate", + "name": "initial slab", + "coordinates": [ + [ + 7500000.0, + -1000e3 + ], + [ + 7500000.0, + 1000e3 + ] + ], + "dip point": [ + 40000000.0, + 0.0 + ], + "segments": [ + { + "length": 1000000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 0, + 80 + ], + "composition models": [ + { + "model": "uniform", + "compositions": [ + 0 + ], + "max distance slab top": 7500.0 + }, + { + "model": "uniform", + "compositions": [ + 1 + ], + "min distance slab top": 7500.0, + "max distance slab top": 35200.0 + } + ] + }, + { + "length": 300000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 80, + 80 + ] + } + ], + "temperature models": [ + { + "model": "mass conserving", + "density": 3300, + "thermal conductivity": 3.3, + "adiabatic heating": true, + "spreading velocity": 0.05, + "subducting velocity": 0.02, + "ridge coordinates": [ + [ + [ + 0, + -1000.0e3 + ], + [ + 0, + 1000.0e3 + ] + ] + ], + "coupling depth": 50000.0, + "taper distance": 100000.0, + "min distance slab top": -100000.0, + "max distance slab top": 150000.0, + "reference model name": "plate model" + } + ] + } + ] +} diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance/screen-output.log b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance/screen-output.log new file mode 100644 index 00000000000..cefd7498196 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance/screen-output.log @@ -0,0 +1,13 @@ +# x z d T tag +8000e3 0 500e3 1953.49 1 +8050e3 0 500e3 1658.69 1 +8100e3 0 500e3 1356.3 1 +8150e3 0 500e3 1010.07 1 +8200e3 0 500e3 1537.87 1 +8300e3 0 500e3 1953.49 -1 +7800e3 0 200e3 1485.07 1 +7850e3 0 200e3 1276.68 1 +7900e3 0 200e3 1024.7 1 +7950e3 0 200e3 734.792 1 +8000e3 0 200e3 1430.21 1 +8200e3 0 200e3 1780.01 -1 diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1.dat b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1.dat new file mode 100644 index 00000000000..184a1d3316d --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1.dat @@ -0,0 +1,18 @@ +# 2 profiles across a slab, one at 500 km depth +# and one at 200 km depth +# Now define parameters: +# dim = 2 +# compositions = 0 +# x z d T +8000e3 0 500e3 +8050e3 0 500e3 +8100e3 0 500e3 +8150e3 0 500e3 +8200e3 0 500e3 +8300e3 0 500e3 +7800e3 0 200e3 +7850e3 0 200e3 +7900e3 0 200e3 +7950e3 0 200e3 +8000e3 0 200e3 +8200e3 0 200e3 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1.wb b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1.wb new file mode 100644 index 00000000000..8e7565fac81 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1.wb @@ -0,0 +1,163 @@ +{ + "version":"1.0", + "coordinate system":{"model":"cartesian"}, + "gravity model":{"model":"uniform", "magnitude":10}, + "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, + "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, + "specific heat":1000, "thermal diffusivity":1.0e-6, + "features": + [ + { + "model": "oceanic plate", + "name": "sp plate", + "max depth": 150000.0, + "min depth": -100000.0, + "coordinates": [ + [ + 0.0, + -1000e3 + ], + [ + 0.0, + 1000e3 + ], + [ + 12000000.0, + 1000e3 + ], + [ + 12000000.0, + -1000e3 + ] + ], + "temperature models": [ + { + "model": "plate model", + "min depth": -10000.0, + "max depth": 150000.0, + "spreading velocity": 0.15, + "ridge coordinates": [ + [ + [ + 0, + -1000.0 + ], + [ + 0, + 1000.0 + ] + ] + ] + } + ], + "composition models": [ + { + "model": "uniform", + "min depth": -10000.0, + "max depth": 7500.0, + "compositions": [ + 0 + ] + }, + { + "model": "uniform", + "min depth": 7500.0, + "max depth": 35200.0, + "compositions": [ + 1 + ] + } + ] + }, + { + "model": "subducting plate", + "name": "initial slab", + "coordinates": [ + [ + 12000000.0, + -1000e3 + ], + [ + 12000000.0, + 1000e3 + ] + ], + "dip point": [ + 40000000.0, + 0.0 + ], + "segments": [ + { + "length": 1000000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 0, + 80 + ], + "composition models": [ + { + "model": "uniform", + "compositions": [ + 0 + ], + "max distance slab top": 7500.0 + }, + { + "model": "uniform", + "compositions": [ + 1 + ], + "min distance slab top": 7500.0, + "max distance slab top": 35200.0 + } + ] + }, + { + "length": 300000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 80, + 80 + ] + } + ], + "temperature models": [ + { + "model": "mass conserving", + "density": 3300, + "thermal conductivity": 3.3, + "adiabatic heating": true, + "spreading velocity": 0.15, + "subducting velocity": 0.1, + "ridge coordinates": [ + [ + [ + 0, + -1000.0e3 + ], + [ + 0, + 1000.0e3 + ] + ] + ], + "coupling depth": 50000.0, + "taper distance": 100000.0, + "min distance slab top": -100000.0, + "max distance slab top": 150000.0, + "reference model name": "plate model" + } + ] + } + ] +} diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1/screen-output.log b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1/screen-output.log new file mode 100644 index 00000000000..5a880c28e4e --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_advance_1/screen-output.log @@ -0,0 +1,13 @@ +# x z d T tag +8000e3 0 500e3 1953.49 -1 +8050e3 0 500e3 1953.49 -1 +8100e3 0 500e3 1953.49 -1 +8150e3 0 500e3 1953.49 -1 +8200e3 0 500e3 1953.49 -1 +8300e3 0 500e3 1953.49 -1 +7800e3 0 200e3 1780.01 -1 +7850e3 0 200e3 1780.01 -1 +7900e3 0 200e3 1780.01 -1 +7950e3 0 200e3 1780.01 -1 +8000e3 0 200e3 1780.01 -1 +8200e3 0 200e3 1780.01 -1 diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat.dat b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat.dat new file mode 100644 index 00000000000..184a1d3316d --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat.dat @@ -0,0 +1,18 @@ +# 2 profiles across a slab, one at 500 km depth +# and one at 200 km depth +# Now define parameters: +# dim = 2 +# compositions = 0 +# x z d T +8000e3 0 500e3 +8050e3 0 500e3 +8100e3 0 500e3 +8150e3 0 500e3 +8200e3 0 500e3 +8300e3 0 500e3 +7800e3 0 200e3 +7850e3 0 200e3 +7900e3 0 200e3 +7950e3 0 200e3 +8000e3 0 200e3 +8200e3 0 200e3 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat.wb b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat.wb new file mode 100644 index 00000000000..234d18cbd61 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat.wb @@ -0,0 +1,163 @@ +{ + "version":"1.0", + "coordinate system":{"model":"cartesian"}, + "gravity model":{"model":"uniform", "magnitude":10}, + "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, + "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, + "specific heat":1000, "thermal diffusivity":1.0e-6, + "features": + [ + { + "model": "oceanic plate", + "name": "sp plate", + "max depth": 150000.0, + "min depth": -100000.0, + "coordinates": [ + [ + 0.0, + -1000e3 + ], + [ + 0.0, + 1000e3 + ], + [ + 7500000.0, + 1000e3 + ], + [ + 7500000.0, + -1000e3 + ] + ], + "temperature models": [ + { + "model": "plate model", + "min depth": -10000.0, + "max depth": 150000.0, + "spreading velocity": 0.05, + "ridge coordinates": [ + [ + [ + 0, + -1000.0 + ], + [ + 0, + 1000.0 + ] + ] + ] + } + ], + "composition models": [ + { + "model": "uniform", + "min depth": -10000.0, + "max depth": 7500.0, + "compositions": [ + 0 + ] + }, + { + "model": "uniform", + "min depth": 7500.0, + "max depth": 35200.0, + "compositions": [ + 1 + ] + } + ] + }, + { + "model": "subducting plate", + "name": "initial slab", + "coordinates": [ + [ + 7500000.0, + -1000e3 + ], + [ + 7500000.0, + 1000e3 + ] + ], + "dip point": [ + 40000000.0, + 0.0 + ], + "segments": [ + { + "length": 1000000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 0, + 80 + ], + "composition models": [ + { + "model": "uniform", + "compositions": [ + 0 + ], + "max distance slab top": 7500.0 + }, + { + "model": "uniform", + "compositions": [ + 1 + ], + "min distance slab top": 7500.0, + "max distance slab top": 35200.0 + } + ] + }, + { + "length": 300000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 80, + 80 + ] + } + ], + "temperature models": [ + { + "model": "mass conserving", + "density": 3300, + "thermal conductivity": 3.3, + "adiabatic heating": true, + "spreading velocity": 0.05, + "subducting velocity": 0.1, + "ridge coordinates": [ + [ + [ + 0, + -1000.0e3 + ], + [ + 0, + 1000.0e3 + ] + ] + ], + "coupling depth": 50000.0, + "taper distance": 100000.0, + "min distance slab top": -100000.0, + "max distance slab top": 150000.0, + "reference model name": "plate model" + } + ] + } + ] +} diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat/screen-output.log b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat/screen-output.log new file mode 100644 index 00000000000..ff5bbbaeaad --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat/screen-output.log @@ -0,0 +1,13 @@ +# x z d T tag +8000e3 0 500e3 1953.49 1 +8050e3 0 500e3 1641.46 1 +8100e3 0 500e3 1319.64 1 +8150e3 0 500e3 949.56 1 +8200e3 0 500e3 1524.33 1 +8300e3 0 500e3 1953.49 -1 +7800e3 0 200e3 1480.6 1 +7850e3 0 200e3 1265.16 1 +7900e3 0 200e3 1004.25 1 +7950e3 0 200e3 703.495 1 +8000e3 0 200e3 1405.63 1 +8200e3 0 200e3 1780.01 -1 diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1.dat b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1.dat new file mode 100644 index 00000000000..184a1d3316d --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1.dat @@ -0,0 +1,18 @@ +# 2 profiles across a slab, one at 500 km depth +# and one at 200 km depth +# Now define parameters: +# dim = 2 +# compositions = 0 +# x z d T +8000e3 0 500e3 +8050e3 0 500e3 +8100e3 0 500e3 +8150e3 0 500e3 +8200e3 0 500e3 +8300e3 0 500e3 +7800e3 0 200e3 +7850e3 0 200e3 +7900e3 0 200e3 +7950e3 0 200e3 +8000e3 0 200e3 +8200e3 0 200e3 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1.wb b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1.wb new file mode 100644 index 00000000000..d71a1fe15c0 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1.wb @@ -0,0 +1,163 @@ +{ + "version":"1.0", + "coordinate system":{"model":"cartesian"}, + "gravity model":{"model":"uniform", "magnitude":10}, + "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, + "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, + "specific heat":1000, "thermal diffusivity":1.0e-6, + "features": + [ + { + "model": "oceanic plate", + "name": "sp plate", + "max depth": 150000.0, + "min depth": -100000.0, + "coordinates": [ + [ + 0.0, + -1000e3 + ], + [ + 0.0, + 1000e3 + ], + [ + 4000000.0, + 1000e3 + ], + [ + 4000000.0, + -1000e3 + ] + ], + "temperature models": [ + { + "model": "plate model", + "min depth": -10000.0, + "max depth": 150000.0, + "spreading velocity": 0.05, + "ridge coordinates": [ + [ + [ + 0, + -1000.0 + ], + [ + 0, + 1000.0 + ] + ] + ] + } + ], + "composition models": [ + { + "model": "uniform", + "min depth": -10000.0, + "max depth": 7500.0, + "compositions": [ + 0 + ] + }, + { + "model": "uniform", + "min depth": 7500.0, + "max depth": 35200.0, + "compositions": [ + 1 + ] + } + ] + }, + { + "model": "subducting plate", + "name": "initial slab", + "coordinates": [ + [ + 4000000.0, + -1000e3 + ], + [ + 4000000.0, + 1000e3 + ] + ], + "dip point": [ + 40000000.0, + 0.0 + ], + "segments": [ + { + "length": 1000000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 0, + 80 + ], + "composition models": [ + { + "model": "uniform", + "compositions": [ + 0 + ], + "max distance slab top": 7500.0 + }, + { + "model": "uniform", + "compositions": [ + 1 + ], + "min distance slab top": 7500.0, + "max distance slab top": 35200.0 + } + ] + }, + { + "length": 300000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 80, + 80 + ] + } + ], + "temperature models": [ + { + "model": "mass conserving", + "density": 3300, + "thermal conductivity": 3.3, + "adiabatic heating": true, + "spreading velocity": 0.05, + "subducting velocity": 0.1, + "ridge coordinates": [ + [ + [ + 0, + -1000.0e3 + ], + [ + 0, + 1000.0e3 + ] + ] + ], + "coupling depth": 50000.0, + "taper distance": 100000.0, + "min distance slab top": -100000.0, + "max distance slab top": 150000.0, + "reference model name": "plate model" + } + ] + } + ] +} diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1/screen-output.log b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1/screen-output.log new file mode 100644 index 00000000000..5a880c28e4e --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_retreat_1/screen-output.log @@ -0,0 +1,13 @@ +# x z d T tag +8000e3 0 500e3 1953.49 -1 +8050e3 0 500e3 1953.49 -1 +8100e3 0 500e3 1953.49 -1 +8150e3 0 500e3 1953.49 -1 +8200e3 0 500e3 1953.49 -1 +8300e3 0 500e3 1953.49 -1 +7800e3 0 200e3 1780.01 -1 +7850e3 0 200e3 1780.01 -1 +7900e3 0 200e3 1780.01 -1 +7950e3 0 200e3 1780.01 -1 +8000e3 0 200e3 1780.01 -1 +8200e3 0 200e3 1780.01 -1 diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static.dat b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static.dat new file mode 100644 index 00000000000..184a1d3316d --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static.dat @@ -0,0 +1,18 @@ +# 2 profiles across a slab, one at 500 km depth +# and one at 200 km depth +# Now define parameters: +# dim = 2 +# compositions = 0 +# x z d T +8000e3 0 500e3 +8050e3 0 500e3 +8100e3 0 500e3 +8150e3 0 500e3 +8200e3 0 500e3 +8300e3 0 500e3 +7800e3 0 200e3 +7850e3 0 200e3 +7900e3 0 200e3 +7950e3 0 200e3 +8000e3 0 200e3 +8200e3 0 200e3 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static.wb b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static.wb new file mode 100644 index 00000000000..1da08c5f405 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static.wb @@ -0,0 +1,163 @@ +{ + "version":"1.0", + "coordinate system":{"model":"cartesian"}, + "gravity model":{"model":"uniform", "magnitude":10}, + "cross section":[[0,0],[10000e3,0]],"surface temperature":273, "force surface temperature":true, + "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, + "specific heat":1000, "thermal diffusivity":1.0e-6, + "features": + [ + { + "model": "oceanic plate", + "name": "sp plate", + "max depth": 150000.0, + "min depth": -100000.0, + "coordinates": [ + [ + 0.0, + -1000e3 + ], + [ + 0.0, + 1000e3 + ], + [ + 8000000.0, + 1000e3 + ], + [ + 8000000.0, + -1000e3 + ] + ], + "temperature models": [ + { + "model": "plate model", + "min depth": -10000.0, + "max depth": 150000.0, + "spreading velocity": 0.1, + "ridge coordinates": [ + [ + [ + 0, + -1000.0 + ], + [ + 0, + 1000.0 + ] + ] + ] + } + ], + "composition models": [ + { + "model": "uniform", + "min depth": -10000.0, + "max depth": 7500.0, + "compositions": [ + 0 + ] + }, + { + "model": "uniform", + "min depth": 7500.0, + "max depth": 35200.0, + "compositions": [ + 1 + ] + } + ] + }, + { + "model": "subducting plate", + "name": "initial slab", + "coordinates": [ + [ + 8000000.0, + -1000e3 + ], + [ + 8000000.0, + 1000e3 + ] + ], + "dip point": [ + 40000000.0, + 0.0 + ], + "segments": [ + { + "length": 1000000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 0, + 80 + ], + "composition models": [ + { + "model": "uniform", + "compositions": [ + 0 + ], + "max distance slab top": 7500.0 + }, + { + "model": "uniform", + "compositions": [ + 1 + ], + "min distance slab top": 7500.0, + "max distance slab top": 35200.0 + } + ] + }, + { + "length": 300000.0, + "thickness": [ + 300000.0 + ], + "top truncation": [ + -100000.0 + ], + "angle": [ + 80, + 80 + ] + } + ], + "temperature models": [ + { + "model": "mass conserving", + "density": 3300, + "thermal conductivity": 3.3, + "adiabatic heating": true, + "spreading velocity": 0.1, + "subducting velocity": 0.1, + "ridge coordinates": [ + [ + [ + 0, + -1000.0e3 + ], + [ + 0, + 1000.0e3 + ] + ] + ], + "coupling depth": 50000.0, + "taper distance": 100000.0, + "min distance slab top": -100000.0, + "max distance slab top": 150000.0, + "reference model name": "plate model" + } + ] + } + ] +} diff --git a/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static/screen-output.log b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static/screen-output.log new file mode 100644 index 00000000000..a4d27f98ef4 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/slab_temperature_trench_static/screen-output.log @@ -0,0 +1,13 @@ +# x z d T tag +8000e3 0 500e3 1953.49 -1 +8050e3 0 500e3 1953.49 -1 +8100e3 0 500e3 1953.49 -1 +8150e3 0 500e3 1953.49 -1 +8200e3 0 500e3 1953.49 -1 +8300e3 0 500e3 1953.49 -1 +7800e3 0 200e3 1780.01 -1 +7850e3 0 200e3 1780.01 -1 +7900e3 0 200e3 1780.01 -1 +7950e3 0 200e3 1780.01 -1 +8000e3 0 200e3 1780.01 1 +8200e3 0 200e3 1780.01 1 diff --git a/contrib/world_builder/tests/gwb-dat/smooth_composition_fault.wb b/contrib/world_builder/tests/gwb-dat/smooth_composition_fault.wb index 3db416f1e97..1649c1a03c2 100644 --- a/contrib/world_builder/tests/gwb-dat/smooth_composition_fault.wb +++ b/contrib/world_builder/tests/gwb-dat/smooth_composition_fault.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system": {"model": "spherical", "depth method": "starting point"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_fault_interpolation_simple_none.wb b/contrib/world_builder/tests/gwb-dat/spherical_fault_interpolation_simple_none.wb index 7dcf1bb9493..4d21799ef48 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_fault_interpolation_simple_none.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_fault_interpolation_simple_none.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_half_space_model_ridge.wb b/contrib/world_builder/tests/gwb-dat/spherical_half_space_model_ridge.wb index e79e7ca6e91..c014da9df28 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_half_space_model_ridge.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_half_space_model_ridge.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_mc_slab_and_half_space_plate_model.wb b/contrib/world_builder/tests/gwb-dat/spherical_mc_slab_and_half_space_plate_model.wb index 76ae2b82742..8a73f5362f3 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_mc_slab_and_half_space_plate_model.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_mc_slab_and_half_space_plate_model.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"begin at end segment", "radius":665e3}, "cross section":[[0,0],[45,0]],"surface temperature":273, "force surface temperature":true, "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, @@ -21,7 +21,7 @@ {"length":700e3, "thickness":[300e3], "top truncation":[-300e3], "angle":[50,50]}, {"length":300e3, "thickness":[300e3], "top truncation":[-300e3], "angle":[50,10]}], "temperature models":[{"model":"mass conserving", "density":3300, "thermal conductivity":3.3, - "adiabatic heating":true, "plate velocity":0.03, "ridge coordinates": [[[45,-5],[45,5]]], + "adiabatic heating":true, "spreading velocity":0.03, "subducting velocity":0.03, "ridge coordinates": [[[45,-5],[45,5]]], "coupling depth":100e3, "taper distance":100e3, "min distance slab top":-300e3, "max distance slab top":300e3}] } diff --git a/contrib/world_builder/tests/gwb-dat/spherical_plate_cooling_model_ridge.wb b/contrib/world_builder/tests/gwb-dat/spherical_plate_cooling_model_ridge.wb index a9de7e1e729..4965470d2e4 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_plate_cooling_model_ridge.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_plate_cooling_model_ridge.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "coordinate system":{"model":"spherical", "depth method":"begin at end segment"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_ridge_distance_check.wb b/contrib/world_builder/tests/gwb-dat/spherical_ridge_distance_check.wb index b2a75f137a4..a325e7e6ca5 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_ridge_distance_check.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_ridge_distance_check.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"starting point"}, "gravity model":{"model":"uniform", "magnitude":10}, "surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/spherical_slab_A1.wb b/contrib/world_builder/tests/gwb-dat/spherical_slab_A1.wb index 8fddae64619..345d2cb6a10 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_slab_A1.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_slab_A1.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_slab_A2.wb b/contrib/world_builder/tests/gwb-dat/spherical_slab_A2.wb index 8fddae64619..345d2cb6a10 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_slab_A2.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_slab_A2.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_CMS.wb b/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_CMS.wb index dbf986fd4fe..5bd1f3f4589 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_CMS.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_CMS.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "interpolation":"continuous monotone spline", "features": diff --git a/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_none.wb b/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_none.wb index 8fddae64619..345d2cb6a10 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_none.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_none.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "features": [ diff --git a/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_subdiv.wb b/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_subdiv.wb index c568f9be462..d2e7f8e34d8 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_subdiv.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_slab_interpolation_simple_subdiv.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"starting point"}, "gravity model":{"model":"uniform", "magnitude":10}, "interpolation":"continuous monotone spline", diff --git a/contrib/world_builder/tests/gwb-dat/spherical_slab_plate_model.wb b/contrib/world_builder/tests/gwb-dat/spherical_slab_plate_model.wb index 1a9af19e3bf..9964ffffa8e 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_slab_plate_model.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_slab_plate_model.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical","depth method":"begin at end segment", "radius":665e3}, "cross section":[[0,0],[45,0]],"surface temperature":273, "force surface temperature":true, "potential mantle temperature":1673, "thermal expansion coefficient":3.1e-5, diff --git a/contrib/world_builder/tests/gwb-dat/spherical_variable_spreading.wb b/contrib/world_builder/tests/gwb-dat/spherical_variable_spreading.wb index 04969e0734b..8e093932694 100644 --- a/contrib/world_builder/tests/gwb-dat/spherical_variable_spreading.wb +++ b/contrib/world_builder/tests/gwb-dat/spherical_variable_spreading.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"starting point"}, "gravity model":{"model":"uniform", "magnitude":10}, "surface temperature":273, "force surface temperature":true, diff --git a/contrib/world_builder/tests/gwb-dat/testing_continent_no_coordinates.wb b/contrib/world_builder/tests/gwb-dat/testing_continent_no_coordinates.wb index 7e464458372..f8084fd9244 100644 --- a/contrib/world_builder/tests/gwb-dat/testing_continent_no_coordinates.wb +++ b/contrib/world_builder/tests/gwb-dat/testing_continent_no_coordinates.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/testing_fault_no_coordinates.wb b/contrib/world_builder/tests/gwb-dat/testing_fault_no_coordinates.wb index a21eda8ac0c..d56323d6a65 100644 --- a/contrib/world_builder/tests/gwb-dat/testing_fault_no_coordinates.wb +++ b/contrib/world_builder/tests/gwb-dat/testing_fault_no_coordinates.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/testing_mantle_layer_no_coordinates.wb b/contrib/world_builder/tests/gwb-dat/testing_mantle_layer_no_coordinates.wb index c3dadfd1980..40c3b72584a 100644 --- a/contrib/world_builder/tests/gwb-dat/testing_mantle_layer_no_coordinates.wb +++ b/contrib/world_builder/tests/gwb-dat/testing_mantle_layer_no_coordinates.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/testing_oceanic_no_coordinates.wb b/contrib/world_builder/tests/gwb-dat/testing_oceanic_no_coordinates.wb index 2b2c3d17a45..36d8ddedb6b 100644 --- a/contrib/world_builder/tests/gwb-dat/testing_oceanic_no_coordinates.wb +++ b/contrib/world_builder/tests/gwb-dat/testing_oceanic_no_coordinates.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/testing_subducting_no_coordinates.wb b/contrib/world_builder/tests/gwb-dat/testing_subducting_no_coordinates.wb index 8b57793d4a0..0a113059916 100644 --- a/contrib/world_builder/tests/gwb-dat/testing_subducting_no_coordinates.wb +++ b/contrib/world_builder/tests/gwb-dat/testing_subducting_no_coordinates.wb @@ -1,5 +1,5 @@ { -"version": "0.6", +"version": "1.0", "coordinate system":{"model":"cartesian"}, "cross section":[[100e3,100e3],[400e3,500e3]], "maximum distance between coordinates": 5, diff --git a/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate.dat b/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate.dat new file mode 100644 index 00000000000..0a66e195d8d --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate.dat @@ -0,0 +1,29 @@ +# This is a comment in the data +# file. +# Now define parameters: +# dim = 2 +# compositions = 1 +# x y d T C0 +50e3 0e3 1e3 +50e3 0e3 4e3 +50e3 0e3 8e3 +50e3 0e3 11e3 +210e3 0e3 55e3 +210e3 0e3 57.5e3 +210e3 0e3 60e3 +210e3 0e3 62.5e3 +210e3 0e3 65e3 +210e3 0e3 67.5e3 +210e3 0e3 70e3 +210e3 0e3 72.5e3 +210e3 0e3 75e3 +210e3 0e3 77.5e3 +210e3 0e3 80e3 +210e3 0e3 82.5e3 +210e3 0e3 85e3 +210e3 0e3 87.5e3 +210e3 0e3 90e3 +210e3 0e3 92.5e3 +210e3 0e3 95e3 +210e3 0e3 97.5e3 +210e3 0e3 100e3 \ No newline at end of file diff --git a/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate.wb b/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate.wb new file mode 100644 index 00000000000..372a421705a --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate.wb @@ -0,0 +1,55 @@ +{ + "version": "1.0", + "gravity model":{"model":"uniform", "magnitude":10}, + "cross section":[[0,0],[50e3,0]], + "surface temperature":273, "potential mantle temperature":1573, + "thermal expansion coefficient":3.1e-5, "specific heat":1000, "thermal diffusivity":1.0e-6, + "features": + [ + + {"model": "oceanic plate", "name": "test", + "coordinates": [[-110e3, -100e3], [-110e3, 100e3], [100e3, 100e3], [100e3, -100e3]], + "min depth":0.0, "max depth":100e3, + "composition models": [{"model":"tian water content", "compositions":[0], "min depth": 0, "max depth": 2e3, "lithology":"sediment", "initial water content":3, "cutoff pressure":1}, + {"model":"tian water content", "compositions":[0], "min depth": 2e3, "max depth": 6e3, "lithology":"MORB", "initial water content":1, "cutoff pressure":16}, + {"model":"tian water content", "compositions":[0], "min depth": 6e3, "max depth": 10e3, "lithology":"gabbro", "initial water content":0.5, "cutoff pressure":26}, + {"model":"tian water content", "compositions":[0], "min depth": 10e3, "max depth": 20e3, "lithology":"peridotite", "initial water content":2, "cutoff pressure":10}], + "temperature models": [{"model":"plate model", "bottom temperature": -1, "top temperature": 273, "max depth":100e3, "min depth": 0.0, + "ridge coordinates": [[[-500e3,-100e3],[-500e3,100e3]]], "spreading velocity": 0.05}]}, + + {"model": "oceanic plate", "name": "test", + "coordinates": [[1100e3, -100e3], [1100e3, 100e3], [100e3, 100e3], [100e3, -100e3]], + "min depth":0.0, "max depth":100e3, + "temperature models": [{"model": "plate model", "bottom temperature": -1, "top temperature": 273, "max depth":100e3, "min depth": 0.0, + "ridge coordinates": [[[1100e3,-100e3],[1100e3,100e3]]], "spreading velocity": 0.05}]}, + + {"model":"subducting plate", "name":"Slab", + + "coordinates":[[100e3,-100e3],[100e3,100e3]], + + "dip point":[1e7,0],"max depth":1000e3, + + "segments":[{"length":200e3,"thickness":[100e3],"top truncation":[-50e3],"angle":[0,85]}, + {"length":200e3,"thickness":[100e3],"top truncation":[-50e3],"angle":[85,0]}, + {"length":100e3,"thickness":[100e3],"top truncation":[-50e3],"angle":[0,90]}, + {"length":200e3,"thickness":[100e3],"top truncation":[-50e3],"angle":[90,90]}], + + "composition models":[ + {"model":"tian water content", "compositions":[0], "density":3300, "min distance slab top":0, "max distance slab top":2e3, "lithology":"sediment", "initial water content":3, "cutoff pressure":1}, + {"model":"tian water content", "compositions":[0], "density":3300, "min distance slab top":2e3, "max distance slab top":6e3, "lithology":"MORB", "initial water content":1, "cutoff pressure":16}, + {"model":"tian water content", "compositions":[0], "density":3300, "min distance slab top":6e3, "max distance slab top":10e3, "lithology":"gabbro", "initial water content":0.5, "cutoff pressure":26}, + {"model":"tian water content", "compositions":[0], "density":3300, "min distance slab top":10e3, "max distance slab top":20e3, "lithology":"peridotite", "initial water content":2, "cutoff pressure":10}], + + "temperature models":[{"model":"mass conserving", + "reference model name": "plate model", + "adiabatic heating":true, + "subducting velocity":0.05, + "spreading velocity":0.05, + "ridge coordinates":[[[-500e3,-100e3],[-500e3,100e3]]], + "coupling depth":80e3, + "forearc cooling factor":1.0, + "taper distance":0, + "min distance slab top":-200e3, "max distance slab top":300e3}] + } + ] +} diff --git a/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate/screen-output.log b/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate/screen-output.log new file mode 100644 index 00000000000..385f3c40011 --- /dev/null +++ b/contrib/world_builder/tests/gwb-dat/water_content_subducting_plate/screen-output.log @@ -0,0 +1,24 @@ +# x z d T c0 tag +50e3 0e3 1e3 312.405 3 0 +50e3 0e3 4e3 430.229 1 0 +50e3 0e3 8e3 584.338 0.5 0 +50e3 0e3 11e3 695.831 2 0 +210e3 0e3 55e3 1322.25 0 1 +210e3 0e3 57.5e3 1203.62 0.372427 1 +210e3 0e3 60e3 1034.33 0.510104 1 +210e3 0e3 62.5e3 849.688 0.689769 1 +210e3 0e3 65e3 697.68 1 1 +210e3 0e3 67.5e3 614.688 1 1 +210e3 0e3 70e3 616.639 0.5 1 +210e3 0e3 72.5e3 652.908 0.5 1 +210e3 0e3 75e3 687.783 0.5 1 +210e3 0e3 77.5e3 721.222 2 1 +210e3 0e3 80e3 753.193 2 1 +210e3 0e3 82.5e3 783.675 2 1 +210e3 0e3 85e3 812.658 2 1 +210e3 0e3 87.5e3 839.142 2 1 +210e3 0e3 90e3 863.691 2 1 +210e3 0e3 92.5e3 886.838 1.91775 1 +210e3 0e3 95e3 908.585 1.30946 1 +210e3 0e3 97.5e3 928.938 0.908444 1 +210e3 0e3 100e3 947.908 0.640881 1 diff --git a/contrib/world_builder/tests/gwb-grid/2d_cartesian_plume.wb b/contrib/world_builder/tests/gwb-grid/2d_cartesian_plume.wb index cb5f1970dec..b9c01622b57 100644 --- a/contrib/world_builder/tests/gwb-grid/2d_cartesian_plume.wb +++ b/contrib/world_builder/tests/gwb-grid/2d_cartesian_plume.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "cross section":[[0,0],[100,0]], "features": [ diff --git a/contrib/world_builder/tests/gwb-grid/3d_annulus_plume.wb b/contrib/world_builder/tests/gwb-grid/3d_annulus_plume.wb index 93a0d2c8265..badb4f9d700 100644 --- a/contrib/world_builder/tests/gwb-grid/3d_annulus_plume.wb +++ b/contrib/world_builder/tests/gwb-grid/3d_annulus_plume.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"starting point"}, "cross section":[[0,0],[10,0]], "maximum distance between coordinates":0.01, diff --git a/contrib/world_builder/tests/gwb-grid/3d_plume.wb b/contrib/world_builder/tests/gwb-grid/3d_plume.wb index 1b476e744cf..abe0cfb630b 100644 --- a/contrib/world_builder/tests/gwb-grid/3d_plume.wb +++ b/contrib/world_builder/tests/gwb-grid/3d_plume.wb @@ -6,7 +6,7 @@ // in clockwise direction from top to bottom. This rotation crosses from 360 // to zero degrees, making sure this crossover works correctly. { - "version": "0.6", + "version": "1.0", "surface temperature":273.15, "potential mantle temperature":1573.15, "features": diff --git a/contrib/world_builder/tests/gwb-grid/3d_plume_tip.wb b/contrib/world_builder/tests/gwb-grid/3d_plume_tip.wb index fecd3d54b6a..d5671873a1a 100644 --- a/contrib/world_builder/tests/gwb-grid/3d_plume_tip.wb +++ b/contrib/world_builder/tests/gwb-grid/3d_plume_tip.wb @@ -6,7 +6,7 @@ // in clockwise direction from top to bottom. This rotation crosses from 360 // to zero degrees, making sure this crossover works correctly. { - "version": "0.6", + "version": "1.0", "surface temperature":273.15, "potential mantle temperature":1573.15, "features": diff --git a/contrib/world_builder/tests/gwb-grid/3d_sphere_plume.wb b/contrib/world_builder/tests/gwb-grid/3d_sphere_plume.wb index fcf2994f3d2..02b40480103 100644 --- a/contrib/world_builder/tests/gwb-grid/3d_sphere_plume.wb +++ b/contrib/world_builder/tests/gwb-grid/3d_sphere_plume.wb @@ -8,7 +8,7 @@ // the same direction the center axis is curved, but the eccentricity stays // the same. { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"starting point"}, "cross section":[[0,0],[10,0]], "maximum distance between coordinates":0.01, diff --git a/contrib/world_builder/tests/gwb-grid/3d_spherical_plume.wb b/contrib/world_builder/tests/gwb-grid/3d_spherical_plume.wb index 88e78b876a4..1be2f3ec324 100644 --- a/contrib/world_builder/tests/gwb-grid/3d_spherical_plume.wb +++ b/contrib/world_builder/tests/gwb-grid/3d_spherical_plume.wb @@ -8,7 +8,7 @@ // the same direction the center axis is curved, but the eccentricity stays // the same. { - "version": "0.6", + "version": "1.0", "coordinate system":{"model":"spherical", "depth method":"starting point"}, "cross section":[[0,0],[10,0]], "maximum distance between coordinates":0.01, diff --git a/contrib/world_builder/tests/gwb-grid/composition_operations.wb b/contrib/world_builder/tests/gwb-grid/composition_operations.wb index d630f416feb..94e8a992450 100644 --- a/contrib/world_builder/tests/gwb-grid/composition_operations.wb +++ b/contrib/world_builder/tests/gwb-grid/composition_operations.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/gwb-grid/continental_plate_composition_random.wb b/contrib/world_builder/tests/gwb-grid/continental_plate_composition_random.wb index fe96baa646d..4ff3597de5a 100644 --- a/contrib/world_builder/tests/gwb-grid/continental_plate_composition_random.wb +++ b/contrib/world_builder/tests/gwb-grid/continental_plate_composition_random.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/gwb-grid/fault.wb b/contrib/world_builder/tests/gwb-grid/fault.wb index ea64beb1349..83cc3dfa2cb 100644 --- a/contrib/world_builder/tests/gwb-grid/fault.wb +++ b/contrib/world_builder/tests/gwb-grid/fault.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/gwb-grid/fault_edge_limits.wb b/contrib/world_builder/tests/gwb-grid/fault_edge_limits.wb index 355634277eb..d7700110fb3 100644 --- a/contrib/world_builder/tests/gwb-grid/fault_edge_limits.wb +++ b/contrib/world_builder/tests/gwb-grid/fault_edge_limits.wb @@ -1,5 +1,5 @@ { - "version":"0.6", + "version":"1.0", "features": [ diff --git a/contrib/world_builder/tests/gwb-grid/spherical_grid_fault.json b/contrib/world_builder/tests/gwb-grid/spherical_grid_fault.json index 76f7a59bc44..6f73e7285f6 100644 --- a/contrib/world_builder/tests/gwb-grid/spherical_grid_fault.json +++ b/contrib/world_builder/tests/gwb-grid/spherical_grid_fault.json @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "interpolation": "continuous monotone spline", "coordinate system": {"model": "spherical", "depth method": "starting point"}, "features": [{ "model": "fault", diff --git a/contrib/world_builder/tests/gwb-grid/subducting_plate_composition_smooth.wb b/contrib/world_builder/tests/gwb-grid/subducting_plate_composition_smooth.wb index d7ca52ff017..83b4541a5db 100644 --- a/contrib/world_builder/tests/gwb-grid/subducting_plate_composition_smooth.wb +++ b/contrib/world_builder/tests/gwb-grid/subducting_plate_composition_smooth.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/gwb-grid/subducting_plate_manual3.wb b/contrib/world_builder/tests/gwb-grid/subducting_plate_manual3.wb index f77b413f23e..f5afae18570 100644 --- a/contrib/world_builder/tests/gwb-grid/subducting_plate_manual3.wb +++ b/contrib/world_builder/tests/gwb-grid/subducting_plate_manual3.wb @@ -1,5 +1,5 @@ { - "version": "0.6", + "version": "1.0", "gravity model":{"model":"uniform", "magnitude":10}, "cross section":[[0,50e3],[50e3,0]], "features": diff --git a/contrib/world_builder/tests/python/run_python_tests.cmake b/contrib/world_builder/tests/python/run_python_tests.cmake index 999e9e1c6d3..8e6dc793e3d 100644 --- a/contrib/world_builder/tests/python/run_python_tests.cmake +++ b/contrib/world_builder/tests/python/run_python_tests.cmake @@ -20,7 +20,7 @@ set(EXECUTE_COMMAND ${TEST_PROGRAM} ${TEST_ARGS}) # run the test program, capture the stdout/stderr and the result var ${TEST_ARGS} execute_process( COMMAND ${TEST_PROGRAM} ${TEST_ARGS} -i ${TEST_INPUT} - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/fortran/ + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python/ OUTPUT_FILE ${TEST_OUTPUT} ERROR_VARIABLE TEST_ERROR_VAR RESULT_VARIABLE TEST_RESULT_VAR @@ -29,7 +29,7 @@ execute_process( # if the return value is !=0 bail out if( TEST_RESULT_VAR ) - message( FATAL_ERROR "Failed: Test program ${TEST_PROGRAM} exited != 0.\n Test args where: ${TEST_ARGS}\n${TEST_ERROR_VAR} \n The test outpup was: \n ${TEST_OUTPUT_VAR}" ) + message( FATAL_ERROR "Failed: Test program ${TEST_PROGRAM} exited != 0 (${TEST_RESULT_VAR}).\n Test args where: ${TEST_ARGS}\n${TEST_ERROR_VAR} \n The test outpup was: \n ${TEST_OUTPUT_VAR}" ) endif( TEST_RESULT_VAR ) if( !TEST_NO_DIFF ) diff --git a/contrib/world_builder/tests/unit_tests/approval_tests/approved/unit_test_world_builder.WorldBuilder_Utilities_function__calculate_effective_trench_and_plate_ages.txt b/contrib/world_builder/tests/unit_tests/approval_tests/approved/unit_test_world_builder.WorldBuilder_Utilities_function__calculate_effective_trench_and_plate_ages.txt new file mode 100644 index 00000000000..766860dcadb --- /dev/null +++ b/contrib/world_builder/tests/unit_tests/approval_tests/approved/unit_test_world_builder.WorldBuilder_Utilities_function__calculate_effective_trench_and_plate_ages.txt @@ -0,0 +1,8 @@ +TITLE + + +[0] = 6.96779e+07 +[1] = 1.36348e+08 +[2] = 1.03013e+08 +[3] = 1.36348e+08 + diff --git a/contrib/world_builder/tests/unit_tests/unit_test_world_builder.cc b/contrib/world_builder/tests/unit_tests/unit_test_world_builder.cc index c3fe430775a..a8d7aa44fb3 100644 --- a/contrib/world_builder/tests/unit_tests/unit_test_world_builder.cc +++ b/contrib/world_builder/tests/unit_tests/unit_test_world_builder.cc @@ -890,7 +890,7 @@ TEST_CASE("WorldBuilder World random") approval_tests.emplace_back(dist(world1.get_random_number_engine())); approval_tests.emplace_back(dist(world1.get_random_number_engine())); - // test whether the seed indeed changes the resuls + // test whether the seed indeed changes the results WorldBuilder::World world2(file_name, false, "", 2); approval_tests.emplace_back(world2.get_random_number_engine()()); approval_tests.emplace_back(world2.get_random_number_engine()()); diff --git a/contrib/world_builder/tests/unit_tests/utilities.cc b/contrib/world_builder/tests/unit_tests/utilities.cc new file mode 100644 index 00000000000..670cb86bf6c --- /dev/null +++ b/contrib/world_builder/tests/unit_tests/utilities.cc @@ -0,0 +1,96 @@ +/* + Copyright (C) 2021 by the authors of the World Builder code. + + This file is part of the World Builder. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published + by the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . + */ + +#define DOCTEST_CONFIG_SUPER_FAST_ASSERTS + +#include "doctest/doctest.h" + +#include "world_builder/utilities.h" + +using namespace WorldBuilder; +using doctest::Approx; + + +TEST_CASE("multiply 3x3 matrices") +{ + std::array,3> mat1 = {{{{1,2,3}},{{4,5,6}},{{7,8,9}}}}; + std::array,3> mat2 = {{{{9,8,7}},{{6,5,4}},{{3,2,1}}}}; + std::array,3> mat3 = {{{{0.1,10,-7}},{{4,-0.5,9}},{{-9,0.3,-5}}}}; + std::array,3> result1 = {{{{30,24,18}},{{84,69,54}},{{138,114,90}}}}; //mat1*mat2 + std::array,3> result2 = {{{{90,114,138}},{{54,69,84}},{{18,24,30}}}}; //mat2*mat1 + std::array,3> result3 = {{{{-18.9,9.9,-4}},{{-33.6,39.3,-13}},{{-48.3,68.7,-22}}}}; //mat1*mat3 + std::array,3> result4 = {{{{-8.9,-5.8,-2.7}},{{65,77.5,90}},{{-42.8,-56.5,-70.2}}}}; //mat3*mat1 + std::array,3> result5 = {{{{-30.1,88.1,-26}},{{-15.4,58.7,-17}},{{-0.7,29.3,-8}}}}; //mat2*mat3 + std::array,3> result6 = {{{{39.9,36.8,33.7}},{{60,47.5,35}},{{-94.2,-80.5,-66.8}}}}; //mat3*mat2 + + std::array,3> result7 = Utilities::multiply_3x3_matrices(mat1, mat2); + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + CHECK(result1[i][j] == Approx(result7[i][j])); + } + } + + std::array,3> result8 = Utilities::multiply_3x3_matrices(mat2, mat1); + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + CHECK(result2[i][j] == Approx(result8[i][j])); + } + } + + std::array,3> result9 = Utilities::multiply_3x3_matrices(mat1, mat3); + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + CHECK(result3[i][j] == Approx(result9[i][j])); + } + } + + std::array,3> result10 = Utilities::multiply_3x3_matrices(mat3, mat1); + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + CHECK(result4[i][j] == Approx(result10[i][j])); + } + } + + std::array,3> result11 = Utilities::multiply_3x3_matrices(mat2, mat3); + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + CHECK(result5[i][j] == Approx(result11[i][j])); + } + } + + std::array,3> result12 = Utilities::multiply_3x3_matrices(mat3, mat2); + for (size_t i = 0; i < 3; i++) + { + for (size_t j = 0; j < 3; j++) + { + CHECK(result6[i][j] == Approx(result12[i][j])); + } + } + +} \ No newline at end of file