filters
NaNFilter
Filter out faces in a PhaseField where any vertex has NaN phase values.
apply(phasefield)
Apply NaN filtering to the given PhaseField.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
phasefield |
PhaseField
|
The PhaseField object to filter. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
PhaseField |
PhaseField
|
The PhaseField object with updated face masks. |
PhaseDiffFilter
Filter out faces in a PhaseField based on phase differences.
Faces where any edge has an absolute modulated phase difference outside the threshold are filtered out.
threshold: float = threshold
instance-attribute
__init__(threshold)
Initialize the PhaseDiffFilter with a threshold.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
threshold |
float
|
Phase difference threshold for filtering faces. |
required |
apply(phasefield)
Apply phase difference filtering to the given PhaseField.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
phasefield |
PhaseField
|
The PhaseField object to filter. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
PhaseField |
PhaseField
|
The PhaseField object with updated face masks. |