9 #ifndef CMZN_FIELDMESHOPERATORS_HPP__ 10 #define CMZN_FIELDMESHOPERATORS_HPP__ 12 #include "opencmiss/zinc/fieldmeshoperators.h" 13 #include "opencmiss/zinc/field.hpp" 14 #include "opencmiss/zinc/fieldmodule.hpp" 15 #include "opencmiss/zinc/element.hpp" 42 inline cmzn_field_mesh_integral_id getDerivedId()
44 return reinterpret_cast<cmzn_field_mesh_integral_id
>(id);
54 Field(reinterpret_cast<cmzn_field_id>(field_mesh_integral_id))
72 return cmzn_field_mesh_integral_get_numbers_of_points(getDerivedId(),
73 valuesCount, valuesOut);
105 return cmzn_field_mesh_integral_set_numbers_of_points(getDerivedId(),
106 valuesCount, valuesIn);
118 cmzn_field_mesh_integral_get_element_quadrature_rule(getDerivedId()));
133 return cmzn_field_mesh_integral_set_element_quadrature_rule(getDerivedId(),
134 static_cast<cmzn_element_quadrature_rule>(quadratureRule));
166 const Field& integrandField,
const Field& coordinateField,
const Mesh& mesh);
175 const Field& integrandField,
const Field& coordinateField,
const Mesh& mesh)
178 cmzn_fieldmodule_create_field_mesh_integral(
id, integrandField.
getId(),
188 const Field& integrandField,
const Field& coordinateField,
const Mesh& mesh)
191 cmzn_fieldmodule_create_field_mesh_integral_squares(
id, integrandField.
getId(),
int setNumbersOfPoints(int valuesCount, const int *valuesIn)
Definition: fieldmeshoperators.hpp:103
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
Element::QuadratureRule getElementQuadratureRule()
Definition: fieldmeshoperators.hpp:115
A specialisation of the mesh integral field that integrates the squares of the components of the inte...
Definition: fieldmeshoperators.hpp:157
QuadratureRule
Definition: element.hpp:187
A field calculating the integral over a mesh.
Definition: fieldmeshoperators.hpp:33
cmzn_field_id getId() const
Definition: field.hpp:103
FieldMeshIntegralSquares createFieldMeshIntegralSquares(const Field &integrandField, const Field &coordinateField, const Mesh &mesh)
Definition: fieldmeshoperators.hpp:187
cmzn_mesh_id getId() const
Definition: mesh.hpp:87
FieldMeshIntegral castMeshIntegral()
Definition: fieldmeshoperators.hpp:182
int getNumbersOfPoints(int valuesCount, int *valuesOut)
Definition: fieldmeshoperators.hpp:70
FieldMeshIntegral createFieldMeshIntegral(const Field &integrandField, const Field &coordinateField, const Mesh &mesh)
Definition: fieldmeshoperators.hpp:174
The OpenCMISS namespace.
Definition: context.hpp:20
A finite element mesh consisting of a set of elements of fixed dimension.
Definition: mesh.hpp:34
int setElementQuadratureRule(Element::QuadratureRule quadratureRule)
Definition: fieldmeshoperators.hpp:131