Cantilevered Sheet Pile Walls ----------------------------- Example prepared by: |chris| and |pedro|, University of Washington Introduction ************ This example describes the simulation of an excavation supported by a cantilevered sheet pile wall. The model considers plane strain conditions in two dimensions, using quadrilateral elements with a pressure dependent constitutive model to simulate cohesionless soil, and beam-column elements to simulate a unit width of sheet pile wall. Beam-solid contact elements are used to model a frictional interface between the beam elements and the quadrilateral soil elements. .. list-table:: :header-rows: 1 :widths: 40 30 30 * - Purpose - Tcl - Python * - Main input file - :download:`excavation.tcl ` - :download:`excavation.py ` * - Mesh data - - :download:`excavationMesh.py ` * - Plot the results - - :download:`plotResults.py ` To run the example, download the files for your chosen language into a single directory and run the main input file, i.e. ``OpenSees excavation.tcl`` or ``python excavation.py``. The Tcl input file was created with the pre- and post-processor `GiD `_, so the nodes and elements are listed individually and are not numbered in a useful order. The Python version keeps the same mesh, but the node coordinates, fixities, element connectivities and excavation lifts are read from the data file ``excavationMesh.py`` (extracted from the Tcl input file), and the model is built with loops. .. note:: The original script was written for an older version of OpenSees. To run with current versions, the ``dispBeamColumn`` elements use a ``beamIntegration`` object, and the ``BandGeneral`` system of equations is used in place of ``SparseGeneral``. Removing elements and nodes changes the size of the system of equations at each excavation lift, and the ``UmfPack`` solver (in OpenSees 3.8.1 and earlier) and the ``SparseGeneral`` solver (in OpenSees 3.8.0 and earlier, which includes the current OpenSeesPy) do not handle a second resize correctly, so the analysis fails after the second lift. ``BandGeneral`` works with all versions; the Tcl and Python versions give identical results, which agree with the original ``SparseGeneral`` Tcl results to within 0.01%. For this model ``BandGeneral`` is also as fast as the sparse solvers. Model Description ***************** .. figure:: figures/originalMesh.png :align: center :figclass: align-center Undeformed finite element mesh for the excavation model (from GiD). The analysis uses the finite element mesh shown above. The soil domain is 10 m tall and 10.5 m wide. The sheet pile wall is 0.5 m wide and 10.5 m high. Beam contact elements create a frictional interface between the beam and solid elements that accounts for the full kinematics of the beam elements and allows the width of the wall to be represented: the contact elements maintain a constant distance of 0.25 m between the wall centerline and the surrounding soil elements, resulting in the gap between the wall (blue) and the soil elements (green) in the figure. The excavation is simulated by removing layers of soil elements, one at a time, from one side of the wall. After each removal, the model is analyzed for enough steps to reach equilibrium before the next layer is removed. The removal continues until an excavation depth of 5 m is reached. Soil Nodes and Boundary Conditions ================================== The soil nodes are created with two translational degrees-of-freedom. They are fixed against lateral translation on the left and right boundaries, and against vertical translation along the lower boundary. The lateral extent of the soil domain, ten times the wall thickness on either side of the wall, reduces the effect of the boundaries on the wall-soil system. The Lagrange multiplier nodes required by the contact elements, numbered 1001 to 1042, are also created here. .. tabs:: .. tab:: Tcl .. code-block:: tcl wipe model BasicBuilder -ndm 2 -ndf 2 # define soil nodes node 1 -5.250 0.000 node 2 -5.250 0.500 # ... (462 soil nodes) # define fixities for soil nodes fix 1 1 1 fix 2 1 0 # ... (62 fixities) # create Lagrange multiplier nodes for beam contact elements for {set k 1} {$k <= 42} {incr k 1} { node [expr 1000+$k] 0.00 0.00 } .. tab:: Python .. code-block:: python import os import time import openseespy.opensees as ops from excavationMesh import (soilNodes, soilFix, permanentNodes, soilElements, permanentElements, beamNodes, beamElements, contactElements, permanentContactElements, lifts) ops.wipe() ops.model('BasicBuilder', '-ndm', 2, '-ndf', 2) # define soil nodes for tag, x, y in soilNodes: ops.node(tag, x, y) # define fixities for soil nodes for tag, fx, fy in soilFix: ops.fix(tag, fx, fy) # create Lagrange multiplier nodes for beam contact elements for k in range(1, 43): ops.node(1000 + k, 0.00, 0.00) Soil Material and Elements ========================== The soil is modeled with four-node :ref:`quad` elements using the plane strain formulation, with a unit thickness so that the model represents a 1 m thick slice of the soil. The self-weight of the soil is applied as a body force on each element. The soil is a homogeneous cohesionless soil, modeled with a single :ref:`PressureDependentMultiYield02` material, which captures the pressure dependent strength of the soil. This material is wrapped in an :ref:`InitialStateAnalysisWrapper` material, which allows the initial state analysis (described below) to be used to set up the initial stresses in the soil. .. tabs:: .. tab:: Tcl .. code-block:: tcl # define pressure depended material for soil nDMaterial PressureDependMultiYield02 5 2 1.8 9.6e3 2.7e4 36 0.1 101.0 0.0 26 0.067 0.23 0.06 0.27 20 5.0 3.0 1.0 0.0 0.77 0.9 0.02 0.7 101.0 # element thickness set thick1 1.0 # body force in x-direction set xWgt1 0.00 # body force in y-direction set yWgt1 [expr -9.81*1.8] # create wrapper material for initial state analysis nDMaterial InitialStateAnalysisWrapper 1 5 2 element quad 1 109 130 131 112 $thick1 PlaneStrain 1 0.0 0.0 $xWgt1 $yWgt1 element quad 2 130 152 157 131 $thick1 PlaneStrain 1 0.0 0.0 $xWgt1 $yWgt1 # ... (400 soil elements) .. tab:: Python .. code-block:: python # define pressure depended material for soil ops.nDMaterial('PressureDependMultiYield02', 5, 2, 1.8, 9.6e3, 2.7e4, 36, 0.1, 101.0, 0.0, 26, 0.067, 0.23, 0.06, 0.27, 20, 5.0, 3.0, 1.0, 0.0, 0.77, 0.9, 0.02, 0.7, 101.0) # element thickness thick1 = 1.0 # body force in x-direction xWgt1 = 0.00 # body force in y-direction yWgt1 = -9.81 * 1.8 # create wrapper material for initial state analysis ops.nDMaterial('InitialStateAnalysisWrapper', 1, 5, 2) for tag, n1, n2, n3, n4 in soilElements: ops.element('quad', tag, n1, n2, n3, n4, thick1, 'PlaneStrain', 1, 0.0, 0.0, xWgt1, yWgt1) Sheet Pile Wall =============== The wall is modeled with :ref:`dispBeamColumn` elements with an elastic section. The beam nodes, created with three degrees-of-freedom, are placed along the neutral axis of the wall, centered vertically between the nodes of the adjacent soil elements for the best behavior of the contact elements. The wall extends beyond the soil domain so that the elements at the ends of the wall stay in contact with the soil. All the beam nodes are free, except the node at the base of the wall, which is fixed against vertical translation. Modeling the wall with beam elements makes it simple to obtain shear and moment diagrams from the recorded element forces. .. tabs:: .. tab:: Tcl .. code-block:: tcl model BasicBuilder -ndm 2 -ndf 3 # define beam nodes node 99 0.000 0.250 node 100 0.000 -0.250 # ... (22 beam nodes) # fix the base node of the sheetpile in the vertial direction fix 100 0 1 0 # beam properties set thick 0.5 set area 0.5 set I 9.75e-4 set beamE 200000000 set numIntPts 3 set transTag 1 set secTag 1 # geometric transformation geomTransf Linear $transTag # beam section section Elastic $secTag $beamE $area $I # Gauss-Legendre integration with $numIntPts integration points along each element beamIntegration Legendre 1 $secTag $numIntPts element dispBeamColumn 401 100 99 $transTag 1 element dispBeamColumn 402 99 101 $transTag 1 # ... (21 beam elements) .. tab:: Python .. code-block:: python ops.model('BasicBuilder', '-ndm', 2, '-ndf', 3) # define beam nodes for tag, x, y in beamNodes: ops.node(tag, x, y) # fix the base node of the sheetpile in the vertial direction ops.fix(100, 0, 1, 0) # beam properties thick = 0.5 area = 0.5 I = 9.75e-4 beamE = 200000000 numIntPts = 3 transTag = 1 secTag = 1 # geometric transformation ops.geomTransf('Linear', transTag) # beam section ops.section('Elastic', secTag, beamE, area, I) # Gauss-Legendre integration with numIntPts integration points along each element ops.beamIntegration('Legendre', 1, secTag, numIntPts) for tag, nI, nJ in beamElements: ops.element('dispBeamColumn', tag, nI, nJ, transTag, 1) Soil-Wall Interface =================== The interface between the wall and the soil is defined using :ref:`BeamContact2D` elements. Each element links two master nodes on the beam to a slave node on an adjacent soil element. The elements work best when the slave node starts nearly centered vertically between the two beam nodes, though contact is maintained as long as it lies between them. The elements use Lagrange multipliers to enforce the contact condition, which is why the additional nodes 1001 to 1042 were created. The behavior of the interface is defined using the :ref:`ContactMaterial2D ` material, which uses a regularized Coulomb friction law allowing for sticking and frictional slip. Here the friction coefficient is 0.1, and the interface stiffness during sticking is 1000. .. tabs:: .. tab:: Tcl .. code-block:: tcl # two-dimensional contact material nDMaterial ContactMaterial2D 2 0.1 1000.0 0.0 0.0 # set gap and force tolerances for beam contact elements set gapTol 1.0e-10 set forceTol 1.0e-10 # define beam contact elements element BeamContact2D 1001 100 99 88 1001 2 $thick $gapTol $forceTol element BeamContact2D 1002 100 99 109 1002 2 $thick $gapTol $forceTol # ... (42 contact elements) .. tab:: Python .. code-block:: python # two-dimensional contact material ops.nDMaterial('ContactMaterial2D', 2, 0.1, 1000.0, 0.0, 0.0) # set gap and force tolerances for beam contact elements gapTol = 1.0e-10 forceTol = 1.0e-10 # define beam contact elements for tag, m1, m2, slave, lagr in contactElements: ops.element('BeamContact2D', tag, m1, m2, slave, lagr, 2, thick, gapTol, forceTol) Recorders ========= Many recorders are needed for this model, to capture information for each of the layers of elements (and nodes) that are removed during the analysis. When the elements and nodes of a layer are removed, their recorders must also be removed. There is one set of recorders for each of the 10 excavation lifts, which is active until the lift is removed, and an additional set for the nodes and elements that are never removed, which is active for the whole analysis. Recorders are removed by their tags. Unlike nodes and elements, the tags are not given in the input file; recorders are numbered in the order they are created, starting at 0. The 10 permanent recorders have tags 0 to 9, so the first recorder for excavation lift 1 has tag 10. In Python, the ``recorder`` command returns the tag, which is stored for each lift. .. tabs:: .. tab:: Tcl .. code-block:: tcl # PERMANENT RECORDERS # (the lists of permanent nodes and elements are read from files written earlier in the script) eval "recorder Node -file displacement.out -time -node $nodeListPerm -dof 1 2 disp" eval "recorder Element -file stress1.out -time -ele $solidElementList material 1 stress" # ... (stress at Gauss points 2 to 4) eval "recorder Element -file slaveForce.out -time -ele $BCElemList forces" eval "recorder Element -file frictForce.out -time -ele $BCElemList frictionforces" eval "recorder Element -file contForce.out -time -ele $BCElemList forcescalars" eval "recorder Element -file mastForce.out -time -ele $BCElemList masterforces" eval "recorder Element -file globalForces.out -time -ele $BeamElementList globalForce" # RECORDERS FOR EXCAVATED MATERIAL (TO BE REMOVED) file mkdir ./lift1 # ... (directories lift2 to lift10) # excavation lift 1 recorder Node -file lift1/disp.out -time -node 430 437 446 455 461 468 473 476 480 482 484 -dof 1 2 disp recorder Element -file lift1/stress1.out -time -eleRange 191 200 material 1 stress # ... (stress at Gauss points 2 to 4) recorder Element -file lift1/slaveForce.out -time -ele 1042 forces recorder Element -file lift1/frictForce.out -time -ele 1042 frictionforces recorder Element -file lift1/contForce.out -time -ele 1042 forcescalars recorder Element -file lift1/mastForce.out -time -ele 1042 masterforces # ... (excavation lifts 2 to 10) .. tab:: Python .. code-block:: python beamElementList = [e[0] for e in beamElements] # PERMANENT RECORDERS ops.recorder('Node', '-file', 'displacement.out', '-time', '-node', *permanentNodes, '-dof', 1, 2, 'disp') for gp in range(1, 5): ops.recorder('Element', '-file', f'stress{gp}.out', '-time', '-ele', *permanentElements, 'material', gp, 'stress') ops.recorder('Element', '-file', 'slaveForce.out', '-time', '-ele', *permanentContactElements, 'forces') ops.recorder('Element', '-file', 'frictForce.out', '-time', '-ele', *permanentContactElements, 'frictionforces') ops.recorder('Element', '-file', 'contForce.out', '-time', '-ele', *permanentContactElements, 'forcescalars') ops.recorder('Element', '-file', 'mastForce.out', '-time', '-ele', *permanentContactElements, 'masterforces') ops.recorder('Element', '-file', 'globalForces.out', '-time', '-ele', *beamElementList, 'globalForce') # RECORDERS FOR EXCAVATED MATERIAL (TO BE REMOVED) # the tags of the recorders for each lift are kept so they can be removed with the lift liftRecorders = [] for lift in lifts: d = f"lift{lift['lift']}" os.makedirs(d, exist_ok=True) eles = range(lift['firstElement'], lift['firstElement'] + 10) bce = lift['contactElement'] tags = [ops.recorder('Node', '-file', f'{d}/disp.out', '-time', '-node', *lift['soilNodes'], '-dof', 1, 2, 'disp')] for gp in range(1, 5): tags.append(ops.recorder('Element', '-file', f'{d}/stress{gp}.out', '-time', '-eleRange', eles[0], eles[-1], 'material', gp, 'stress')) tags.append(ops.recorder('Element', '-file', f'{d}/slaveForce.out', '-time', '-ele', bce, 'forces')) tags.append(ops.recorder('Element', '-file', f'{d}/frictForce.out', '-time', '-ele', bce, 'frictionforces')) tags.append(ops.recorder('Element', '-file', f'{d}/contForce.out', '-time', '-ele', bce, 'forcescalars')) tags.append(ops.recorder('Element', '-file', f'{d}/mastForce.out', '-time', '-ele', bce, 'masterforces')) liftRecorders.append(tags) Initial State Analysis Phase ============================ For geotechnical problems it is important to begin with the appropriate initial conditions. The ``InitialStateAnalysis`` command allows the initial stresses and strains in the soil due to gravity to be set up without the corresponding nodal displacements. It is turned on before the gravity analysis. The soil is linear elastic for the first 4 steps of the gravity analysis and is then updated to elastoplastic behavior, using the :ref:`updateMaterialStage` command, for the next 4 steps. The contact elements are set to ignore friction during the gravity analysis using the ``setParameter`` command. Applying gravity causes differential vertical displacements between the wall and the soil, and with friction this would produce frictional forces that do not exist in an actual setting. Friction is turned back on after the initial state analysis. When the initial state analysis is turned off, all the displacements that occurred during gravity loading are reset to zero, while the InitialStateAnalysisWrapper material stores the strain at the end of the gravity analysis as an initial strain. In the first step after this, the model is in its original undeformed configuration, but the stresses and strains in the soil are those computed by the gravity analysis. All later stresses and strains are relative to this initial state. .. note:: In Tcl ``setParameter`` accepts ``-value``, as used in the original script, but in OpenSeesPy the option must be given as ``-val``. .. tabs:: .. tab:: Tcl .. code-block:: tcl # define analysis parameters for gravity phase constraints Transformation test NormDispIncr 1e-5 15 1 algorithm Newton numberer RCM system BandGeneral integrator LoadControl 1 analysis Static # turn on initial state analysis feature InitialStateAnalysis on # ensure soil material intially considers linear elastic behavior updateMaterialStage -material 1 -stage 0 # set contact elements to be frictionless for gravity analysis setParameter -value 0 -eleRange 1001 1042 friction set startT [clock seconds] analyze 4 # update soil material to consider elastoplastic behavior and analyze a few more steps updateMaterialStage -material 1 -stage 1 analyze 4 # designate end of initial state analysis (zeros displacements, keeps state variables) InitialStateAnalysis off # turn on frictional behavior for beam contact elements setParameter -value 1 -eleRange 1001 1042 friction .. tab:: Python .. code-block:: python # define analysis parameters for gravity phase ops.constraints('Transformation') ops.test('NormDispIncr', 1e-5, 15, 1) ops.algorithm('Newton') ops.numberer('RCM') ops.system('BandGeneral') ops.integrator('LoadControl', 1) ops.analysis('Static') # turn on initial state analysis feature ops.InitialStateAnalysis('on') # ensure soil material intially considers linear elastic behavior ops.updateMaterialStage('-material', 1, '-stage', 0) # set contact elements to be frictionless for gravity analysis ops.setParameter('-val', 0, '-eleRange', 1001, 1042, 'friction') startT = time.time() ops.analyze(4) # update soil material to consider elastoplastic behavior and analyze a few more steps ops.updateMaterialStage('-material', 1, '-stage', 1) ops.analyze(4) # designate end of initial state analysis (zeros displacements, keeps state variables) ops.InitialStateAnalysis('off') # turn on frictional behavior for beam contact elements ops.setParameter('-val', 1, '-eleRange', 1001, 1042, 'friction') Excavation Analysis Phase ========================= The excavation is simulated by removing layers of soil elements and nodes on one side of the wall. After each removal, the model is analyzed for four steps to reach equilibrium in the new configuration. The self-weight of the soil is the only load on the model, so removing elements from one side of the wall unbalances the forces on the wall, which deforms along with the surrounding soil. Each lift is removed by first removing its recorders. Failing to remove the recorders of removed elements and nodes results in a segmentation fault, so this step is important. The soil elements are removed next, followed by the contact element and Lagrange multiplier node connected to the removed layer, and then the nodes on the upper boundary of the layer. There are ten lifts, removing the soil on the right-hand side of the wall to a depth of 5 m. Because the GiD nodes are not numbered in a useful order, the Tcl script lists each removal individually; the Python version loops over the lift data. .. tabs:: .. tab:: Tcl .. code-block:: tcl # define analysis parameters for excavation phase constraints Transformation test NormDispIncr 1e-4 60 1 algorithm KrylovNewton numberer RCM system BandGeneral integrator LoadControl 1 analysis Static # remove objects associated with lift 1 # recorders set recCount 10 for {set k 0} {$k <= 8} {incr k 1} { remove recorder [expr $recCount + $k] } set recCount [expr $recCount + $k] # soil elements for {set k 1} {$k <= 10} {incr k 1} { remove element [expr 190+$k] } # contact element remove element 1042 # lagrange multiplier node remove node 1042 # soil nodes remove node 430 remove node 437 # ... (remaining soil nodes of lift 1) # run analysis after object removal analyze 4 # ... (lifts 2 to 10) # excavation analysis complete set endT [clock seconds] puts "Analysis execution time: [expr $endT-$startT] seconds" wipe .. tab:: Python .. code-block:: python # define analysis parameters for excavation phase ops.constraints('Transformation') ops.test('NormDispIncr', 1e-4, 60, 1) ops.algorithm('KrylovNewton') ops.numberer('RCM') ops.system('BandGeneral') ops.integrator('LoadControl', 1) ops.analysis('Static') for lift, tags in zip(lifts, liftRecorders): # recorders for tag in tags: ops.remove('recorder', tag) # soil elements for k in range(10): ops.remove('element', lift['firstElement'] + k) # contact element ops.remove('element', lift['contactElement']) # lagrange multiplier node ops.remove('node', lift['lagrangeNode']) # soil nodes for n in lift['soilNodes']: ops.remove('node', n) # run analysis after object removal ops.analyze(4) # excavation analysis complete endT = time.time() print(f'Analysis execution time: {endT - startT:.0f} seconds') ops.wipe() Results ******* The figure below was made with :download:`plotResults.py ` from the recorded output; the Tcl and Python versions give identical results. The top plot shows the deformed mesh at the end of the excavation, with the displacements magnified 25 times. Removing the soil from the right-hand side of the wall lets the soil on the left push the wall toward the excavation, and the base of the excavation heaves. The lower plots show the bending moment and shear force in the wall, and the horizontal displacement of the soil next to the wall on the retained side, at the end of the gravity analysis and after each excavation lift. .. figure:: figures/excavationResults.png :align: center :figclass: align-center Deformed mesh, wall bending moment and shear force, and soil displacement next to the wall during excavation. At the end of the excavation the maximum wall moment is about 70 kN-m, about 1.8 m below the base of the excavation, and the top of the retained soil next to the wall has moved about 32 mm toward the excavation. The beam contact elements also provide the contact forces acting on the interface, so the evolution of these forces during the excavation can be tracked. The figures below, made with GiD from the original analysis, show the contact forces after the initial state analysis and at the end of the excavation. The contact forces are not horizontal, indicating that frictional forces develop on the interface. .. figure:: figures/initialContact.png :align: center :figclass: align-center Contact forces after the initial state analysis (from GiD). .. figure:: figures/finalContact.png :align: center :figclass: align-center Contact forces in the final excavated configuration (from GiD).