pymem3dg.boilerplate.preferredVolumeOsmoticPressureModel

pymem3dg.boilerplate.preferredVolumeOsmoticPressureModel(volume: float, strength: float, preferredVolume: float, reservoirVolume: float = 0)

harmonic potential type model with a preferred volume

Parameters:
  • volume (float) – enclosed volume

  • strength (float) – osmotic strength coefficient

  • preferredVolume (float) – value of preferred volume

Returns:

osmotic pressure and pressure energy

Return type:

tuple