Create a Field

This code creates a DPF Field.

import ansys.dpf.core as dpf
from ansys.dpf.core import fields_factory

field_with_factory = fields_factory.create_scalar_field(3)
field_with_factory.data = [1,2,3]