fname = "vel_z6.25m_x12.5m_gy" # Bounding box describing domain extents (corner coordinates) bbox = ( - 12000.0, 0.0, 0.0, 67000.0 ) # Desired minimum mesh size in domain hmin = 75.0 rectangle = Rectangle ( bbox ) # Construct mesh sizing object from velocity model ef = get_sizing_function_from_segy ( fname, bbox, hmin = hmin, wl = 10, freq = 2, dt = 0.001, grade = 0.15, domain_pad = 1e3, pad_style = "edge", ) points, cells = generate_mesh ( domain = rectangle, edge_length = ef ) if comm. """ # Name of SEG-Y file containg velocity model. COMM_WORLD """ Build a mesh of the BP2004 benchmark velocity model in serial or parallel Takes roughly 1 minute with 2 processors and less than 1 GB of RAM. Seismic velocity model and then you must uncompress it (e.g., gunzip).įrom mpi4py import MPI import meshio from SeismicMesh import get_sizing_function_from_segy, generate_mesh, Rectangle comm = MPI. WARNING: To run the code snippet below you must download the 2D BP2004 The user can quickly build quality 2D/3D meshes from seismic velocity I'll try to get to it as soon as possible. If something isn't working as it should or you'd like to recommend a new addition/feature to the software, please let me know by starting an issue through the issues tab. You may use the following BibTeX entry: = Write good commit and pull request messages.Add Python docstrings that follow the Sphinx.Some things that will increase the chance that your pull request is accepted: Clone the forked repository, add your contributions and push the changes to your fork.īefore creating the pull request, make sure that the tests pass by running tox.( pypi), so with: pip install -U SeismicMeshįor more detailed information about installation and requirements see: Table of contentsįor installation, SeismicMesh needs CGAL: sudo apt install libcgal-devĪfter that, SeismicMesh can be installed from the Python Package Index SeismicMesh is distributed under the GP元 license and more details can be found in our short paper. SeismicMesh can also produce mesh-density functions from seismological data to be used in the mesh generator. For increased efficiency, the core package is written in C++, works in parallel, and uses the Computational Geometry Algorithms Library. As an implementation of DistMesh, it produces high-geometric quality meshes at the expense of speed. SeismicMesh is a Python package for simplex mesh generation in two or three dimensions. SeismicMesh: Triangular Mesh generation in Python Create high-quality, simulation-ready 2D/3D meshes.
0 Comments
Leave a Reply. |