Skip to content

Commit ee2e326

Browse files
Merge pull request #817 from baagaard-usgs/feature-vtu-output-format
Switch VTK output from legacy ASCII to VTU/XML
2 parents 0ebc2a1 + ae63212 commit ee2e326

File tree

135 files changed

+231
-4016
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+231
-4016
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ The version numbers are in the form `MAJOR.MINOR.PATCH`, where major releases in
88
## Version 5.0.0
99

1010
* **Changed**
11+
* Use the VTU (XML) format for VTK files instead of the legacy ASCII format.
1112
* Update PETSc to 3.22.3
13+
* **Added**
14+
* Improve documentation for pylith_eqinfo and illustrate its use in examples.
1215

1316
## Version 4.2.0
1417

docs/developer/testing/debugging-tools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ caption: Printing PETsc and PyLith objects (same for gdb and lldb)
103103
# "::ascii_info_detail" - ASCII to stdout
104104
# ":mesh.txt:ascii_info_detail" - ASCII to mesh.txt
105105
# ":mesh.tex:ascii_latex" - LaTeX to mesh.tex
106-
# ":mesh.vtk:ascii_vtk" - VTK to mesh.vtk
106+
# "vtk:mesh.vtu:vtk_vtu" - VTK to mesh.vtu
107107
(gdb) call mesh.view("::ascii_info_detail")
108108
109109
# Print PyLith field "field"

docs/intro/development-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This version will include a few very minor changes to the public API.
3030

3131
* Specify boundary conditions using faces instead of vertices ![expert](images/intermediate.png) [75%]
3232
* Parallel mesh loading ![expert](images/expert.png) [85%]
33+
* Update VTK output to use `vtu` files rather than legacy `vtk` files ![easy](images/easy.png) [100%]
3334

3435
## Version 5.1 (June 2025)
3536

@@ -49,7 +50,6 @@ This version will include major changes to the public API associated with the sw
4950
* Add support for GeoModelGrids implementation of spatial databases for 3D seismic velocity models. ![intermediate](images/intermediate.png) [0%]
5051
* Update to current version of Pyre ![difficult](images/difficult.png)
5152
* Migrate examples to Jupyter notebooks ![intermediate](images/intermediate.png)
52-
* Update VTK output to use `vtu` files rather than legacy `vtk` files ![easy](images/easy.png) [0%]
5353
* Improve robustness of HDF5 output by opening/closing at each time step ![easy](images/easy.png)[0%]
5454
* Improve creation of auxiliary, diagnostic, and derived fields.
5555
* More flexible specification of time-dependent boundary conditions. ![difficult](images/difficult.png) [0%]

docs/intro/preface.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Preface
22

3-
This documentation is aimed at two categories of users: (1) scientists who prefer to use prepackaged and specialized analysis tools, and (2) experienced computational Earth scientists.
4-
If you want to modify the source code, you will likely need to be familiar with object-oriented programming, Python and C++, and finite-element analysis.
3+
This documentation targets two categories of users: (1) scientists who prefer to use prepackaged and specialized analysis tools, and (2) experienced computational Earth scientists.
4+
If you want to modify the source code, it is helpful to be familiar with object-oriented programming, Python and C++, and finite-element analysis.
55

66
## Citation
77

8-
The Computational Infrastructure for Geodynamics (CIG) ([geodynamics.org](https://geodynamics.org/)) is making this software and source code available to you at no cost in hopes that the software will enhance your research in geophysics.
8+
The Computational Infrastructure for Geodynamics (CIG) ([geodynamics.org](https://geodynamics.org/)) makes this software and source code available to you at no cost in hopes that the software will enhance your research in geophysics.
99
A number of individuals have contributed a significant portion of their careers toward the development of this software.
1010
It is essential that you recognize these individuals in the normal scientific practice by citing the appropriate software release and peer-reviewed papers as well as making appropriate acknowledgments in talks and publications.
1111
The preferred way to generate the list of publications (in BibTeX format) to cite is to run your simulations with the `--include-citations` command line argument, or equivalently, the `--petsc.citations` command line argument.
@@ -25,19 +25,17 @@ To cite the software and manual, use:
2525

2626
Open research statements are now a common requirement when publishing research.
2727
These support reuse, validation, and citation and often take the form of *Data availability*, *Data access*, *Code availability*, *Open Research*, and *Software* availability statements.
28-
We recommend depositing input files that allow your published research to be reproduced and output model data in support of your research outcomes and figures.
29-
In addition, consider depositing model files that may be reused by others.
30-
31-
Remember to cite software and data in your text as well as in your *Data availability* or similar statement.
32-
28+
We recommend including all input files to allow your published research to be reproduced and output model data to support your research outcomes and figures.
29+
In addition, consider including model files that may be useful to others.
3330
Files should be deposited in an approved repository.
3431

35-
Additional information on [*Publishing*](https://geodynamics.org/software/software-bp/software-publishing) and repositories are available on the CIG website.
32+
Remember to cite software and data in your text as well as in your *Data availability* or similar statement.
33+
Additional information on [*Publishing*](https://geodynamics.org/software/software-bp/software-publishing) and repositories is available on the CIG website.
3634

3735
### Files
3836

39-
Common input files include `.cfg`, , `.spatialdb`, and mesh files `.exo`, `.msh`, or `mesh`.
40-
Common output files include the solution fields and state variables as `.h5`, `.xmf`, `vtk`, and `vtu`..
37+
Common input files include `.cfg`, `.spatialdb`, and `.exo`, `.msh`, or `mesh` mesh files.
38+
Common output files include the solution fields and state variables in `.h5`, `.xmf`, and `vtu` files.
4139

4240
### Example Statement
4341

docs/user/problems/output.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,16 @@ This is very useful if you add fields to HDF5 files in post-processing and wish
216216
(sec-user-data-writer-vtk)=
217217
### VTK Output
218218

219-
PyLith writes legacy (non-XML) VTK files.
220-
These are simple files with vertex coordinates, the mesh topology, and fields over vertices and/or
221-
cells.
219+
PyLith writes VTU files for VTK output, which are in the XML format.
220+
The XML files contain metadata in XML tags and raw data for the vertex coordinates, mesh topology, and fields over vertices and/or cells.
222221
Each time step is written to a different file.
223222
The time stamp is included in the filename with the decimal point removed.
224223
This allows automatic generation of animations with many visualization packages that use VTK files.
225224
The default time stamp is the time in seconds, but this can be changed using the normalization constant to give a time stamp in years, tens of years, or any other value.
226225

227226
:::{warning}
228-
We strongly discourage use of using VTK output.
229-
It is slow, inefficient, and not easily read from post-processing scripts.
230-
We strongly recommwnd using HDF5 output instead, which is the default starting in PyLith v3.0.0.
227+
We discourage use of the VTK output as the files are not easily read from post-processing scripts.
228+
We strongly recommend using HDF5 output instead, which is the default starting in PyLith v3.0.0.
231229
:::
232230

233231
:::{seealso}
-176 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)