def location_to_field_association(loc):
    """Helper to map location to VTK/Enum value"""
    if loc == "Point":
        return 0
    if loc == "Cell":
        return 1
    if loc == "Field":
        return 3

    return 4