def get_G(E, nu):
  """
  Returns shear modulus given Young's modulus and Poisson's ratio

  Parameters
  ----------
  E: float
      Young's modulus
  nu : float
      Poisson's ratio

  Returns
  -------
  float
      Shear modulus
  """
  return E / (2. * (1. + nu))