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