Go to the documentation of this file.
11 #ifndef vtkm_filter_flow_worklet_Field_h
12 #define vtkm_filter_flow_worklet_Field_h
28 template <
typename FieldArrayType>
76 template <
typename FieldArrayType>
85 const FieldArrayType& magneticValues,
133 template <
typename FieldArrayType>
156 throw(
"Unsupported field association");
171 template <
typename FieldArrayType>
191 const FieldArrayType& magneticField,
216 #endif //vtkm_filter_flow_worklet_Field_h
typename FieldArrayType::ReadPortalType FieldPortalType
Definition: filter/flow/worklet/Field.h:80
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC Association GetAssociation() const
Definition: filter/flow/worklet/Field.h:95
FieldArrayType FieldValues
Definition: filter/flow/worklet/Field.h:167
#define VTKM_ASSERT(condition)
Definition: Assert.h:43
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
VTKM_EXEC void GetValue(const vtkm::VecVariable< vtkm::Id, 8 > &indices, const vtkm::Id vertices, const vtkm::Vec3f ¶metric, const vtkm::UInt8 cellShape, vtkm::VecVariable< vtkm::Vec3f, 2 > &value) const
Definition: filter/flow/worklet/Field.h:55
VTKM_CONT VelocityField(const FieldArrayType &fieldValues)
Definition: filter/flow/worklet/Field.h:144
VTKM_CONT ExecutionVelocityField(const FieldArrayType &velocityValues, const Association assoc, vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token)
Definition: filter/flow/worklet/Field.h:36
Association
Definition: cont/Field.h:34
VTKM_EXEC void GetValue(const vtkm::VecVariable< vtkm::Id, 8 > &indices, const vtkm::Id vertices, const vtkm::Vec3f ¶metric, const vtkm::UInt8 cellShape, vtkm::VecVariable< vtkm::Vec3f, 2 > &value) const
Definition: filter/flow/worklet/Field.h:106
Association Assoc
Definition: filter/flow/worklet/Field.h:209
FieldPortalType ElectricValues
Definition: filter/flow/worklet/Field.h:128
Definition: filter/flow/worklet/Field.h:172
const VTKM_CONT ExecutionType PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: filter/flow/worklet/Field.h:160
FieldPortalType MagneticValues
Definition: filter/flow/worklet/Field.h:129
Association Assoc
Definition: filter/flow/worklet/Field.h:130
VTKM_CONT VelocityField()=default
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC void GetValue(const vtkm::Id cellId, vtkm::VecVariable< vtkm::Vec3f, 2 > &value) const
Definition: filter/flow/worklet/Field.h:97
Definition: filter/flow/worklet/Field.h:29
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
VTKM_EXEC_CONT void Append(ComponentType value)
Definition: VecVariable.h:80
A short variable-length array with maximum length.
Definition: VecVariable.h:30
typename FieldArrayType::ReadPortalType FieldPortalType
Definition: filter/flow/worklet/Field.h:32
VTKM_EXEC Association GetAssociation() const
Definition: filter/flow/worklet/Field.h:45
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_EXEC vtkm::ErrorCode CellInterpolate(const FieldVecType &pointFieldValues, const vtkm::Vec< ParametricCoordType, 3 > &pcoords, CellShapeTag tag, typename FieldVecType::ComponentType &result)
Definition: CellInterpolate.h:56
Association Assoc
Definition: filter/flow/worklet/Field.h:73
Definition: filter/flow/worklet/Field.h:77
uint8_t UInt8
Definition: Types.h:157
constexpr VTKM_EXEC_CONT vtkm::Vec< T, vtkm::IdComponent(sizeof...(Ts)+1)> make_Vec(T value0, Ts &&... args)
Initializes and returns a Vec containing all the arguments.
Definition: Types.h:1212
ExecutionVelocityField< FieldArrayType > ExecutionType
Definition: filter/flow/worklet/Field.h:137
VTKM_EXEC void GetValue(const vtkm::Id cellId, vtkm::VecVariable< vtkm::Vec3f, 2 > &value) const
Definition: filter/flow/worklet/Field.h:47
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
Definition: DeviceAdapterTag.h:52
ExecutionElectroMagneticField< FieldArrayType > ExecutionType
Definition: filter/flow/worklet/Field.h:175
VTKM_CONT ElectroMagneticField(const FieldArrayType &electricField, const FieldArrayType &magneticField)
Definition: filter/flow/worklet/Field.h:182
VTKM_CONT ElectroMagneticField()=default
FieldArrayType ElectricField
Definition: filter/flow/worklet/Field.h:207
VTKM_CONT ElectroMagneticField(const FieldArrayType &electricField, const FieldArrayType &magneticField, const Association assoc)
Definition: filter/flow/worklet/Field.h:190
Definition: filter/flow/worklet/Field.h:134
Association Assoc
Definition: filter/flow/worklet/Field.h:168
const VTKM_CONT ExecutionType PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: filter/flow/worklet/Field.h:200
FieldArrayType MagneticField
Definition: filter/flow/worklet/Field.h:208
FieldPortalType VelocityValues
Definition: filter/flow/worklet/Field.h:72
VTKM_CONT ExecutionElectroMagneticField(const FieldArrayType &electricValues, const FieldArrayType &magneticValues, const Association assoc, vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token)
Definition: filter/flow/worklet/Field.h:84
VTKM_CONT VelocityField(const FieldArrayType &fieldValues, const Association assoc)
Definition: filter/flow/worklet/Field.h:151