Skip to content

pTatin ​

We provide a few routines that allow exporting GMG input data sets to a format that can be read by the 3D geodynamic modelling software pTatin, which is an open-source Cartesian code to perform crustal and lithospheric-scale simulations.

The Q1Data format can be saved directly to pTatin.

GeophysicalModelGenerator.write_pTatin_mesh Function
julia
write_pTatin_mesh(fe_mesh::FEData; out_file="md.bin", connectivity_zero_based=true)

Write a binary file with the mesh information for pTatin, and one file per field (<name>_cell.bin, <name>_vertex.bin) in the same directory as out_file.

source
julia
write_pTatin_mesh(q1_mesh::Q1Data; out_file="md.bin", connectivity_zero_based=true)

Write a binary file with the mesh information for pTatin, and one file per field in the same directory as out_file.

source
GeophysicalModelGenerator.swap_yz_dims Function
julia
fe_swap = swap_yz_dims(fe_data::FEData)

This swaps the y and z dimensions of the FEData object, which is useful for pTatin as it uses y for what is z in GMG.

Swapping two axes mirrors the mesh, so the vertices of each cell are reordered to keep the cells' orientation. This is supported for 3D tetrahedra and for 3D hexahedra whose vertices are numbered lexicographically (x fastest, then y, then z), as convert2FEData does.

source