rsseismic.SoilLayer module#

class rsseismic.SoilLayer.SoilLayer(client: Client, modelId: str, layerId: str)#

Bases: _ProxyObject, SoilLayerPropertiesMixin

Read and edit properties for one soil layer on a profile.

Obtain an instance from model.Profiles.getSoilLayer(layerId). Layer IDs come from model.Profiles.listSoilLayers() or listActiveSoilLayers().

Use the generated get* / set* helpers for scalar layer properties such as thickness, unit weight, and soil model. Reference curves are edited through layer.ReferenceCurve; fitted dynamics and curve fitting use layer.Curve. Use createElementTestLayer() to open a Single Element Test working copy that does not modify this profile layer.

property layerId: str#
createElementTestLayer(profileName: str = '') → ElementTestLayer#

Create a Single Element Test working copy of this soil layer.

The working copy starts from the current layer properties. Edits and runs on the returned ElementTestLayer do not change this profile layer. Single Element Test requires Nonlinear analysis with the Lumped Mass solver and is not available for mean-profile layers.

Parameters:

profileName – Profile that owns this layer. Leave empty to use the active profile.

Returns:

An ElementTestLayer you can configure, run, and close. Prefer a with block so the working copy is released when you are done.