OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
#include <refinedelement.h>
Public Member Functions | |
RefinedElement (Domain *d, int elem, int level) | |
~RefinedElement () | |
IntArray * | giveFineNodeArray (int node) |
IntArray * | giveBoundaryFlagArray (void) |
void | giveBoundaryFlagArray (int inode, Element *element, IntArray &answer) |
bool | giveBoundaryLoadArray1D (int inode, Element *element, IntArray &boundaryLoadArray) |
bool | giveBoundaryLoadArray2D (int inode, Element *element, std::vector< IntArray > &boundaryLoadList) |
bool | giveBoundaryLoadArray3D (int inode, Element *element, std::vector< IntArray > &boundaryLoadList) |
bool | giveBcDofArray1D (int inode, Element *element, IntArray &sideBcDofId, int &sideNumBc, TimeStep *tStep) |
bool | giveBcDofArray2D (int inode, Element *element, std::vector< IntArray > &sideBcDofIdList, IntArray &sideNumBc, TimeStep *tStep) |
bool | giveBcDofArray3D (int inode, Element *element, std::vector< IntArray > &sideBcDofIdList, IntArray &sideNumBc, std::vector< IntArray > &faceBcDofIdList, IntArray &faceNumBc, TimeStep *tStep) |
Protected Member Functions | |
int | giveCompatibleBcDofArray (Node *master_node, Node *slave_node, IntArray &dofIDArray, int dofs, IntArray &answer, ValueModeType mode, TimeStep *tStep) |
Extract from dofArray of slave_node those Dofs that have compatible BCs with master_node. More... | |
std::string | errorInfo (const char *func) const |
Returns string for prepending output (used by error reporting macros). More... | |
Protected Attributes | |
int | elementId |
std::vector< IntArray > | fineNodeList |
IntArray | boundaryFlag |
Definition at line 49 of file refinedelement.h.
oofem::RefinedElement::RefinedElement | ( | Domain * | d, |
int | elem, | ||
int | level | ||
) |
Definition at line 46 of file refinedelement.C.
References boundaryFlag, elementId, fineNodeList, oofem::Domain::giveElement(), oofem::Element::giveNumberOfBoundarySides(), oofem::Element::giveNumberOfDofManagers(), oofem::Element::giveSpatialDimension(), and oofem::IntArray::resize().
oofem::RefinedElement::~RefinedElement | ( | ) |
Definition at line 75 of file refinedelement.C.
|
protected |
Returns string for prepending output (used by error reporting macros).
Definition at line 637 of file refinedelement.C.
References elementId.
Referenced by giveBoundaryFlagArray().
bool oofem::RefinedElement::giveBcDofArray1D | ( | int | inode, |
Element * | element, | ||
IntArray & | sideBcDofId, | ||
int & | sideNumBc, | ||
TimeStep * | tStep | ||
) |
Definition at line 150 of file refinedelement.C.
References oofem::IntArray::at(), giveCompatibleBcDofArray(), oofem::Element::giveNode(), oofem::DofManager::giveNumberOfDofs(), and oofem::IntArray::resize().
Referenced by giveBoundaryFlagArray(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem1D().
bool oofem::RefinedElement::giveBcDofArray2D | ( | int | inode, |
Element * | element, | ||
std::vector< IntArray > & | sideBcDofIdList, | ||
IntArray & | sideNumBc, | ||
TimeStep * | tStep | ||
) |
Definition at line 181 of file refinedelement.C.
References oofem::IntArray::at(), giveCompatibleBcDofArray(), oofem::Element::giveGeometryType(), oofem::Element::giveNode(), oofem::DofManager::giveNumberOfDofs(), OOFEM_ERROR, and oofem::IntArray::resize().
Referenced by giveBoundaryFlagArray(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem2D().
bool oofem::RefinedElement::giveBcDofArray3D | ( | int | inode, |
Element * | element, | ||
std::vector< IntArray > & | sideBcDofIdList, | ||
IntArray & | sideNumBc, | ||
std::vector< IntArray > & | faceBcDofIdList, | ||
IntArray & | faceNumBc, | ||
TimeStep * | tStep | ||
) |
Definition at line 232 of file refinedelement.C.
References oofem::IntArray::at(), giveCompatibleBcDofArray(), oofem::Element::giveGeometryType(), oofem::Element::giveNode(), oofem::DofManager::giveNumberOfDofs(), OOFEM_ERROR, and oofem::IntArray::resize().
Referenced by giveBoundaryFlagArray(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem3D().
|
inline |
Definition at line 61 of file refinedelement.h.
References boundaryFlag, errorInfo(), giveBcDofArray1D(), giveBcDofArray2D(), giveBcDofArray3D(), giveBoundaryLoadArray1D(), giveBoundaryLoadArray2D(), giveBoundaryLoadArray3D(), and giveCompatibleBcDofArray().
Referenced by oofem::RefinedMesh::refineMeshGlobally(), oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem1D(), oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem2D(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem3D().
void oofem::RefinedElement::giveBoundaryFlagArray | ( | int | inode, |
Element * | element, | ||
IntArray & | answer | ||
) |
Definition at line 88 of file refinedelement.C.
References oofem::IntArray::at(), boundaryFlag, oofem::Element::giveGeometryType(), oofem::Element::giveNumberOfNodes(), oofem::Element::giveSpatialDimension(), OOFEM_ERROR, and oofem::IntArray::resize().
bool oofem::RefinedElement::giveBoundaryLoadArray1D | ( | int | inode, |
Element * | element, | ||
IntArray & | boundaryLoadArray | ||
) |
Definition at line 367 of file refinedelement.C.
References oofem::IntArray::at(), oofem::Element::giveBoundaryLoadArray(), and oofem::IntArray::resize().
Referenced by giveBoundaryFlagArray(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem1D().
bool oofem::RefinedElement::giveBoundaryLoadArray2D | ( | int | inode, |
Element * | element, | ||
std::vector< IntArray > & | boundaryLoadList | ||
) |
Definition at line 404 of file refinedelement.C.
References oofem::IntArray::at(), oofem::Element::giveBoundaryLoadArray(), oofem::Element::giveGeometryType(), OOFEM_ERROR, and oofem::IntArray::resize().
Referenced by giveBoundaryFlagArray(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem2D().
bool oofem::RefinedElement::giveBoundaryLoadArray3D | ( | int | inode, |
Element * | element, | ||
std::vector< IntArray > & | boundaryLoadList | ||
) |
Definition at line 469 of file refinedelement.C.
References oofem::IntArray::at(), oofem::Element::giveBoundaryLoadArray(), oofem::Element::giveGeometryType(), OOFEM_ERROR, and oofem::IntArray::resize().
Referenced by giveBoundaryFlagArray(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem3D().
|
protected |
Extract from dofArray of slave_node those Dofs that have compatible BCs with master_node.
master_node | Node to which Dof compatibility will be compared. |
slave_node | Node with original Dofs. |
dofIDArray | Array of ids of Dofs of slave_node to chose from. |
dofs | Number of Dofs in dofArray. |
answer | Array of ids of Dofs in dofArray with compatible BCs. |
mode | Mode of Dof values. |
tStep | Active time step. |
Definition at line 532 of file refinedelement.C.
References oofem::IntArray::at(), oofem::FloatMatrix::at(), oofem::FloatMatrix::beProductTOf(), oofem::Dof::giveBcId(), oofem::Dof::giveBcValue(), oofem::Dof::giveDofID(), oofem::DofManager::giveDofWithID(), oofem::Node::giveLocalCoordinateTriplet(), oofem::Dof::hasBc(), OOFEM_ERROR, oofem::IntArray::resize(), and oofem::FloatMatrix::zero().
Referenced by giveBcDofArray1D(), giveBcDofArray2D(), giveBcDofArray3D(), and giveBoundaryFlagArray().
IntArray * oofem::RefinedElement::giveFineNodeArray | ( | int | node | ) |
Definition at line 81 of file refinedelement.C.
References fineNodeList.
Referenced by oofem::RefinedMesh::refineMeshGlobally(), oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem1D(), oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem2D(), and oofem::HuertaErrorEstimatorInterface::setupRefinedElementProblem3D().
|
protected |
Definition at line 54 of file refinedelement.h.
Referenced by giveBoundaryFlagArray(), and RefinedElement().
|
protected |
Definition at line 52 of file refinedelement.h.
Referenced by errorInfo(), and RefinedElement().
|
protected |
Definition at line 53 of file refinedelement.h.
Referenced by giveFineNodeArray(), and RefinedElement().