9 #ifndef CMZN_FIELDTYPESFINITEELEMENT_HPP__
10 #define CMZN_FIELDTYPESFINITEELEMENT_HPP__
12 #include "zinc/fieldfiniteelement.h"
13 #include "zinc/field.hpp"
14 #include "zinc/fieldmodule.hpp"
15 #include "zinc/element.hpp"
38 Field(reinterpret_cast<cmzn_field_id>(field_finite_element_id))
56 const Field& embeddedLocationField);
60 FieldEmbedded() : Field(0)
80 Field(reinterpret_cast<cmzn_field_id>(field_find_mesh_location_id))
108 return Mesh(cmzn_field_find_mesh_location_get_mesh(
109 reinterpret_cast<cmzn_field_find_mesh_location_id>(
id)));
120 return static_cast<SearchMode>(cmzn_field_find_mesh_location_get_search_mode(
121 reinterpret_cast<cmzn_field_find_mesh_location_id>(
id)));
133 return cmzn_field_find_mesh_location_set_search_mode(
134 reinterpret_cast<cmzn_field_find_mesh_location_id>(
id),
135 static_cast<cmzn_field_find_mesh_location_search_mode>(searchMode));
138 class FieldNodeValue :
public Field
148 explicit FieldNodeValue(cmzn_field_id field_id) : Field(field_id)
156 FieldNodeValue() : Field(0)
176 Field(reinterpret_cast<cmzn_field_id>(field_stored_mesh_location_id))
193 explicit FieldStoredString(cmzn_field_stored_string_id field_stored_string_id) :
194 Field(reinterpret_cast<cmzn_field_id>(field_stored_string_id))
201 cmzn_fieldmodule_create_field_finite_element(
id,numberOfComponents)));
211 return FieldEmbedded(cmzn_fieldmodule_create_field_embedded(
id,
212 sourceField.
getId(), embeddedLocationField.
getId()));
216 const Field& sourceField,
const Field& meshField,
const Mesh& mesh)
219 cmzn_fieldmodule_create_field_find_mesh_location(
id, sourceField.
getId(), meshField.
getId(), mesh.
getId())));
230 return FieldNodeValue(cmzn_fieldmodule_create_field_node_value(
id,
231 sourceField.
getId(),
static_cast<cmzn_node_value_label
>(nodeValueLabel),
238 cmzn_fieldmodule_create_field_stored_mesh_location(
id, mesh.
getId())));
249 cmzn_fieldmodule_create_field_stored_string(
id)));
FieldFiniteElement createFieldFiniteElement(int numberOfComponents)
Definition: fieldfiniteelement.hpp:198
A real-valued field defined by element basis.
Definition: fieldfiniteelement.hpp:29
ValueLabel
Definition: node.hpp:83
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:46
FieldStoredString castStoredString()
Definition: fieldfiniteelement.hpp:252
int setSearchMode(SearchMode searchMode)
Definition: fieldfiniteelement.hpp:131
FieldFindMeshLocation castFindMeshLocation()
Definition: fieldfiniteelement.hpp:222
FieldStoredMeshLocation createFieldStoredMeshLocation(const Mesh &mesh)
Definition: fieldfiniteelement.hpp:235
FieldEmbedded createFieldEmbedded(const Field &sourceField, const Field &embeddedLocationField)
Definition: fieldfiniteelement.hpp:209
FieldStoredString createFieldStoredString()
Definition: fieldfiniteelement.hpp:246
FieldFiniteElement castFiniteElement()
Definition: fieldfiniteelement.hpp:204
A field which stores and returns string values at nodes.
Definition: fieldfiniteelement.hpp:185
FieldNodeValue createFieldNodeValue(const Field &sourceField, Node::ValueLabel nodeValueLabel, int versionNumber)
Definition: fieldfiniteelement.hpp:227
A field which represents and returns node values/derivatives.
Definition: fieldfiniteelement.hpp:144
Definition: fieldfiniteelement.hpp:96
A field returning a value of a source field at an embedded location.
Definition: fieldfiniteelement.hpp:48
cmzn_field_id getId() const
Definition: field.hpp:98
SearchMode
Definition: fieldfiniteelement.hpp:87
Mesh getMesh()
Definition: fieldfiniteelement.hpp:106
A field storing locations within a mesh.
Definition: fieldfiniteelement.hpp:167
cmzn_mesh_id getId() const
Definition: element.hpp:703
FieldStoredMeshLocation castStoredMeshLocation()
Definition: fieldfiniteelement.hpp:241
SearchMode getSearchMode()
Definition: fieldfiniteelement.hpp:118
Definition: fieldfiniteelement.hpp:89
A finite element mesh consisting of a set of elements of fixed dimension.
Definition: element.hpp:650
Definition: fieldfiniteelement.hpp:92
A field that computes the location in a mesh.
Definition: fieldfiniteelement.hpp:71
FieldFindMeshLocation createFieldFindMeshLocation(const Field &sourceField, const Field &meshField, const Mesh &mesh)
Definition: fieldfiniteelement.hpp:215