VertexCenteredVectorGrid2.h
Go to the documentation of this file.
79 void Fill(const std::function<Vector2D(const Vector2D&)>& func, ExecutionPolicy policy = ExecutionPolicy::Parallel) override;
void Set(const VertexCenteredVectorGrid2 &other)
Sets the contents with the given other grid.
Abstract base class for 2-D vector grid builder.
Definition: VectorGrid2.h:93
Builder & WithInitialValue(double initialValU, double initialValV)
Returns builder with initial value.
VertexCenteredVectorGrid2()
Constructs zero-sized grid.
VertexCenteredVectorGrid2 Build() const
Builds VertexCenteredVectorGrid2 instance.
Builder & WithResolution(const Size2 &resolution)
Returns builder with resolution.
std::shared_ptr< VectorGrid2 > Clone() const override
Returns the copy of the grid instance.
2-D Vertex-centered vector grid structure.
Definition: VertexCenteredVectorGrid2.h:24
Abstract base class for 2-D collocated vector grid structure.
Definition: CollocatedVectorGrid2.h:19
static Builder GetBuilder()
Returns builder fox VertexCenteredVectorGrid2.
Definition: pybind11Utils.h:24
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid2.h:90
Builder & WithOrigin(const Vector2D &gridOrigin)
Returns builder with grid origin.
Vector2D GetDataOrigin() const override
void Fill(const Vector2D &value, ExecutionPolicy policy=ExecutionPolicy::Parallel) override
Fills the grid with given value.
Size2 GetDataSize() const override
Returns the actual data point size.
VertexCenteredVectorGrid2 & operator=(const VertexCenteredVectorGrid2 &other)
Sets the contents with the given other grid.
A grid builder class that returns 2-D vertex-centered Vector grid.
Definition: VertexCenteredVectorGrid2.h:92
std::shared_ptr< VertexCenteredVectorGrid2 > VertexCenteredVectorGrid2Ptr
Shared pointer for the VertexCenteredVectorGrid2 type.
Definition: VertexCenteredVectorGrid2.h:89
void Swap(Grid2 *other) override
Swaps the contents with the given other grid.
Builder & WithGridSpacing(const Vector2D &gridSpacing)
Returns builder with grid spacing.
VertexCenteredVectorGrid2Ptr MakeShared() const
Builds shared pointer of VertexCenteredVectorGrid2 instance.