12#ifndef BELFEM_CL_MESH_FIELD_HPP
13#define BELFEM_CL_MESH_FIELD_HPP
50 const string & aLabel,
139 return mData( aIndex );
171 return sizeof(
Field )
173 +
mLabel.capacity() *
sizeof( char ) ;
Top-level container for all mesh entities.
Definition cl_Mesh.hpp:60
size_t length() const
get the length of the vector
Definition cl_AR_Vector.hpp:257
void set_write_to_file_flag(const bool aFlag)
Definition cl_Mesh_Field.hpp:161
bool write_field_to_file() const
Definition cl_Mesh_Field.hpp:153
const string & label() const
Definition cl_Mesh_Field.cpp:74
bool mWriteToFile
Definition cl_Mesh_Field.hpp:43
real & value(const index_t aIndex)
Definition cl_Mesh_Field.hpp:137
Mesh & mParent
Definition cl_Mesh_Field.hpp:33
const FieldType mFieldType
Definition cl_Mesh_Field.hpp:38
size_t memory() const
Definition cl_Mesh_Field.hpp:169
const FieldType & field_type()
Definition cl_Mesh_Field.cpp:90
string mLabel
Definition cl_Mesh_Field.hpp:34
const index_t mIndex
Definition cl_Mesh_Field.hpp:35
const EntityType & entity_type()
Definition cl_Mesh_Field.cpp:82
Vector< real > mData
Definition cl_Mesh_Field.hpp:40
const EntityType mEntityType
Definition cl_Mesh_Field.hpp:37
void fill(const id_t aID, const real aValue)
reset a field based on a sideset or block id
Definition cl_Mesh_Field.cpp:114
Vector< real > & data()
Definition cl_Mesh_Field.cpp:98
const index_t & index() const
returns the index of the field on the mesh
Definition cl_Mesh_Field.hpp:145
const id_t mID
Definition cl_Mesh_Field.hpp:36
Field(Mesh &aParent, const string &aLabel, const index_t &aIndex, const id_t &aID, const EntityType aEntityType=EntityType::NODE, const FieldType aFieldType=FieldType::SCALAR)
Definition cl_Mesh_Field.cpp:22
const id_t & id() const
Definition cl_Mesh_Field.cpp:106
Definition cl_EF_EdgeFunction.hpp:17
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int id_t
Definition typedefs.hpp:41
FieldType
Definition Mesh_Enums.hpp:139
@ SCALAR
Definition Mesh_Enums.hpp:140
EntityType
Definition Mesh_Enums.hpp:116
@ NODE
Definition Mesh_Enums.hpp:117
uint32_t index_t
Definition typedefs.hpp:52
double real
Definition typedefs.hpp:36