Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to refine meshes used in output to better capture higher order discretization #798

Merged
merged 18 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
c61154f
FIX: Use arm64 architecture for macOS VSCode C/C++ settings.
baagaard-usgs Oct 18, 2024
2a9d67b
FIX: Fix adding additional command line arguments to gmsh_utils.Gener…
baagaard-usgs Aug 21, 2024
413d105
Cleanup comment.
baagaard-usgs Jan 11, 2025
3bf89f5
Add RefineInterpolator object for interpolating field to refined mesh.
baagaard-usgs Aug 21, 2024
27a97f7
Updates for changes to OutputSubfield API (getDM -> getOutputDM; getV…
baagaard-usgs Aug 23, 2024
5a4f351
Use empty default argument for Mesh::setDM() instead of "domain".
baagaard-usgs Aug 23, 2024
3815917
Move change in basis order from projection to loweest interpolation l…
baagaard-usgs Aug 23, 2024
3743fef
Upate OutputSoln to allow refinement of output.
baagaard-usgs Aug 26, 2024
5c699ec
Update meshio unit test data for setting DM label.
baagaard-usgs Aug 26, 2024
201c90c
Fix ordering of input vector for interpolation to refined meshes and …
baagaard-usgs Aug 26, 2024
0393473
Add some additional internal error checking for refining output.
baagaard-usgs Jan 8, 2025
431efc5
Adjust code to work for refining output for domain.
baagaard-usgs Jan 8, 2025
3a1621a
Update examples/strikeslip-2d for better slip distribution and refini…
baagaard-usgs Oct 18, 2024
c5d609c
DOCS: Update component information for OutputObserver classes.
baagaard-usgs Oct 18, 2024
d69f51a
DOCS: Update examples/strikeslip-2d for better slip distribution and …
baagaard-usgs Oct 18, 2024
71959b4
DOCS: Add discussion of refining output to OutputObservers.
baagaard-usgs Oct 18, 2024
4d283db
Update list of changes.
baagaard-usgs Oct 18, 2024
e4aa7e1
Update full-scale test to include refining output.
baagaard-usgs Jan 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "macos-clang-x64"
"intelliSenseMode": "macos-clang-arm64"
},
{
"name": "linux-gcc",
Expand Down
9 changes: 6 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ The version numbers are in the form `MAJOR.MINOR.PATCH`, where major releases in

## Version 4.2.0

* **Changed**
* Updated `examples/strikeslip-2d` Steps 4-7 to use a more realistic slip distribution and mesh refinement in output.
* Updated to PETSc 3.22.0
* Switch CI from Azure Pipelines to GitHub Actions.
* **Added**
* Default filenames for progress monitor and parameters file are set from the simulation name like
the other output files.
* Consistency check for material properties and scales used in nondimensionalization (currently just the shear modulus).
* Add section to User Guide on troubleshooting solver issues.
* **Changed**
* Switch CI from Azure Pipelines to GitHub Actions.
* Allow output on a finer resolution mesh than used in the simulation to facilitate accurate representation of fields with a basis order of 2 or greater.
* **Fixed**
* Fix inconsistency in normal direction on fault surfaces. Orientation was correct but direction was flipped at some locations. This affected local slip direction and the resulting deformation close to the fault. This bug fix was not in version 4.1.3.
* Update autoconf macros for numpy for compatibility with location of include files in numpy version 2.x.
* Update autoconf numpy macros for compatibility with location of include files in numpy version 2.x.

## Version 4.1.3 (2024/07/31)

Expand Down
14 changes: 8 additions & 6 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,15 @@ dist_noinst_DATA = \
user/examples/strikeslip-2d/figs/step04-solution.jpg \
user/examples/strikeslip-2d/figs/step05-diagram.pdf \
user/examples/strikeslip-2d/figs/step05-diagram.svg \
user/examples/strikeslip-2d/figs/step05_greensfns-impulses.pdf \
user/examples/strikeslip-2d/figs/step05_greensfns-impulses.svg \
user/examples/strikeslip-2d/figs/step05-solution.jpg \
user/examples/strikeslip-2d/figs/step06-solution.pdf \
user/examples/strikeslip-2d/figs/step06-solution.svg \
user/examples/strikeslip-2d/figs/step07a-solution.pdf \
user/examples/strikeslip-2d/figs/step07a-solution.svg \
user/examples/strikeslip-2d/figs/step07b-solution.pdf \
user/examples/strikeslip-2d/figs/step07b-solution.svg \
user/examples/strikeslip-2d/figs/step06_inversion-results.pdf \
user/examples/strikeslip-2d/figs/step06_inversion-results.svg \
user/examples/strikeslip-2d/figs/step07a_catmip-results.pdf \
user/examples/strikeslip-2d/figs/step07a_catmip-results.svg \
user/examples/strikeslip-2d/figs/step07b_cfcatmip-results.pdf \
user/examples/strikeslip-2d/figs/step07b_cfcatmip-results.svg \
user/examples/subduction-2d/index.md \
user/examples/subduction-2d/common-information.md \
user/examples/subduction-2d/exercises.md \
Expand Down
4 changes: 4 additions & 0 deletions docs/user/components/meshio/OutputObserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ Abstract base class for managing output of solution information.
- **default value**: 1
- **current value**: 1, from {default}
- **validator**: (in [0, 1])
* `refine_levels`=\<int\>: Number of mesh refinement levels for output.
- **default value**: 0
- **current value**: 0, from {default}
- **validator**: (greater than or equal to 0)

4 changes: 4 additions & 0 deletions docs/user/components/meshio/OutputPhysics.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Implements `OutputObserver`.
- **default value**: 1
- **current value**: 1, from {default}
- **validator**: (in [0, 1])
* `refine_levels`=\<int\>: Number of mesh refinement levels for output.
- **default value**: 0
- **current value**: 0, from {default}
- **validator**: (greater than or equal to 0)

## Example

Expand Down
4 changes: 4 additions & 0 deletions docs/user/components/meshio/OutputSoln.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ Implements `OutputObserver`.
- **default value**: 1
- **current value**: 1, from {default}
- **validator**: (in [0, 1])
* `refine_levels`=\<int\>: Number of mesh refinement levels for output.
- **default value**: 0
- **current value**: 0, from {default}
- **validator**: (greater than or equal to 0)

6 changes: 5 additions & 1 deletion docs/user/components/meshio/OutputSolnBoundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ Implements `OutputSoln`.
* `label`=\<str\>: Name of label identifier for external boundary.
- **default value**: ''
- **current value**: '', from {default}
- **validator**: <function validateLabel at 0x11f366af0>
- **validator**: <function validateLabel at 0x10816d800>
* `label_value`=\<int\>: Value of label identifier for external boundary (tag of physical group in Gmsh files).
- **default value**: 1
- **current value**: 1, from {default}
* `output_basis_order`=\<int\>: Basis order for output.
- **default value**: 1
- **current value**: 1, from {default}
- **validator**: (in [0, 1])
* `refine_levels`=\<int\>: Number of mesh refinement levels for output.
- **default value**: 0
- **current value**: 0, from {default}
- **validator**: (greater than or equal to 0)

## Example

Expand Down
4 changes: 4 additions & 0 deletions docs/user/components/meshio/OutputSolnDomain.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Implements `OutputSoln`.
- **default value**: 1
- **current value**: 1, from {default}
- **validator**: (in [0, 1])
* `refine_levels`=\<int\>: Number of mesh refinement levels for output.
- **default value**: 0
- **current value**: 0, from {default}
- **validator**: (greater than or equal to 0)

## Example

Expand Down
4 changes: 4 additions & 0 deletions docs/user/components/meshio/OutputSolnPoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Implements `OutputSoln`.
- **default value**: 1
- **current value**: 1, from {default}
- **validator**: (in [0, 1])
* `refine_levels`=\<int\>: Number of mesh refinement levels for output.
- **default value**: 0
- **current value**: 0, from {default}
- **validator**: (greater than or equal to 0)

## Example

Expand Down
Binary file modified docs/user/examples/strikeslip-2d/figs/step04-slip.pdf
Binary file not shown.
Loading
Loading