struct.beam.plastic.ipstate
Syntax
- i := struct.beam.plastic.ipstate(p,ipnum) (currently 3D ONLY)
Get plasticity state indicators at an integration point of an element with a plastic material model. Each beam element with a plastic material model has a number of integration points distributed throughout its volume, and each of them tracks its plasticity state. The integration point locations are shown in the beams with rectangular and circular cross-sections illustrated in Beam Structural Elements.
- Returns:
i - plasticity state indicators, encoded as bits (shear-n: bit 1, tension-n: bit 2, shear-p: bit 3, tension-p: bit 4). The
math.and
andmath.or
functions can be used to check against a specific bit or bit pattern. If no bits are set (the integer value is zero), then the element has never yielded.- Arguments:
p - pointer to a beam-type element
ipnum - integration point number for beams with rectangular- or circular cross-sections
Usage Example
The following code fragment uses the plasticity state indicators for integration point 5 of the beam element with component id of 115 to print out the plasticity states of this element.
fish define getState( state )
if ( state == 0 ) then
io.out('never yielded')
end_if
if ( math.and( 1, state ) == 1 ) then
io.out('shear-n')
end_if
if ( math.and( 2, state ) == 2 ) then
io.out('tension-n')
end_if
if ( math.and( 4, state ) == 4 ) then
io.out('shear-p')
end_if
if ( math.and( 8, state ) == 8 ) then
io.out('tension-p')
end_if
end
[ getState( struct.beam.plastic.ipstate( struct.find(115), 5 )) ]
Was this helpful? ... | Itasca Software © 2024, Itasca | Updated: Aug 13, 2024 |