9 #ifndef CMZN_FIELDMESHOPERATORS_HPP__
10 #define CMZN_FIELDMESHOPERATORS_HPP__
12 #include "zinc/fieldmeshoperators.h"
13 #include "zinc/field.hpp"
14 #include "zinc/fieldmodule.hpp"
15 #include "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));
137 class FieldMeshIntegralSquares :
public FieldMeshIntegral
161 explicit FieldMeshIntegralSquares(cmzn_field_mesh_integral_id field_mesh_integral_id) :
162 FieldMeshIntegral(field_mesh_integral_id)
166 const Field& integrandField,
const Field& coordinateField,
const Mesh& mesh);
169 FieldMeshIntegralSquares()
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:49
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:368
A field calculating the integral over a mesh.
Definition: fieldmeshoperators.hpp:33
cmzn_field_id getId() const
Definition: field.hpp:101
FieldMeshIntegralSquares createFieldMeshIntegralSquares(const Field &integrandField, const Field &coordinateField, const Mesh &mesh)
Definition: fieldmeshoperators.hpp:187
cmzn_mesh_id getId() const
Definition: element.hpp:840
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
A finite element mesh consisting of a set of elements of fixed dimension.
Definition: element.hpp:787
int setElementQuadratureRule(Element::QuadratureRule quadratureRule)
Definition: fieldmeshoperators.hpp:131