An integrated solver may be used for both a fluid phase and a solid phase. The integrated solver may use constitutive equations for the fluid phase and the solid phase, and calculate the stress in the fluid and solid using the same integration point. The integrated solver may also calculate other state variables using the same integration point.