9 #ifndef CMZN_FIELDDERIVATIVES_HPP__
10 #define CMZN_FIELDDERIVATIVES_HPP__
12 #include "zinc/fieldderivatives.h"
13 #include "zinc/field.hpp"
14 #include "zinc/fieldmodule.hpp"
20 class FieldDerivative :
public Field
33 explicit FieldDerivative(cmzn_field_id field_id) : Field(field_id)
40 FieldDerivative() : Field(0)
44 class FieldCurl :
public Field
56 explicit FieldCurl(cmzn_field_id field_id) : Field(field_id)
63 FieldCurl() : Field(0)
67 class FieldDivergence :
public Field
81 explicit FieldDivergence(cmzn_field_id field_id) : Field(field_id)
88 FieldDivergence() : Field(0)
92 class FieldGradient :
public Field
115 explicit FieldGradient(cmzn_field_id field_id) : Field(field_id)
122 FieldGradient() : Field(0)
129 return FieldDerivative(cmzn_fieldmodule_create_field_derivative(
id, sourceField.
getId(), xi_index));
134 return FieldCurl(cmzn_fieldmodule_create_field_curl(
id, vectorField.
getId(), coordinateField.
getId()));
145 coordinateField.
getId()));
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:46
FieldGradient createFieldGradient(const Field &sourceField, const Field &coordinateField)
Definition: fieldderivatives.hpp:142
FieldDivergence createFieldDivergence(const Field &vectorField, const Field &coordinateField)
Definition: fieldderivatives.hpp:137
A field returning the derivative of the field with respect to element xi_index as its primary value...
Definition: fieldderivatives.hpp:29
cmzn_field_id getId() const
Definition: field.hpp:98
A field returning the curl of vector_field at location given by coordinate_field. ...
Definition: fieldderivatives.hpp:111
A scalar field returning the divergence of vector field within coordinate field.
Definition: fieldderivatives.hpp:77
FieldDerivative createFieldDerivative(const Field &sourceField, int xi_index)
Definition: fieldderivatives.hpp:127
A field returning the curl of vector_field at location given by coordinate_field. ...
Definition: fieldderivatives.hpp:52
FieldCurl createFieldCurl(const Field &vectorField, const Field &coordinateField)
Definition: fieldderivatives.hpp:132