OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Field defined by values fefined on unstructured grid. More...
#include <unstructuredgridfield.h>
Classes | |
class | Cell |
class | CellContainingPointFunctor |
class | CellInsertionFunctor |
class | Vertex |
Public Member Functions | |
UnstructuredGridField (int nvert, int ncells, double octreeOriginShift=0.0) | |
Constructor. More... | |
virtual | ~UnstructuredGridField () |
void | setVertexValue (int num, const FloatArray &vv) |
void | addVertex (int num, FloatArray &coords) |
Vertex * | getVertex (int num) |
void | addCell (int num, Element_Geometry_Type type, IntArray &vertices) |
int | evaluateAt (FloatArray &answer, const FloatArray &coords, ValueModeType mode, TimeStep *tStep) override |
Evaluates the field at given point. More... | |
int | evaluateAt (FloatArray &answer, DofManager *dman, ValueModeType mode, TimeStep *tStep) override |
Implementaton of Field::evaluateAt for DofManager. More... | |
contextIOResultType | saveContext (DataStream &stream, ContextMode mode) override |
Stores receiver state to output stream. More... | |
contextIOResultType | restoreContext (DataStream &stream, ContextMode mode) override |
Restores the receiver state previously written in stream. More... | |
const char * | giveClassName () const override |
Public Member Functions inherited from oofem::Field | |
Field (FieldType b) | |
Constructor. More... | |
virtual | ~Field () |
FieldType | giveType () |
Returns the type of receiver. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Member Functions | |
void | initOctree () |
Protected Attributes | |
std::vector< Cell > | cellList |
std::vector< Vertex > | vertexList |
std::vector< FloatArray > | valueList |
OctreeSpatialLocalizerT< Cell > | spatialLocalizer |
Spatial Localizer. More... | |
long int | octreeTimeStamp |
octree build time stamp More... | |
long int | timeStamp |
receiver timestamp More... | |
double | octreeOriginShift |
octree origin shift More... | |
Protected Attributes inherited from oofem::Field | |
FieldType | type |
Field defined by values fefined on unstructured grid.
This implementation does not require that underlying grid is oofem mesh (composed of DofMagars and Elements), but rather simple objects (Vertices and Cells) which in turn does not have to provide complex FE services. Typically used to map extermal field to mupif.
Definition at line 63 of file unstructuredgridfield.h.
|
inline |
Constructor.
Creates a field, with unspecified field values.
Definition at line 314 of file unstructuredgridfield.h.
|
inlinevirtual |
Definition at line 321 of file unstructuredgridfield.h.
|
inline |
Definition at line 334 of file unstructuredgridfield.h.
|
inline |
Definition at line 327 of file unstructuredgridfield.h.
|
inlineoverridevirtual |
Evaluates the field at given point.
coords | Coordinates of the point of interest |
answer | Field evaluated at coordinate. |
tStep | Time step to evaluate for. |
mode | Mode of value (total, velocity,...). |
Implements oofem::Field.
Definition at line 339 of file unstructuredgridfield.h.
References oofem::FloatArray::at(), oofem::UnstructuredGridField::Cell::getVertexNum(), oofem::OctreeSpatialLocalizerT< T >::giveDataOnFilter(), oofem::UnstructuredGridField::Cell::giveNumberOfVertices(), oofem::UnstructuredGridField::Cell::interpolate(), and OOFEM_ERROR.
|
inlineoverridevirtual |
Implementaton of Field::evaluateAt for DofManager.
Implements oofem::Field.
Definition at line 388 of file unstructuredgridfield.h.
References oofem::DofManager::giveCoordinates().
|
inline |
Definition at line 332 of file unstructuredgridfield.h.
Referenced by oofem::UnstructuredGridField::Cell::getVertex().
|
inlineoverridevirtual |
Implements oofem::Field.
Definition at line 414 of file unstructuredgridfield.h.
|
inlineprotected |
Definition at line 417 of file unstructuredgridfield.h.
References oofem::OctreeSpatialLocalizerT< T >::clear(), oofem::FloatArray::giveSize(), oofem::BoundingBox::init(), oofem::OctreeSpatialLocalizerT< T >::init(), oofem::OctreeSpatialLocalizerT< T >::insertMemberIntoOctree(), oofem::max(), and oofem::min().
|
inlineoverridevirtual |
Restores the receiver state previously written in stream.
Reads the FEMComponent class-id in order to allow test consistency.
stream | Input stream. |
mode | Determines amount of info in stream (state, definition,...). |
Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 411 of file unstructuredgridfield.h.
References oofem::CIO_OK.
|
inlineoverridevirtual |
Stores receiver state to output stream.
Writes the FEMComponent class-id in order to allow test whether correct data are then restored.
stream | Output stream. |
mode | Determines amount of info in stream (state, definition,...). |
Throws | an ContextIOERR exception if error encountered. |
Implements oofem::Field.
Definition at line 402 of file unstructuredgridfield.h.
References oofem::CIO_OK.
|
inline |
Definition at line 323 of file unstructuredgridfield.h.
|
protected |
Definition at line 296 of file unstructuredgridfield.h.
|
protected |
octree origin shift
Definition at line 309 of file unstructuredgridfield.h.
|
protected |
octree build time stamp
Definition at line 305 of file unstructuredgridfield.h.
|
protected |
Spatial Localizer.
It is build upon request. Provides the spatial localization services.
Definition at line 303 of file unstructuredgridfield.h.
|
protected |
receiver timestamp
Definition at line 307 of file unstructuredgridfield.h.
|
protected |
Definition at line 298 of file unstructuredgridfield.h.
|
protected |
Definition at line 297 of file unstructuredgridfield.h.