def validateFitMohrCoulomb(value):
  """
  Validate fit to Mohr-Coulomb yield surface.
  """
  if not value in ["inscribed", "middle", "circumscribed"]:
    raise ValueError("Unknown fit to Mohr-Coulomb yield surface.")
  return value