DiscreteFieldFunction.create constructor
- DiscreteField result
Creates a DiscreteFieldFunction with a predefined result.
Enables a DiscreteField to be used in contexts that expect a DiscreteFieldFunction by setting the result of the function explicitly.
Call DiscreteFieldFunction.evaluate to return the given result.
Parameters:
result— The predefined function result.