Skip to content

Liquid Layers with Vs = 0 #208

@TingweiCode

Description

@TingweiCode

If a model contains a layer with Vs = 0 (for example, a water or ocean layer), PyGRT will raise an error by default:

[grt] Error! In model file, line 1, Vs==0.0 is not supported.

To enable support for liquid layers, you must explicitly allow them by setting the allowLiquid=True parameter when creating the model:

pymod = pygrt.PyModel1D(model, 2.0, 0.0, allowLiquid=True)

This option instructs PyGRT to treat layers with zero shear-wave velocity as liquid media rather than invalid model entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions