Skip to content

Rotated Two-Pile Bent

This example applies the same base motion to four configurations of a two-pile aluminum bent. The bent's plan orientation rotates relative to the shaking direction, and the assigned pile yield strength also follows the thesis validation cases. It therefore compares those four configurations, not the isolated effect of rotation. All four cases share one Femora workflow.

The bent assembly is rotated about the vertical axis to four angles: 0 deg (aligned along the global-x shaking direction), 30 deg, 60 deg, and 90 deg (oriented transversely to shaking). The input motion stays in global x. Each orientation is solved concurrently as an independent remote case within a single Femora workflow.

Model

Rotated two-pile bent geometry schematic

The domain is a 30 m by 30 m soil block extending 28 m deep. Standard brick elements (stdBrick) use 1 m horizontal spacing. Vertically, the mesh has 7 elements from -28 to -14.3 m, 13 from -14.3 to -1 m, and one from -1 to 0 m. All three parts use a drained, pressure-dependent multi-yield soil material. The boundaries enforce laminar shear-box kinematic constraints along depth, simulating a physical shaking box rather than an infinite domain with absorbing boundaries. This is a drained solid-element model, not a coupled pore-pressure or liquefaction analysis. OpenSees material reference.

The structure consists of:

  • Hollow circular aluminum piles: Two vertical piles extending from \(z = -14.3\text{ m}\) to \(z = +5.6\text{ m}\) (\(19.9\text{ m}\) total length, discretized into 27 displacement-based beam-column elements: 19 in the soil, six above ground, and two inside the cap). The section is modeled using a fiber discretization with aluminum properties (\(E = 68.9\text{ GPa}\), \(\nu = 0.33\)), outer radius \(r_o = 0.4953\text{ m}\), and inner radius \(r_i = 0.449072\text{ m}\). The validation configuration uses \(F_y = 255\text{ MPa}\) at 0 and 90 degrees, and \(130\text{ MPa}\) at 30 and 60 degrees. Thus the four responses differ in both orientation and assigned strength, not orientation alone. In the reference configuration, piles are centered at \(x = \pm 3.809\text{ m}\), \(y = 0\).
  • Solid aluminum cap: A solid 3D brick mesh (\(11.44\text{ m} \times 6.24\text{ m} \times 3.38\text{ m}\), from \(z = 3.9\text{ m}\) to \(z = 7.28\text{ m}\)) rather than a 1D line beam. The cap provides distributed structural mass and stiffness directly through its solid continuum elements. Its density is \(2700\text{ kg/m}^3\); its brick mass matrix is lumped, with no separate point mass added. Buried pile segments use \(2700\text{ kg/m}^3\); segments above grade use an effective line mass of \(909\text{ kg/m}\). The pile beam elements use a PDelta geometric transformation.
  • Embedded beam-solid interfaces: The two piles couple to soil below \(z=-1\text{ m}\) and separately to the cap. The upper 1 m of soil remains in the model but is intentionally not coupled to the piles, representing an approximately one-diameter free length below grade. This is a zero-transfer idealization, not a gap-contact law that can re-engage.

The soil has frequency-based Rayleigh damping calibrated to 5% at 0.2 and 20 Hz, and the pile/cap region uses a 7% Uniform damping object over 2.2-15 Hz. These are prescribed model parameters, not values calibrated by this example.

Interface Sampling Radius vs. Physical Outer Radius

The physical pile outer radius is \(0.4953\text{ m}\), while the interface sampling radius follows the thesis value \(1.181 / 2 = 0.5905\text{ m}\). The larger sampling radius is intentional and must not be interpreted as the pile's structural section radius.

SI Unit Conversions

All input parameters are converted to consistent SI units (\(\text{m}\), \(\text{N}\), \(\text{kg}\), \(\text{s}\)). The soil reference shear modulus is \(G = 1.0 \times 10^8\text{ Pa}\) and bulk modulus is \(K = 3.0 \times 10^8\text{ Pa}\) at a reference mean stress \(p'_r = 80\text{ kPa}\) (with atmospheric pressure \(p_a \approx 101\text{ kPa}\)). The pressure threshold liquefac1 is 5,000 Pa and pa is 101,000 Pa. Pressure-valued defaults must use the same units as the moduli.

Base Excitation and Analysis Stages

The model uses a prescribed global-\(x\) base acceleration from the input record CFG2_ax_base_02g_avg.acc (4,096 samples at \(\Delta t = 0.0127\text{ s}\)). Scaled by \(+9.81\text{ m/s}^2\), the record has an actual peak base acceleration of approximately \(0.286\text{ g}\), not exactly 0.2 g despite its filename. Event and processing metadata are not supplied, so we do not assign this record an earthquake name.

The numerical solution proceeds through three consecutive stages:

  1. Elastic gravity settling: 100 steps (\(\Delta t = 1.0\text{ s}\)) with soil materials set to their linear elastic stage and numerical Newmark damping (\(\gamma = 0.6\), \(\beta = 0.3025\)).
  2. Plastic gravity settling: 500 steps with time increments ramping from 0.001 to 0.1 s, with soil switched to its elastoplastic stage.
  3. Dynamic excitation: Pseudo-time is reset to \(0.0\text{ s}\) while preserving accumulated stresses and strains, after which the 50 s dynamic base motion is applied using explicit differences at \(\Delta t=4\times10^{-5}\text{ s}\).

The gravity state is retained, but the specified settling steps alone do not prove equilibrium. Check residual motion and convergence before interpreting the shaking response. Gravity permits up to ten same-step retries, without subdivision; a failed dynamic step stops the job rather than silently continuing.

Recorded displacements under uniform base excitation represent motion relative to the moving base. Raw histories retain the initial offset from gravity settlement. They are not absolute ground-plus-structure motion. OpenSees uniform excitation reference.

Model Construction

The tabs below present the core model construction blocks from rotated_two_pile_bent.py.

Construct the three soil mesh parts using standard brick elements and one pressure-dependent multi-yield material throughout.

# All three mesh layers use the same nonlinear soil; the split at -1 m
# controls interface coupling, not material assignment.
soil_density = 1660.0  # 1.66 tonne/m3 in the source model
nonlinear_material = model.material.nd.pressure_depend_multi_yield(
    user_name="nonlinear_soil",
    nd=3,
    rho=soil_density,
    refShearModul=1.0e8,
    refBulkModul=3.0e8,
    frictionAng=37.0,
    peakShearStra=0.1,
    refPress=80000.0,
    pressDependCoe=0.5,
    PTAng=20.0,
    contrac=0.05,
    dilat1=0.6,
    dilat2=3.0,
    liquefac1=5000.0,
    liquefac2=0.003,
    liquefac3=1.0,
    pa=101000.0,
    c=300.0,
)
soil_damping = model.damping.frequency_rayleigh(
    damping_factor=0.05, f1=0.2, f2=20.0,
)
soil_region = model.region.element(damping=soil_damping)
soil_element = model.element.brick.std(
    ndof=3, material=nonlinear_material,
    b1=0.0, b2=0.0, b3=-soil_density * gravity,
    lumped=True,
)
# The top layer stays in the model but is excluded from pile coupling.
model.meshpart.volume.uniform_rectangular_grid(
    user_name="soil_grid_1", element=soil_element, region=soil_region,
    x_min=-15.0, x_max=15.0, y_min=-15.0, y_max=15.0,
    z_min=-28.0, z_max=-14.3, nx=30, ny=30, nz=7,
)
model.meshpart.volume.uniform_rectangular_grid(
    user_name="soil_grid_2", element=soil_element, region=soil_region,
    x_min=-15.0, x_max=15.0, y_min=-15.0, y_max=15.0,
    z_min=-14.3, z_max=-1.0, nx=30, ny=30, nz=13,
)
model.meshpart.volume.uniform_rectangular_grid(
    user_name="soil_grid_3", element=soil_element, region=soil_region,
    x_min=-15.0, x_max=15.0, y_min=-15.0, y_max=15.0,
    z_min=-1.0, z_max=0.0, nx=30, ny=30, nz=1,
)

Define the hollow circular fiber section, PDelta transformation, and the soil, free, and cap beam segments for both piles.

aluminum_e = 6.89e10
aluminum_nu = 0.33
aluminum_density = 2700.0
pile_inner_radius, pile_outer_radius = 0.449072, 0.4953
cap_base_z = 3.9
cap_top_z = 7.28
model.material.uniaxial.steel01(
    user_name="Aluminum",
    Fy=2.55e8 if angle_degrees in (0, 90) else 1.3e8,
    E0=aluminum_e, b=0.000001,
)
alum_g = aluminum_e / (2.0 * (1.0 + aluminum_nu))
pile_area = math.pi * (pile_outer_radius**2 - pile_inner_radius**2)
pile_i = math.pi * (pile_outer_radius**4 - pile_inner_radius**4) / 4.0
pile_section = model.section.fiber.section(
    user_name="pile_section", GJ=alum_g * 2.0 * pile_i,
)
pile_section.add_circular_patch(
    material="Aluminum",
    int_rad=pile_inner_radius,
    ext_rad=pile_outer_radius,
    num_subdiv_circ=48,
    num_subdiv_rad=4,
    y_center=0.0,
    z_center=0.0,
    start_ang=0.0,
    end_ang=360.0,
)

# Keep the thesis transformation vector fixed in global coordinates.
transformation = model.transformation.transformation3d(
    transf_type="PDelta",
    vecxz_x=-1.0,
    vecxz_y=0.0,
    vecxz_z=0.0,
)
pile_element = model.element.beam.disp(
    ndof=6, section=pile_section, transformation=transformation, numIntgrPts=5,
)
structure_damping = model.damping.uniform(
    dampingRatio=0.07, freql=2.2, freq2=15.0,
)
structure_region = model.region.element(damping=structure_damping)
above_density = 909.0 / pile_area  # 0.909 tonne/m line mass
left_soil = model.meshpart.line.single_line(
    user_name="pile_left_soil", element=pile_element, region=structure_region,
    x0=-3.809, y0=0.0, z0=-14.3, x1=-3.809, y1=0.0, z1=0.0,
    number_of_lines=19, merge_points=True, density=aluminum_density,
)
left_free = model.meshpart.line.single_line(
    user_name="pile_left_free", element=pile_element, region=structure_region,
    x0=-3.809, y0=0.0, z0=0.0, x1=-3.809, y1=0.0, z1=cap_base_z,
    number_of_lines=6, merge_points=True, density=above_density,
)
left_cap = model.meshpart.line.single_line(
    user_name="pile_left_cap", element=pile_element, region=structure_region,
    x0=-3.809, y0=0.0, z0=cap_base_z, x1=-3.809, y1=0.0, z1=5.6,
    number_of_lines=2, merge_points=True, density=above_density,
)

# The right pile has the same three segments on the other side of the cap.
right_soil = model.meshpart.line.single_line(
    user_name="pile_right_soil", element=pile_element, region=structure_region,
    x0=3.809, y0=0.0, z0=-14.3, x1=3.809, y1=0.0, z1=0.0,
    number_of_lines=19, merge_points=True, density=aluminum_density,
)
right_free = model.meshpart.line.single_line(
    user_name="pile_right_free", element=pile_element, region=structure_region,
    x0=3.809, y0=0.0, z0=0.0, x1=3.809, y1=0.0, z1=cap_base_z,
    number_of_lines=6, merge_points=True, density=above_density,
)
right_cap = model.meshpart.line.single_line(
    user_name="pile_right_cap", element=pile_element, region=structure_region,
    x0=3.809, y0=0.0, z0=cap_base_z, x1=3.809, y1=0.0, z1=5.6,
    number_of_lines=2, merge_points=True, density=above_density,
)

Discretize the elevated solid cap using continuum brick elements and apply the specified orientation rotation about the vertical axis.

# Solid cap, not a line beam and carrying no lumped mass.
cap_material = model.material.nd.elastic_isotropic(
    user_name="cap_mat", E=aluminum_e, nu=aluminum_nu, rho=aluminum_density,
)
cap_element = model.element.brick.std(
    ndof=3, material=cap_material,
    b1=0.0, b2=0.0, b3=-aluminum_density * gravity,
    lumped=True,
)
cap_part = model.meshpart.volume.uniform_rectangular_grid(
    user_name="cap", element=cap_element, region=structure_region,
    x_min=-5.72, x_max=5.72,
    y_min=-3.12, y_max=3.12,
    z_min=cap_base_z, z_max=cap_top_z,
    nx=11, ny=6, nz=3,
)
left_soil.transform.rotate_z(angle=angle_degrees)
left_free.transform.rotate_z(angle=angle_degrees)
left_cap.transform.rotate_z(angle=angle_degrees)
right_soil.transform.rotate_z(angle=angle_degrees)
right_free.transform.rotate_z(angle=angle_degrees)
right_cap.transform.rotate_z(angle=angle_degrees)
cap_part.transform.rotate_z(angle=angle_degrees)

Couple the buried piles below -1 m to soil and the upper pile segments separately to the cap. Leave the upper 1 m soil mesh uncoupled to the piles.

# The thesis interface diameter is 1.181 m, larger than the physical pile diameter.
interface_radius = 1.181 / 2.0
# Only the two deeper soil grids transfer force to the piles; the top 1 m does not.
left_soil_interface = model.interface.beam_solid_interface(
    name="pile_soil_interface_left", beam_part=left_soil,
    solid_parts=["soil_grid_1", "soil_grid_2"],
    radius=interface_radius, n_peri=8, n_long=3,
    penalty_param=1.0e9, g_penalty=True,
    write_connectivity=True, write_interface=True,
)
right_soil_interface = model.interface.beam_solid_interface(
    name="pile_soil_interface_right", beam_part=right_soil,
    solid_parts=["soil_grid_1", "soil_grid_2"],
    radius=interface_radius, n_peri=8, n_long=3,
    penalty_param=1.0e9, g_penalty=True,
    write_connectivity=True, write_interface=True,
)
left_cap_interface = model.interface.beam_solid_interface(
    name="pile_cap_interface_left", beam_part=left_cap,
    solid_parts=["cap"], radius=interface_radius, n_peri=8, n_long=3,
    penalty_param=1.0e9, g_penalty=True,
    write_connectivity=True, write_interface=True,
)
right_cap_interface = model.interface.beam_solid_interface(
    name="pile_cap_interface_right", beam_part=right_cap,
    solid_parts=["cap"], radius=interface_radius, n_peri=8, n_long=3,
    penalty_param=1.0e9, g_penalty=True,
    write_connectivity=True, write_interface=True,
)

#########################################################################
# assembly
#########################################################################

model.assembler.create_section(
    meshparts=[
        "pile_left_soil", "pile_left_free", "pile_left_cap",
        "pile_right_soil", "pile_right_free", "pile_right_cap", "cap",
    ],
    num_partitions=1,
    partition_algorithm="kd-tree",
    merge_points=True,
)
model.assembler.create_section(
    meshparts=["soil_grid_1", "soil_grid_2", "soil_grid_3"],
    num_partitions=32,
    partition_algorithm="kd-tree",
    merge_points=True,
)
model.assembler.assemble(merge_points=True, progress_callback=lambda *_: None)

Configure the two-stage gravity initialization to establish self-weight equilibrium before dynamic shaking begins.

# Settle under self-weight before starting the explicit dynamic solution.
gravity_settings = dict(
    constraint_handler=model.analysis.constraint.transformation(),
    numberer=model.analysis.numberer.parallelrcm(),
    system=model.analysis.system.mumps(icntl14=400, icntl7=7),
    test=model.analysis.test.energyincr(tol=1.0e-3, max_iter=20, print_flag=2),
    algorithm=model.analysis.algorithm.modifiednewton(factor_once=True),
    integrator=model.analysis.integrator.newmark(gamma=0.6, beta=0.3025),
)
gravity_elastic = model.analysis.transient(
    name="gravity_elastic", num_steps=100, dt=1.0, **gravity_settings,
)
gravity_plastic = model.analysis.transient(
    name="gravity_plastic", num_steps=500, dt_min=0.001, dt_max=0.1,
    **gravity_settings,
)

Add the two analyses to the model process in order. The material-stage actions change the soil behavior; they do not rebuild the mesh.

model.process.add_step(model.actions.update_material_stage_to_elastic(), "Elastic gravity stage")
model.process.add_step(gravity_elastic, "Gravity elastic (100 steps, dt=1.0)")
model.process.add_step(model.actions.update_material_stage_to_plastic(), "Plastic gravity stage")
model.process.add_step(gravity_plastic, "Gravity plastic (500 ramped steps)")
model.process.add_step(uniform_x, "Uniform global-x base excitation")
model.process.add_step(response_recorder, "Record displacement, velocity, acceleration")
model.process.add_step(left_pile_force, "Record left pile end forces")
model.process.add_step(right_pile_force, "Record right pile end forces")
model.process.add_step(interface_recorder, "Record pile-soil and pile-cap interfaces")
model.process.add_step(model.actions.set_time(0.0), "Reset time, keeping gravity state")
model.process.add_step(dynamic_analysis, "Run the 50 s dynamic analysis")

Define the sampled motion and the uniform-excitation pattern. The model process adds this pattern after gravity, then registers the recorders and resets time before dynamic analysis. There is no explicit load-freezing action; self-weight remains assigned through element body forces. Neither the deformed configuration nor the material state is reset.

# Reset the clock while keeping gravity state, then apply uniform x excitation.
motion_series = model.time_series.path(
    dt=motion_dt, filePath=str(motion_path), factor=gravity,
)
uniform_x = model.pattern.uniform_excitation(dof=1, time_series=motion_series)

Advance the model with Femora's explicit transient analysis. The parallel diagonal solver avoids a full matrix factorization at each small time step; a failed step stops the run.

dynamic_dt = 4.0e-5
dynamic_analysis = model.analysis.transient(
    name="dynamic",
    constraint_handler=model.analysis.constraint.transformation(),
    numberer=model.analysis.numberer.parallelplain(),
    system=model.analysis.system.mpidiagonal(),
    test=model.analysis.test.normdispincr(tol=1e-8, max_iter=1),
    algorithm=model.analysis.algorithm.linear(),
    integrator=model.analysis.integrator.explicitdifference(),
    dt=dynamic_dt,
    num_steps=round(final_time / dynamic_dt),
    max_retries=0,
    initialize=True,
)

Results

The workflow automatically reduces the four solved configurations and generates the comparisons below. Blue curves show numerical responses; red curves or markers show experimental measurements. Full-domain fields are not needed to download and inspect these comparisons. The compact numerical file retains acceleration histories and signed element-end moments for both piles, allowing the figures to be regenerated locally.

Free-field acceleration histories and frequency content compared with experiment

The left column compares acceleration histories at four soil depths and at the base for the 0-degree configuration. The right column compares their frequency content. The prescribed base history closely follows the experimental input, but this is an input consistency check rather than an independent prediction. At 21 m depth the response follows the measured motion more closely than in the shallow soil. At 0.5, 2.6, and 5.88 m, numerical peaks are visibly larger and the spectral response is more concentrated around 2-3 Hz. The model captures the main shaking interval but overpredicts shallow-soil amplification.

Depth labels refer to requested experimental sensor depths. The nearest numerical nodes are at 1.000, 3.046, 6.115, and 20.171 m depth for requests of 0.5, 2.6, 5.876, and 21 m, respectively. Histories are not spatially interpolated to sensor elevations, which limits this comparison. The spectra use mean removal and a Hann window over 10-40 s. Their plotted FFT magnitudes are not normalized for sample count or window gain; compare frequency locations, not absolute spectral amplitudes across sampling rates.

Bent-top horizontal acceleration compared with experiment for four configurations

Columns represent the 0, 30, 60, and 90-degree configurations; rows show the two bent-local horizontal components. Longitudinal histories at 0 and 30 degrees reproduce much of the measured timing and amplitude, although individual peaks differ. The 60-degree longitudinal response is smaller, with visible phase and amplitude differences. Numerical transverse peaks are larger than the measured curves at 30, 60, and 90 degrees. Since assigned pile strength also varies, these differences cannot be attributed to orientation alone.

Acceleration is shown in g. The postprocessor adds the prescribed base motion to the relative numerical acceleration before rotating into bent-local axes. Experimental time is shifted by 11.45 s; the figures display 10-40 s. The numerical probe is the mesh node nearest the cap-top center, not an interpolated center response. In the 0-degree case it is at \((-0.52, 0, 7.28)\text{ m}\).

Experimental Component Conventions

The transverse experimental channel is named ay_global, whereas the numerical curve uses bent-local y. Its measurement-axis convention needs confirmation before interpreting transverse agreement quantitatively. Missing experimental acceleration channels currently appear as zero curves; a flat red line must not be interpreted as a measured zero response without checking channel availability.

Left-pile local bending moment envelopes compared with experimental measurements

The curves show minimum and maximum left-pile bending moments along elevation; red markers are experimental envelopes at instrumented elevations. Moments are in kN m. The dominant component changes from local My at 0 degrees to local Mx at 90 degrees, with both components active at intermediate orientations. Local My envelopes at 0 and 30 degrees follow the measured depth-wise shape reasonably, but disagreement remains at individual elevations. The large 60-degree local Mx measurements near the upper pile are not reproduced, and the 90-degree Mx envelope also differs from several measured values.

For plotting, duplicate element-end elevations are averaged and the existing elevation shift of -1.15 m is applied. Envelopes use the full recorded 0-50 s history, unlike the acceleration plots' 10-40 s display window. The compact file preserves unaveraged signed end moments. These figures demonstrate the comparison workflow and its remaining model discrepancies, not exact agreement or complete validation.

Workflow and Execution

Femora coordinates model generation, parallel numerical solution, and cross-case response postprocessing using a structured workflow. For general workflow concepts and execution modes, see the Workflows and Remote Execution guide.

The workflow builds all four cases (angle_000, angle_030, angle_060, angle_090) sequentially, solves each case on 33 MPI ranks (one structural and 32 soil; 132 ranks concurrently across the study), and passes the resulting partition datasets to the companion postprocessor:

def build_workflow():
    """Build four cases sequentially, then solve them in parallel."""
    workflow = fm.Workflow("rotated-two-pile-bent")
    workflow.add(
        "build",
        tasks=[
            fm.tasks.Python("angle_000", build_model, kwargs={"angle_degrees": 0}),
            fm.tasks.Python("angle_030", build_model, kwargs={"angle_degrees": 30}),
            fm.tasks.Python("angle_060", build_model, kwargs={"angle_degrees": 60}),
            fm.tasks.Python("angle_090", build_model, kwargs={"angle_degrees": 90}),
        ],
    )
    workflow.add(
        "solve",
        parallel=True,
        tasks=[
            fm.tasks.OpenSees("angle_000", "build/angle_000/model.tcl", ranks=RANKS_PER_CASE),
            fm.tasks.OpenSees("angle_030", "build/angle_030/model.tcl", ranks=RANKS_PER_CASE),
            fm.tasks.OpenSees("angle_060", "build/angle_060/model.tcl", ranks=RANKS_PER_CASE),
            fm.tasks.OpenSees("angle_090", "build/angle_090/model.tcl", ranks=RANKS_PER_CASE),
        ],
    )
    workflow.add(
        "postprocess", tasks=[fm.tasks.Python("responses", postprocess_results)]
    )
    workflow.outputs(
        "postprocess/responses/*",
        "**/stdout.log",
        "build/*/model.tcl",
        "motions/**/*",
        "solve/**/*",
    )
    return workflow

Remote Submission

Run the study directly on DesignSafe / TACC systems using Femora's remote submission interface:

if __name__ == "__main__":
    job = fm.submit(
        function=build_workflow,
        platform="tacc",
        settings={
            "app_id": "amnp95-femora-workflow-stampede3",
            "system": "stampede3",
            "queue": "skx",
            "allocation": "DesignSafe-SimCenter",
            "nodes": 3,
            "cores_per_node": 48,
            "minutes": 2880,
        },
        files={
            POSTPROCESS: Path(__file__).with_name(POSTPROCESS),
            EXPERIMENT_FILE: (
                Path(__file__).resolve().parents[1]
                / "inputs/validation/rotated_two_pile_bent"
                / EXPERIMENT_FILE
            ),
            f"motions/{MOTION_FILE}": motions_dir() / MOTION_FILE,
        },
    )
    print(f"Job UUID: {job.id}")

Submit from the command line:

python examples/soil_structure_interaction/rotated_two_pile_bent.py

Once submitted, monitor job progress or inspect intermediate logs using the CLI tool:

femora jobs track

Select the submitted job in the tracker. After solving, the postprocessor extracts compact histories and generates experimental comparison plots remotely. The download package includes the reduced HDF5 file, comparison plots, model Tcl, motion input, and logs. Raw VTKHDF and pile-force XML files are not selected for download; they remain in the remote workspace subject to cluster retention.

To regenerate plots locally from the downloaded reduced file:

python examples/soil_structure_interaction/rotated_two_pile_bent_postprocess.py plot \
  --numerical-file rotated_bent_numerical.h5 --output post_processing