One-dimensional Consolidation ----------------------------- Example prepared by: |chris| and |pedro|, University of Washington Introduction ************ This example describes the OpenSees implementation of a 1D consolidation model. A single soil column is modeled in two dimensions, but all compression is one-dimensional. The model can consider either single or double drainage of the soil layer. .. list-table:: :header-rows: 1 :widths: 40 30 30 * - Purpose - Tcl - Python * - Main input file - :download:`1Dconsolidation.tcl ` - :download:`1Dconsolidation.py ` * - Plot the results - - :download:`plotResults.py ` To run the example, download the input file and run it, i.e. ``OpenSees 1Dconsolidation.tcl`` or ``python 1Dconsolidation.py``. The plotting script is not needed for the analysis; it shows how plots of the results can be made from the recorded output. .. note:: The original script was written for an older version of OpenSees. To run with current versions, the recorders use ``-nodeRange`` in place of the removed ``-node all`` option, the surcharge load pattern uses a separate ``timeSeries Constant`` command, and the base nodes are no longer fixed twice (which current versions reject). In addition, the double drainage case did not converge with the original time step, so a smaller time step is now used when ``drainage`` is 2. None of these changes alter the single drainage results. Model Description ***************** .. figure:: figures/consolModel.png :align: center :figclass: align-center Schematic representation of the consolidation model. Blue nodes are corner nodes, red nodes are interior nodes. The one-dimensional consolidation model consists of a column of 9-node quadrilateral elements. These elements have two sets of nodes: the corner nodes have 3 degrees-of-freedom (2 displacement, 1 pore pressure), and the interior nodes have 2 displacement degrees-of-freedom only. These elements do not display the locking behavior associated with 4-node quadrilateral elements with pore pressure degrees-of-freedom, though the connectivity is more complex. In the figure above, the corner nodes are blue and the interior nodes are red. The drainage condition of the soil layer is set with the variable ``drainage``. Setting ``drainage`` to 1 gives single drainage, with zero pore pressure at the top of the soil layer. Setting ``drainage`` to 2 gives double drainage, with zero pore pressure at the top and bottom of the soil layer. Mesh Geometry ============= The geometry of the mesh depends on the number and size of the elements in the horizontal direction (one element, 1.0 m wide) and in the vertical direction. In this example there are 10 square elements in the vertical direction. .. tabs:: .. tab:: Tcl .. code-block:: tcl # specify desired drainage type; 1 --> single drainage, 2 --> double drainage set drainage 1 # number of elements in horizontal direction set numEleX 1 # size of elements in horizontal direction (m) set sizeEleX 1.0 # number of nodes in horizontal direction set numNodeX [expr 2*$numEleX + 1] # number of elements in vertical direction set numEleY 10 # size of elements in vertical direction (m) set sizeEleY 1.0 # number of nodes in vertical direction set numNodeY [expr 2*$numEleY + 1] # total number of nodes set totalNumNode [expr 3*$numNodeY] # total number of elements set totalNumEle [expr $numEleY*$numEleX] .. tab:: Python .. code-block:: python import openseespy.opensees as ops ops.wipe() # specify desired drainage type; 1 --> single drainage, 2 --> double drainage drainage = 1 # number of elements in horizontal direction numEleX = 1 # size of elements in horizontal direction (m) sizeEleX = 1.0 # number of nodes in horizontal direction numNodeX = 2 * numEleX + 1 # number of elements in vertical direction numEleY = 10 # size of elements in vertical direction (m) sizeEleY = 1.0 # number of nodes in vertical direction numNodeY = 2 * numEleY + 1 # total number of nodes totalNumNode = 3 * numNodeY # total number of elements totalNumEle = numEleY * numEleX Corner Nodes ============ The corner nodes are created in two dimensions with three degrees-of-freedom: the horizontal and vertical displacements and the pore pressure. All corner nodes are fixed against horizontal translation, and the nodes on the lower boundary are also fixed against vertical translation. The corner nodes at the top of the soil layer are fixed in the pore pressure DOF for both drainage cases, while those at the bottom are only fixed in the pore pressure DOF for double drainage. .. tabs:: .. tab:: Tcl .. code-block:: tcl # corner nodes are created in 2D with 3 DOF model BasicBuilder -ndm 2 -ndf 3 # loop in horizontal direction for {set i 1} {$i <= $numNodeX} {incr i 2} { # loop in vertical direction for {set j 1} {$j <= $numNodeY} {incr j 2} { set xCoord [expr ($i-1)*$sizeEleX/2] set yCoord [expr ($j-1)*$sizeEleX/2] set nodeNum [expr $i + ($j-1)*$numNodeX] node $nodeNum $xCoord $yCoord puts "node $nodeNum $xCoord $yCoord" } } # boundary conditions for base nodes depending upon selected drainage type switch $drainage { 1 { fix 1 1 1 0 fix 3 1 1 0 } 2 { fix 1 1 1 1 fix 3 1 1 1 } } # fix horizontal displacement and porepressure DOF for nodes at the top fix [expr $totalNumNode-2] 1 0 1 fix $totalNumNode 1 0 1 # fix horizontal displacement for all remaining nodes (base nodes 1 and 3 are already fixed) for {set i 7} {$i <= [expr 3*$numNodeY-6]} {incr i 6} { fix $i 1 0 0 fix [expr $i+2] 1 0 0 puts "fix $i 1 0 0" puts "fix [expr $i+2] 1 0 0" } .. tab:: Python .. code-block:: python # corner nodes are created in 2D with 3 DOF ops.model('BasicBuilder', '-ndm', 2, '-ndf', 3) # loop in horizontal direction for i in range(1, numNodeX + 1, 2): # loop in vertical direction for j in range(1, numNodeY + 1, 2): xCoord = (i - 1) * sizeEleX / 2 yCoord = (j - 1) * sizeEleX / 2 nodeNum = i + (j - 1) * numNodeX ops.node(nodeNum, xCoord, yCoord) print(f'node {nodeNum} {xCoord} {yCoord}') # boundary conditions for base nodes depending upon selected drainage type if drainage == 1: ops.fix(1, 1, 1, 0) ops.fix(3, 1, 1, 0) elif drainage == 2: ops.fix(1, 1, 1, 1) ops.fix(3, 1, 1, 1) # fix horizontal displacement and porepressure DOF for nodes at the top ops.fix(totalNumNode - 2, 1, 0, 1) ops.fix(totalNumNode, 1, 0, 1) # fix horizontal displacement for all remaining nodes (base nodes 1 and 3 are already fixed) for i in range(7, 3 * numNodeY - 6 + 1, 6): ops.fix(i, 1, 0, 0) ops.fix(i + 2, 1, 0, 0) print(f'fix {i} 1 0 0') print(f'fix {i + 2} 1 0 0') Interior Nodes ============== The interior nodes are created in two dimensions with two displacement DOF. The single interior node at the bottom is fixed against horizontal and vertical translation, and the interior nodes on the edges of the column are fixed against horizontal displacement. The nodes on the upper boundary of the soil layer (both corner and interior) are given equal displacements using the :ref:`equalDOF` command. .. tabs:: .. tab:: Tcl .. code-block:: tcl # interior nodes are created in 2D with 2 DOF model BasicBuilder -ndm 2 -ndf 2 # central column of nodes set xCoord [expr $sizeEleX/2] for {set j 1} {$j <= $numNodeY} {incr j 1} { set yCoord [expr ($j-1)*$sizeEleX/2] set nodeNum [expr 3*$j - 1] node $nodeNum $xCoord $yCoord puts "node $nodeNum $xCoord $yCoord" } # interior nodes on the element edges for {set j 1} {$j <= $numEleY} {incr j 1} { set yCoord [expr $j - 0.5] set nodeNumL [expr 6*$j - 2] set nodeNumR [expr $nodeNumL + 2] node $nodeNumL 0.0 $yCoord node $nodeNumR $sizeEleX $yCoord puts "node $nodeNumL 0.0 $yCoord" puts "node $nodeNumR $sizeEleX $yCoord" } # fix displacement DOF for node at the base fix 2 1 1 # fix horizontal displacement of nodes on edge of elements for {set i 1} {$i <= $numEleY} {incr i 1} { set nodeNumL [expr 6*$i - 2] set nodeNumR [expr $nodeNumL + 2] fix $nodeNumL 1 0 fix $nodeNumR 1 0 puts "fix $nodeNumL 1 0" puts "fix $nodeNumR 1 0" } # define equalDOF for surface nodes equalDOF [expr $totalNumNode-1] [expr $totalNumNode-2] 1 2 equalDOF [expr $totalNumNode-1] [expr $totalNumNode] 1 2 .. tab:: Python .. code-block:: python # interior nodes are created in 2D with 2 DOF ops.model('BasicBuilder', '-ndm', 2, '-ndf', 2) # central column of nodes xCoord = sizeEleX / 2 for j in range(1, numNodeY + 1): yCoord = (j - 1) * sizeEleX / 2 nodeNum = 3 * j - 1 ops.node(nodeNum, xCoord, yCoord) print(f'node {nodeNum} {xCoord} {yCoord}') # interior nodes on the element edges for j in range(1, numEleY + 1): yCoord = j - 0.5 nodeNumL = 6 * j - 2 nodeNumR = nodeNumL + 2 ops.node(nodeNumL, 0.0, yCoord) ops.node(nodeNumR, sizeEleX, yCoord) print(f'node {nodeNumL} 0.0 {yCoord}') print(f'node {nodeNumR} {sizeEleX} {yCoord}') # fix displacement DOF for node at the base ops.fix(2, 1, 1) # fix horizontal displacement of nodes on edge of elements for i in range(1, numEleY + 1): nodeNumL = 6 * i - 2 nodeNumR = nodeNumL + 2 ops.fix(nodeNumL, 1, 0) ops.fix(nodeNumR, 1, 0) print(f'fix {nodeNumL} 1 0') print(f'fix {nodeNumR} 1 0') # define equalDOF for surface nodes ops.equalDOF(totalNumNode - 1, totalNumNode - 2, 1, 2) ops.equalDOF(totalNumNode - 1, totalNumNode, 1, 2) Soil Material ============= The soil is assumed to be cohesive, so the :ref:`PressureIndependentMultiYield` nDMaterial is used for the soil constitutive model. The soil is homogeneous, so only a single material object is defined. .. tabs:: .. tab:: Tcl .. code-block:: tcl # saturated mass density (Mg/m3) set satDensity 2.3 # fluid mass density (Mg/m3) set H2ODensity 1.0 # shear modulus (kPa) set shear 2.5e4 # bulk modulus (kPa) set bulk 6.2e5 # undrained bulk modulus (kPa) set uBulk 2.2e5 # vertical permeability, input value in m/s, units are modified to suit constitutive model set mPermV 5.0e-5 set vPerm [expr $mPermV/9.81/$H2ODensity] # horizontal permeability, input value in m/s, units are modified to suit constitutive model set mPermH 5.0e-5 set hPerm [expr $mPermH/9.81/$H2ODensity] # cohesion (kPa) set cohesion 45.0 # friction angle (degrees) set phi 0.0 # peak shear strain set gammaPeak 0.1 # reference pressure (kPa) set refPress 80.0 # pressure dependency coefficient set pressCoeff 0.0 # number of yield surfaces set numSurf 22 set matTag 1 nDMaterial PressureIndependMultiYield $matTag 2 $satDensity $shear $bulk $cohesion $gammaPeak $phi $refPress $pressCoeff $numSurf .. tab:: Python .. code-block:: python # saturated mass density (Mg/m3) satDensity = 2.3 # fluid mass density (Mg/m3) H2ODensity = 1.0 # shear modulus (kPa) shear = 2.5e4 # bulk modulus (kPa) bulk = 6.2e5 # undrained bulk modulus (kPa) uBulk = 2.2e5 # vertical permeability, input value in m/s, units are modified to suit constitutive model mPermV = 5.0e-5 vPerm = mPermV / 9.81 / H2ODensity # horizontal permeability, input value in m/s, units are modified to suit constitutive model mPermH = 5.0e-5 hPerm = mPermH / 9.81 / H2ODensity # cohesion (kPa) cohesion = 45.0 # friction angle (degrees) phi = 0.0 # peak shear strain gammaPeak = 0.1 # reference pressure (kPa) refPress = 80.0 # pressure dependency coefficient pressCoeff = 0.0 # number of yield surfaces numSurf = 22 matTag = 1 ops.nDMaterial('PressureIndependMultiYield', matTag, 2, satDensity, shear, bulk, cohesion, gammaPeak, phi, refPress, pressCoeff, numSurf) Soil Elements ============= .. figure:: figures/9ndConnect.png :align: center :figclass: align-center Connectivity for the 9_4_QuadUP element. The soil is modeled using the nine-node :ref:`NineFourNodeQuadUP` element, with the connectivity shown above. The elements are generated automatically from the number of vertical elements. The material stage is set to 0 so that the soil is initially linear elastic. .. tabs:: .. tab:: Tcl .. code-block:: tcl set thick 1.0 set wgtX 0.0 set wgtY -9.81 for {set j 1} {$j <= $numEleY} {incr j 1} { set nI [expr 6*$j - 5] set nJ [expr $nI + 2] set nK [expr $nI + 8] set nL [expr $nI + 6] set nM [expr $nI + 1] set nN [expr $nI + 5] set nP [expr $nI + 7] set nQ [expr $nI + 3] set nR [expr $nI + 4] element 9_4_QuadUP $j $nI $nJ $nK $nL $nM $nN $nP $nQ $nR $thick $matTag $bulk $H2ODensity $hPerm $vPerm $wgtX $wgtY } # update material stage to zero for elastic behavior updateMaterialStage -material $matTag -stage 0 .. tab:: Python .. code-block:: python thick = 1.0 wgtX = 0.0 wgtY = -9.81 for j in range(1, numEleY + 1): nI = 6 * j - 5 nJ = nI + 2 nK = nI + 8 nL = nI + 6 nM = nI + 1 nN = nI + 5 nP = nI + 7 nQ = nI + 3 nR = nI + 4 ops.element('9_4_QuadUP', j, nI, nJ, nK, nL, nM, nN, nP, nQ, nR, thick, matTag, bulk, H2ODensity, hPerm, vPerm, wgtX, wgtY) # update material stage to zero for elastic behavior ops.updateMaterialStage('-material', matTag, '-stage', 0) Gravity Loading and Analysis ============================ The gravity analysis is run as a transient analysis with very large time steps. This simulates a static analysis while avoiding the conflicts that can occur when mixing static and transient analyses. The self-weight of the soil elements provides the loads, so no load pattern is needed. Gravity is first applied for 10 steps with linear elastic soil behavior, which lets the materials update their parameters for the confining pressure. The material stage is then changed with the :ref:`updateMaterialStage` command to elastoplastic behavior, and the gravity analysis is continued for 40 steps. .. tabs:: .. tab:: Tcl .. code-block:: tcl # Newmark parameters set gamma 0.5 set beta 0.25 # analysis objects constraints Transformation test NormDispIncr 1e-5 30 1 algorithm Newton numberer RCM system ProfileSPD integrator Newmark $gamma $beta analysis Transient analyze 10 5.0e2 # update material stage to consider elastoplastic behavior updateMaterialStage -material $matTag -stage 1 analyze 40 5.0e2 .. tab:: Python .. code-block:: python # Newmark parameters gamma = 0.5 beta = 0.25 # analysis objects ops.constraints('Transformation') ops.test('NormDispIncr', 1e-5, 30, 1) ops.algorithm('Newton') ops.numberer('RCM') ops.system('ProfileSPD') ops.integrator('Newmark', gamma, beta) ops.analysis('Transient') ops.analyze(10, 5.0e2) # update material stage to consider elastoplastic behavior ops.updateMaterialStage('-material', matTag, '-stage', 1) ops.analyze(40, 5.0e2) Recorders ========= The recorders are defined after the gravity analysis, so only the post-gravity results are recorded. They record: * the nodal displacements in the displacement DOF, * the nodal velocities in the pore pressure DOF, which for these u-p elements gives the pore pressure, * the stress and strain at the ninth Gauss point of each element (the center of the element). .. tabs:: .. tab:: Tcl .. code-block:: tcl # record nodal displacments and porewater pressures recorder Node -file displacement.out -time -nodeRange 1 $totalNumNode -dof 1 2 disp recorder Node -file porepressure.out -time -nodeRange 1 $totalNumNode -dof 3 vel # record stress and strain at the ninth Gauss point in the elements (center of element) recorder Element -file stress.out -time -eleRange 1 $numEleY material 9 stress recorder Element -file strain.out -time -eleRange 1 $numEleY material 9 strain .. tab:: Python .. code-block:: python # record nodal displacments and porewater pressures ops.recorder('Node', '-file', 'displacement.out', '-time', '-nodeRange', 1, totalNumNode, '-dof', 1, 2, 'disp') ops.recorder('Node', '-file', 'porepressure.out', '-time', '-nodeRange', 1, totalNumNode, '-dof', 3, 'vel') # record stress and strain at the ninth Gauss point in the elements (center of element) ops.recorder('Element', '-file', 'stress.out', '-time', '-eleRange', 1, numEleY, 'material', 9, 'stress') ops.recorder('Element', '-file', 'strain.out', '-time', '-eleRange', 1, numEleY, 'material', 9, 'strain') Consolidation Loading and Analysis ================================== The consolidation load is a 1000 kN surcharge applied downward at the center node of the upper boundary of the soil layer, using a :ref:`constantTimeSeries` and a plain load pattern. This load is effectively dropped onto the soil column instantaneously, so large Rayleigh damping parameters are used to damp out the resulting free vibration. The consolidation analysis is also a transient analysis using the Newmark integrator with the same gamma and beta as the gravity analysis. For single drainage, 800 steps with a time step of 0.25 s are used. Double drainage needs a smaller time step to converge, so 1600 steps of 0.125 s are used, giving the same 200 s duration. .. tabs:: .. tab:: Tcl .. code-block:: tcl setTime 0.0 wipeAnalysis set overburden -1000.0 # constant loading applied at the surface timeSeries Constant 1 pattern Plain 1 1 { load [expr $totalNumNode-1] 0.0 $overburden } # analysis objects constraints Penalty 1.0e16 1.0e16 test NormDispIncr 1e-4 30 1 algorithm Newton numberer RCM system ProfileSPD integrator Newmark $gamma $beta rayleigh 0.5 0.2 0.0 0.0 analysis Transient # time step and number of steps (double drainage needs a smaller time step to converge) if {$drainage == 1} { set dT 0.25 set nSteps 800 } else { set dT 0.125 set nSteps 1600 } analyze $nSteps $dT wipe .. tab:: Python .. code-block:: python ops.setTime(0.0) ops.wipeAnalysis() overburden = -1000.0 # constant loading applied at the surface ops.timeSeries('Constant', 1) ops.pattern('Plain', 1, 1) ops.load(totalNumNode - 1, 0.0, overburden) # analysis objects ops.constraints('Penalty', 1.0e16, 1.0e16) ops.test('NormDispIncr', 1e-4, 30, 1) ops.algorithm('Newton') ops.numberer('RCM') ops.system('ProfileSPD') ops.integrator('Newmark', gamma, beta) ops.rayleigh(0.5, 0.2, 0.0, 0.0) ops.analysis('Transient') # time step and number of steps (double drainage needs a smaller time step to converge) if drainage == 1: dT = 0.25 nSteps = 800 else: dT = 0.125 nSteps = 1600 ops.analyze(nSteps, dT) ops.wipe() Results ******* The figures below were made with :download:`plotResults.py ` from the recorded output of both drainage cases. The Tcl and Python versions of the analysis give identical results. Each figure shows the pore pressure at the corner nodes on the left boundary and the vertical effective stress at the element centers, at a series of times after the surcharge is applied, together with the settlement of the ground surface. For single drainage, the pore pressures dissipate through the top of the layer, and the final distribution is hydrostatic. With increasing time and decreasing excess pore pressure, the vertical effective stress approaches a linear variation that depends on the soil unit weight. The surface settlement for the single and double drainage cases is compared in the right-hand plot. .. figure:: figures/consolidationSingle.png :align: center :figclass: align-center Single drainage: pore pressure and vertical effective stress with depth, and surface settlement for both drainage cases. For double drainage, the base of the layer is also free draining (with zero pore pressure), so only the excess pore pressure is shown. It dissipates through both the top and bottom of the layer, and, as expected, the settlement occurs more rapidly than for single drainage. .. figure:: figures/consolidationDouble.png :align: center :figclass: align-center Double drainage: excess pore pressure and vertical effective stress with depth, and surface settlement.