9 #ifndef CMZN_FIELDTYPESFINITEELEMENT_HPP__ 10 #define CMZN_FIELDTYPESFINITEELEMENT_HPP__ 12 #include "opencmiss/zinc/fieldfiniteelement.h" 13 #include "opencmiss/zinc/field.hpp" 14 #include "opencmiss/zinc/fieldcache.hpp" 15 #include "opencmiss/zinc/fieldmodule.hpp" 16 #include "opencmiss/zinc/element.hpp" 17 #include "opencmiss/zinc/node.hpp" 40 Field(reinterpret_cast<cmzn_field_id>(field_finite_element_id))
50 return reinterpret_cast<cmzn_field_finite_element_id
>(this->id);
79 Node::ValueLabel nodeValueLabel,
int versionNumber,
int valuesCount,
double *valuesOut)
81 return cmzn_field_finite_element_get_node_parameters(this->
getDerivedId(),
82 cache.
getId(), componentNumber,
static_cast<cmzn_node_value_label
>(nodeValueLabel),
83 versionNumber, valuesCount, valuesOut);
112 Node::ValueLabel nodeValueLabel,
int versionNumber,
int valuesCount,
const double *valuesIn)
114 return cmzn_field_finite_element_set_node_parameters(this->
getDerivedId(),
115 cache.
getId(), componentNumber,
static_cast<cmzn_node_value_label
>(nodeValueLabel),
116 versionNumber, valuesCount, valuesIn);
129 return cmzn_field_finite_element_has_parameters_at_location(this->
getDerivedId(), cache.
getId());
148 const Field& sourceField);
157 Field(reinterpret_cast<cmzn_field_id>(field_edge_discontinuity_id))
167 return reinterpret_cast<cmzn_field_edge_discontinuity_id
>(id);
176 MEASURE_INVALID = CMZN_FIELD_EDGE_DISCONTINUITY_MEASURE_INVALID,
179 MEASURE_C1 = CMZN_FIELD_EDGE_DISCONTINUITY_MEASURE_C1,
183 MEASURE_G1 = CMZN_FIELD_EDGE_DISCONTINUITY_MEASURE_G1,
188 MEASURE_SURFACE_NORMAL = CMZN_FIELD_EDGE_DISCONTINUITY_MEASURE_SURFACE_NORMAL
204 return Field(cmzn_field_edge_discontinuity_get_conditional_field(
getDerivedId()));
220 return cmzn_field_edge_discontinuity_set_conditional_field(
getDerivedId(), conditionalField.
getId());
247 return cmzn_field_edge_discontinuity_set_measure(
getDerivedId(),
248 static_cast<cmzn_field_edge_discontinuity_measure>(measure));
267 const Field& embeddedLocationField);
291 Field(reinterpret_cast<cmzn_field_id>(field_find_mesh_location_id))
300 SEARCH_MODE_INVALID = CMZN_FIELD_FIND_MESH_LOCATION_SEARCH_MODE_INVALID,
303 SEARCH_MODE_EXACT = CMZN_FIELD_FIND_MESH_LOCATION_SEARCH_MODE_EXACT,
307 SEARCH_MODE_NEAREST = CMZN_FIELD_FIND_MESH_LOCATION_SEARCH_MODE_NEAREST
319 return Mesh(cmzn_field_find_mesh_location_get_mesh(
320 reinterpret_cast<cmzn_field_find_mesh_location_id>(
id)));
331 return static_cast<SearchMode>(cmzn_field_find_mesh_location_get_search_mode(
332 reinterpret_cast<cmzn_field_find_mesh_location_id>(
id)));
344 return cmzn_field_find_mesh_location_set_search_mode(
345 reinterpret_cast<cmzn_field_find_mesh_location_id>(
id),
346 static_cast<cmzn_field_find_mesh_location_search_mode>(searchMode));
392 Field(reinterpret_cast<cmzn_field_id>(field_stored_mesh_location_id))
410 Field(reinterpret_cast<cmzn_field_id>(field_stored_string_id))
473 const Node& lookupNode);
486 cmzn_fieldmodule_create_field_finite_element(
id,numberOfComponents)));
495 const Field& sourceField)
498 cmzn_fieldmodule_create_field_edge_discontinuity(
id, sourceField.
getId())));
508 return FieldEmbedded(cmzn_fieldmodule_create_field_embedded(
id,
509 sourceField.
getId(), embeddedLocationField.
getId()));
513 const Field& sourceField,
const Field& meshField,
const Mesh& mesh)
516 cmzn_fieldmodule_create_field_find_mesh_location(
id, sourceField.
getId(), meshField.
getId(), mesh.
getId())));
527 return FieldNodeValue(cmzn_fieldmodule_create_field_node_value(
id,
528 sourceField.
getId(),
static_cast<cmzn_node_value_label
>(nodeValueLabel),
535 cmzn_fieldmodule_create_field_stored_mesh_location(
id, hostMesh.
getId())));
546 cmzn_fieldmodule_create_field_stored_string(
id)));
561 return FieldIsOnFace(cmzn_fieldmodule_create_field_is_on_face(
562 id, static_cast<cmzn_element_face_type>(face)));
566 const Node& lookupNode)
569 id, sourceField.
getId(), lookupNode.
getId()));
FieldFiniteElement createFieldFiniteElement(int numberOfComponents)
Definition: fieldfiniteelement.hpp:483
A real-valued interpolated field.
Definition: fieldfiniteelement.hpp:31
ValueLabel
Definition: node.hpp:80
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
FieldStoredString castStoredString()
Definition: fieldfiniteelement.hpp:549
int setSearchMode(SearchMode searchMode)
Definition: fieldfiniteelement.hpp:342
int setMeasure(Measure measure)
Definition: fieldfiniteelement.hpp:245
FieldFindMeshLocation castFindMeshLocation()
Definition: fieldfiniteelement.hpp:519
FieldStoredMeshLocation createFieldStoredMeshLocation(const Mesh &mesh)
Definition: fieldfiniteelement.hpp:532
FieldIsOnFace createFieldIsOnFace(Element::FaceType face)
Definition: fieldfiniteelement.hpp:559
FieldEmbedded createFieldEmbedded(const Field &sourceField, const Field &embeddedLocationField)
Definition: fieldfiniteelement.hpp:506
bool hasParametersAtLocation(const Fieldcache &cache)
Definition: fieldfiniteelement.hpp:127
FieldStoredString createFieldStoredString()
Definition: fieldfiniteelement.hpp:543
FieldFiniteElement castFiniteElement()
Definition: fieldfiniteelement.hpp:489
A field which stores and returns string values at nodes.
Definition: fieldfiniteelement.hpp:401
FieldNodeValue createFieldNodeValue(const Field &sourceField, Node::ValueLabel nodeValueLabel, int versionNumber)
Definition: fieldfiniteelement.hpp:524
A field which represents and returns labelled node parameters, i.
Definition: fieldfiniteelement.hpp:360
FieldIsExterior createFieldIsExterior()
Definition: fieldfiniteelement.hpp:554
FieldEdgeDiscontinuity castEdgeDiscontinuity()
Definition: fieldfiniteelement.hpp:501
A field returning a value of a source field at an embedded location.
Definition: fieldfiniteelement.hpp:259
int getNodeParameters(const Fieldcache &cache, int componentNumber, Node::ValueLabel nodeValueLabel, int versionNumber, int valuesCount, double *valuesOut)
Definition: fieldfiniteelement.hpp:78
cmzn_field_finite_element_id getDerivedId()
Definition: fieldfiniteelement.hpp:48
cmzn_field_id getId() const
Definition: field.hpp:103
SearchMode
Definition: fieldfiniteelement.hpp:298
A field measuring discontinuity between surface elements.
Definition: fieldfiniteelement.hpp:144
Field getConditionalField()
Definition: fieldfiniteelement.hpp:202
Mesh getMesh()
Definition: fieldfiniteelement.hpp:317
A field storing locations within a mesh.
Definition: fieldfiniteelement.hpp:383
cmzn_field_edge_discontinuity_id getDerivedId()
Definition: fieldfiniteelement.hpp:165
Measure
Definition: fieldfiniteelement.hpp:174
FieldEdgeDiscontinuity createFieldEdgeDiscontinuity(const Field &sourceField)
Definition: fieldfiniteelement.hpp:494
cmzn_mesh_id getId() const
Definition: mesh.hpp:87
cmzn_node_id getId() const
Definition: node.hpp:136
int setNodeParameters(const Fieldcache &cache, int componentNumber, Node::ValueLabel nodeValueLabel, int versionNumber, int valuesCount, const double *valuesIn)
Definition: fieldfiniteelement.hpp:111
FieldStoredMeshLocation castStoredMeshLocation()
Definition: fieldfiniteelement.hpp:538
Cache for setting domain locations at which fields are evaluated or assigned.
Definition: fieldcache.hpp:33
A field which returns 1 on 2-D faces and 1-D lines considered to lie on a specified face of their top...
Definition: fieldfiniteelement.hpp:443
A field which returns 1 on 2-D faces and 1-D lines considered as exterior to their top-level element...
Definition: fieldfiniteelement.hpp:421
SearchMode getSearchMode()
Definition: fieldfiniteelement.hpp:329
A field whose value equals source field calculated at the lookup node instead of the domain location ...
Definition: fieldfiniteelement.hpp:465
The OpenCMISS namespace.
Definition: context.hpp:20
FieldNodeLookup createFieldNodeLookup(const Field &sourceField, const Node &lookupNode)
Definition: fieldfiniteelement.hpp:565
Point object used to represent finite element nodes.
Definition: node.hpp:34
cmzn_fieldcache_id getId() const
Definition: fieldcache.hpp:86
FaceType
Definition: element.hpp:110
A finite element mesh consisting of a set of elements of fixed dimension.
Definition: mesh.hpp:34
Measure getMeasure()
Definition: fieldfiniteelement.hpp:231
A field that computes the location in a mesh.
Definition: fieldfiniteelement.hpp:282
int setConditionalField(const Field &conditionalField)
Definition: fieldfiniteelement.hpp:218
FieldFindMeshLocation createFieldFindMeshLocation(const Field &sourceField, const Field &meshField, const Mesh &mesh)
Definition: fieldfiniteelement.hpp:512