Here's an implementation of the Tresca Failure Function in Matlab:
main.m641 chars20 lines
Here's how you can use this function:
main.m352 chars20 lines
Note: This implementation assumes that the stresses are given in SI units, i.e. in Pascal (Pa).
gistlibby LogSnag