9 #ifndef CMZN_FIELDDERIVATIVES_HPP__ 10 #define CMZN_FIELDDERIVATIVES_HPP__ 12 #include "opencmiss/zinc/fieldderivatives.h" 13 #include "opencmiss/zinc/field.hpp" 14 #include "opencmiss/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
116 explicit FieldGradient(cmzn_field_id field_id) : Field(field_id)
123 FieldGradient() : Field(0)
130 return FieldDerivative(cmzn_fieldmodule_create_field_derivative(
id, sourceField.
getId(), xi_index));
135 return FieldCurl(cmzn_fieldmodule_create_field_curl(
id, vectorField.
getId(), coordinateField.
getId()));
146 coordinateField.
getId()));
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
FieldGradient createFieldGradient(const Field &sourceField, const Field &coordinateField)
Definition: fieldderivatives.hpp:143
FieldDivergence createFieldDivergence(const Field &vectorField, const Field &coordinateField)
Definition: fieldderivatives.hpp:138
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:103
A field returning the gradient of a source field with respect to a given coordinate field...
Definition: fieldderivatives.hpp:112
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:128
The OpenCMISS namespace.
Definition: context.hpp:20
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:133