CellCenteredVectorGrid2.h
Go to the documentation of this file.
76 void Fill(const std::function<Vector2D(const Vector2D&)>& func, ExecutionPolicy policy = ExecutionPolicy::Parallel) override;
Builder & WithGridSpacing(const Vector2D &gridSpacing)
Returns builder with grid spacing.
Abstract base class for 2-D vector grid builder.
Definition: VectorGrid2.h:93
CellCenteredVectorGrid2 & operator=(const CellCenteredVectorGrid2 &other)
Sets the contents with the given other gird.
std::shared_ptr< CellCenteredVectorGrid2 > CellCenteredVectorGrid2Ptr
Shared pointer for the CellCenteredVectorGrid2 type.
Definition: CellCenteredVectorGrid2.h:89
Size2 GetDataSize() const override
Returns the actual data point size.
void Set(const CellCenteredVectorGrid2 &other)
Sets the contents with the given other grid.
Abstract base class for 2-D collocated vector grid structure.
Definition: CollocatedVectorGrid2.h:19
CUBBYFLOW_GRID2_TYPE_NAME(CellCenteredVectorGrid2)
void Swap(Grid2 *other) override
Swaps the contents with the given other grid.
Builder & WithResolution(const Size2 &resolution)
Returns builder with resolution.
2-D Cell-centered vector grid structure.
Definition: CellCenteredVectorGrid2.h:24
CellCenteredVectorGrid2 Build() const
Builds CellCenteredVectorGrid2 instance.
Definition: pybind11Utils.h:24
Builder & WithInitialValue(const Vector2D &initalVal)
Returns builder with initial value.
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid2.h:90
void Fill(const Vector2D &value, ExecutionPolicy policy=ExecutionPolicy::Parallel) override
Fills the grid with given value.
Front-end to create CellCenteredVectorGrid2 objects step by step.
Definition: CellCenteredVectorGrid2.h:94
Builder & WithOrigin(const Vector2D &gridOrigin)
Returns builder with grid origin.
std::shared_ptr< VectorGrid2 > Clone() const override
Returns the copy of the grid instance.
CellCenteredVectorGrid2()
Constructs zero-sized grid.
CellCenteredVectorGrid2Ptr MakeShared() const
Builds shared pointer of CellCenteredScalarGrid2 instance.
Vector2D GetDataOrigin() const override
static Builder GetBuilder()
Returns the builder fox CellCenteredVectorGrid2.