|
| LNode (int lagrangian_nidx=-1, int global_petsc_nidx=-1, int local_petsc_nidx=-1, const SAMRAI::hier::IntVector< NDIM > &initial_periodic_offset=SAMRAI::hier::IntVector< NDIM >(0), const SAMRAI::hier::IntVector< NDIM > ¤t_periodic_offset=SAMRAI::hier::IntVector< NDIM >(0), const Vector &initial_periodic_displacement=Vector::Zero(), const Vector ¤t_periodic_displacement=Vector::Zero(), const std::vector< SAMRAI::tbox::Pointer< Streamable > > &node_data=std::vector< SAMRAI::tbox::Pointer< Streamable > >()) |
| Default constructor. More...
|
|
| LNode (const LNode &from) |
| Copy constructor. More...
|
|
| LNode (SAMRAI::tbox::AbstractStream &stream, const SAMRAI::hier::IntVector< NDIM > &offset) |
| Constructor that unpacks data from an input stream.
|
|
| ~LNode () |
| Destructor.
|
|
LNode & | operator= (const LNode &that) |
| Assignment operator. More...
|
|
const std::vector< SAMRAI::tbox::Pointer< Streamable > > & | getNodeData () const |
|
void | setNodeData (const std::vector< SAMRAI::tbox::Pointer< Streamable > > &node_data) |
| Reset the collection of additional data items associated with the node referenced by this LNode object.
|
|
void | appendNodeDataItem (const SAMRAI::tbox::Pointer< Streamable > &node_data_item) |
| Append a data item to the collection of data items associated with this node. The appended item will appear at the end of the vector of node data items associated with this node.
|
|
void | removeNodeDataItem (const SAMRAI::tbox::Pointer< Streamable > &node_data_item) |
| Remove a data item to the collection of data items associated with this node. If the argument is not associated with the collection of node data associated with this node, this method will have no effect. More...
|
|
template<typename T > |
T * | getNodeDataItem () const |
|
template<typename T > |
std::vector< T * > | getNodeDataVector () const |
|
void | registerPeriodicShift (const SAMRAI::hier::IntVector< NDIM > &offset, const Vector &displacement) override |
| Indicate that the LNode object has been shifted across a periodic boundary.
|
|
void | copySourceItem (const SAMRAI::hier::Index< NDIM > &src_index, const SAMRAI::hier::IntVector< NDIM > &src_offset, const LNodeIndex &src_item) override |
| Copy data from the source. More...
|
|
size_t | getDataStreamSize () const override |
| Return an upper bound on the amount of space required to pack the object to a buffer.
|
|
void | packStream (SAMRAI::tbox::AbstractStream &stream) override |
| Pack data into the output stream.
|
|
virtual void | unpackStream (SAMRAI::tbox::AbstractStream &stream, const SAMRAI::hier::IntVector< NDIM > &offset) override |
| Unpack data from the input stream.
|
|
| LNodeIndex (int lagrangian_nidx=-1, int global_petsc_nidx=-1, int local_petsc_nidx=-1, const SAMRAI::hier::IntVector< NDIM > &initial_periodic_offset=SAMRAI::hier::IntVector< NDIM >(0), const SAMRAI::hier::IntVector< NDIM > ¤t_periodic_offset=SAMRAI::hier::IntVector< NDIM >(0), const Vector &initial_periodic_displacement=Vector::Zero(), const Vector ¤t_periodic_displacement=Vector::Zero()) |
| Default constructor.
|
|
| LNodeIndex (const LNodeIndex &from) |
| Copy constructor. More...
|
|
| LNodeIndex (SAMRAI::tbox::AbstractStream &stream, const SAMRAI::hier::IntVector< NDIM > &offset) |
| Constructor that unpacks data from an input stream.
|
|
virtual | ~LNodeIndex () |
| Virtual destructor.
|
|
LNodeIndex & | operator= (const LNodeIndex &that) |
| Assignment operator. More...
|
|
int | getLagrangianIndex () const |
|
void | setLagrangianIndex (int lagrangian_nidx) |
| Reset the Lagrangian index referenced by this LNodeIndex object.
|
|
int | getGlobalPETScIndex () const |
|
void | setGlobalPETScIndex (int global_petsc_nidx) |
| Reset the global PETSc index referenced by this LNodeIndex object.
|
|
int | getLocalPETScIndex () const |
|
void | setLocalPETScIndex (int local_petsc_nidx) |
| Reset the local PETSc index referenced by this LNodeIndex object.
|
|
virtual const SAMRAI::hier::IntVector< NDIM > & | getInitialPeriodicOffset () const |
| Get the initial (t = 0) periodic offset.
|
|
virtual const SAMRAI::hier::IntVector< NDIM > & | getPeriodicOffset () const |
| Get the periodic offset.
|
|
virtual const Vector & | getInitialPeriodicDisplacement () const |
| Get the initial (t = 0) periodic displacement.
|
|
virtual const Vector & | getPeriodicDisplacement () const |
| Get the periodic displacement.
|
|
Class LNode is the basic element of an LMesh.
Class LNode provides Lagrangian and PETSc indexing information and data storage for a single node of a Lagrangian mesh.