Adding constraint to OpenFOAM library