Advanced Multi-Physics (AMP)
On-Line Documentation
PureLogicalMesh.h
Go to the documentation of this file.
1#ifndef included_AMP_PureLogicalMesh
2#define included_AMP_PureLogicalMesh
3
4#include "AMP/geometry/LogicalGeometry.h"
5#include "AMP/mesh/structured/BoxMesh.h"
6
7#include <array>
8#include <vector>
9
10
11namespace AMP::Mesh {
12
13
22{
23public:
25 explicit PureLogicalMesh( std::shared_ptr<const MeshParameters> );
26
28 explicit PureLogicalMesh( const PureLogicalMesh & );
29
32
34 std::string meshClass() const override;
35
37 bool operator==( const Mesh &mesh ) const override;
38
39public: // Functions derived from BoxMesh
40 Mesh::Movable isMeshMovable() const override;
41 uint64_t positionHash() const override;
42 void displaceMesh( const std::vector<double> &x ) override;
43 void displaceMesh( std::shared_ptr<const AMP::LinearAlgebra::Vector> ) override;
45 void coord( const MeshElementIndex &index, double *pos ) const override;
46 std::array<AMP::Array<double>, 3> localCoord() const override;
47 std::array<AMP::Array<double>, 3> globalCoord() const override;
48 std::unique_ptr<Mesh> clone() const override;
49
50public: // Restart functions
51 void writeRestart( int64_t ) const override;
53
54protected: // Functions derived from BoxMesh
55 virtual void createBoundingBox() override;
56};
57
58
59} // namespace AMP::Mesh
60
61
62#endif
Class to manage reading/writing restart data.
Structure to uniquely identify an element.
Definition BoxMesh.h:109
A class used to represent a logically rectangular box mesh.
Definition BoxMesh.h:71
A class used to abstract away mesh from an application.
Definition Mesh.h:57
Movable
Enumeration for basic mesh-based quantities.
Definition Mesh.h:73
A derived version of BoxMesh for a given geometry.
PureLogicalMesh(std::shared_ptr< const MeshParameters >)
Default constructor.
void coord(const MeshElementIndex &index, double *pos) const override
Return a mesh element's coordinates given it's id.
Mesh::Movable isMeshMovable() const override
Is the mesh movable.
PureLogicalMesh(const PureLogicalMesh &)
Copy constructor.
PureLogicalMesh(int64_t, AMP::IO::RestartManager *)
std::unique_ptr< Mesh > clone() const override
Virtual function to copy the mesh (allows use to proply copy the derived class)
std::string meshClass() const override
Return a string with the mesh class name.
void writeRestart(int64_t) const override
Write restart data to file.
std::array< AMP::Array< double >, 3 > localCoord() const override
Return the vertex coordinates for the local box.
virtual void createBoundingBox() override
PureLogicalMesh & operator=(const PureLogicalMesh &)=delete
Assignment operator.
bool operator==(const Mesh &mesh) const override
Check if two meshes are equal.
void displaceMesh(std::shared_ptr< const AMP::LinearAlgebra::Vector >) override
Displace the entire mesh.
std::array< AMP::Array< double >, 3 > globalCoord() const override
Return the vertex coordinates for the global box.
AMP::Geometry::Point physicalToLogical(const AMP::Geometry::Point &x) const override
Return the logical coordinates.
uint64_t positionHash() const override
Identify if the position has moved.
void displaceMesh(const std::vector< double > &x) override
Displace the entire mesh.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page