3.4.17. updateMaterialStage Command
This command changes the stage of a material during an analysis. It is used mainly with geotechnical materials, so that the soil can respond elastically while the gravity loads are applied and then be switched to elastoplastic (or undrained) behavior for the static or dynamic loading that follows.
- updateMaterialStage -material $matTag -stage $value <-parameter $paramTag>
ops.updateMaterialStage('-material', matTag, '-stage', value, <'-parameter', paramTag>)
Argument |
Type |
Description |
|---|---|---|
$matTag |
integer |
tag of the material whose stage is to be changed |
$value |
integer |
the new stage. What the values mean depends on the material (see the table below); usually 0 is elastic and 1 is elastoplastic. |
$paramTag |
integer |
tag of the temporary parameter used to make the change (optional). It must not be the tag of an existing parameter. The default is one more than the number of parameters (Tcl) or one more than the largest parameter tag (Python). |
3.4.17.1. How It Works
The command creates a temporary parameter, searches the elements in the domain for one whose materials accept the request updateMaterialStage $matTag, sets the stage and then removes the parameter. It must therefore be called after the elements are created. If no element uses a material that accepts the request, the warning MaterialStageParameter::setDomain() - no effect with material tag ... is printed and nothing is changed.
The search stops at the first element that accepts the request. Only the material points of that element are set directly. This works because most of the materials listed below store their stage in a variable that is shared by more than one material point:
per tag: shared by all material points created from the same material tag.
per type: shared by all materials of that type, whatever their tag. Changing the stage of one of them changes it for all of them.
per point: each material point has its own stage. Only the material points of the first element found are changed (see the warnings in the table).
3.4.17.2. Materials That Use It
Warning
For the materials marked per type in the table (PM4Sand, PM4Silt, ManzariDafalias, SAniSandMS, J2CyclicBoundingSurface, CycLiqCP, CycLiqCPSP, PyLiq1, TzLiq1 and QzLiq1), the stage is shared by every material of that type in the model. updateMaterialStage changes the stage of all of them, not only the one with $matTag. Different layers modeled with the same material type therefore cannot be given different stages, e.g. one PM4Sand layer kept elastic while another is switched to elastoplastic.
Material |
Stage values |
Shared |
Notes |
|---|---|---|---|
0 linear elastic, 1 elastoplastic |
per tag |
||
0 linear elastic, 1 elastoplastic, 2 linear elastic with moduli scaled to the confinement when stage 2 is set |
per tag |
||
0, 1, 2 as above |
per tag |
||
0, 1, 2 as above |
per tag |
||
0 combined bulk modulus of the fluid not included (drained), not 0 included (undrained) |
per tag |
If |
|
0 elastic, 1 elastoplastic |
per type |
Warning: all tags of this type are changed. |
|
0 elastic, 1 elastoplastic |
per type |
Warning: all tags of this type are changed. |
|
0 elastic, 1 elastoplastic |
per type |
Warning: all tags of this type are changed. When set to 1, the state of the material points of the first element found is adjusted to lie inside the bounding surface. The other material points are not adjusted. |
|
0 elastic, 1 elastoplastic |
per type |
Warning: all tags of this type are changed. |
|
0 elastic, 1 elastoplastic, 2 viscoelastic |
per type |
Warning: all tags of this type are changed. |
|
0 elastic, 1 elastoplastic |
per type |
Warning: all tags of this type are changed. |
|
0 elastic, 1 elastoplastic |
per type |
Warning: all tags of this type are changed. |
|
0 elastic, 1 elastoplastic |
per point |
Warning: only the material points of the first element found are changed. Also, the material does not check |
|
passed to the wrapped material |
as wrapped material |
Use the tag of the wrapper. The value is passed to the wrapped material, so its meaning is that of the wrapped material. |
|
0 (default) independent of pore pressure, 1 depends on pore pressure |
per type |
Warning: all tags of this type are changed. Also, the value given is ignored; any call sets the stage to 1, and it cannot be set back to 0. |
|
0 (default), 1 as for PyLiq1 |
per type |
Warning: as for PyLiq1. |
|
0 (default), 1 as for PyLiq1 |
per type |
Warning: as for PyLiq1. |
|
DruckerPragerThermal |
less than 2 elastic, 2 elastoplastic (default) |
per point |
Warning: the new stage is read from the wrong field of the parameter, so the value given is not used and the resulting stage is undefined. Only the material points of the first element found are changed. Do not use. |
Other materials do not respond to the command, including:
Drucker Prager Material, which explicitly ignores it. Its elastic/plastic state is changed with the
materialStateparameter instead.VonPapaDamage, which mentions the command in a comment only.
Note
$valuemust be an integer.A typical sequence is: apply gravity with stage 0, analyze to equilibrium, call
updateMaterialStagewith stage 1, then apply the dynamic loading.For Tcl, if the model already defines parameters, the default
$paramTagmay be in use. Give an unused tag with-parameterin that case.
Example:
The following example sets the stage of material 1 to elastoplastic after the gravity analysis.
# gravity, elastic
updateMaterialStage -material 1 -stage 0
analyze 10
# switch to elastoplastic
updateMaterialStage -material 1 -stage 1
analyze 10
# gravity, elastic
ops.updateMaterialStage('-material', 1, '-stage', 0)
ops.analyze(10)
# switch to elastoplastic
ops.updateMaterialStage('-material', 1, '-stage', 1)
ops.analyze(10)
Code Developed by: Zhaohui Yang