29 namespace ContainerDataIOTags {
36 static constexpr std::string_view mInfo =
"Properties";
38 template<
class TDataType,
class TEntityType>
40 const TEntityType& rEntity,
43 static_assert(!(std::is_same_v<TEntityType, ModelPart::NodeType>),
"Properties retrieval is only supported for element and conditions.");
44 return rEntity.GetProperties().GetValue(rVariable);
47 template<
class TDataType,
class TEntityType>
51 const TDataType& rValue)
53 static_assert(!(std::is_same_v<TEntityType, ModelPart::NodeType>),
"Properties setter is only supported for element and conditions.");
54 rEntity.GetProperties().SetValue(rVariable, rValue);
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
Variable class contains all information needed to store and retrive data from a data container.
Definition: variable.h:63
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
Definition: container_data_io.h:34