GridSystemData2.h
Go to the documentation of this file.
125 size_t AddVectorData(const VectorGridBuilder2Ptr& builder, const Vector2D& initialVal = Vector2D());
157 size_t AddAdvectableVectorData(const VectorGridBuilder2Ptr& builder, const Vector2D& initialVal = Vector2D());
void Resize(const Size2 &resolution, const Vector2D &gridSpacing, const Vector2D &origin)
Resizes the whole system with given resolution, grid spacing, and origin.
size_t AddAdvectableScalarData(const ScalarGridBuilder2Ptr &builder, double initialVal=0.0)
Adds an advectable scalar data grid by passing its builder and initial value.
Abstract base class for any serializable class.
Definition: Serialization.h:20
void Deserialize(const std::vector< uint8_t > &buffer) override
Serialize the data from the given buffer.
const VectorGrid2Ptr & GetVectorDataAt(size_t idx) const
Returns the non-advectable vector data at given index.
BoundingBox2D GetBoundingBox() const
Returns the bounding box of the grid.
size_t AddAdvectableVectorData(const VectorGridBuilder2Ptr &builder, const Vector2D &initialVal=Vector2D())
Adds an advectable vector data grid by passing its builder and initial value.
Size2 GetResolution() const
Returns the resolution of the grid.
std::shared_ptr< GridSystemData2 > GridSystemData2Ptr
Shared pointer type of GridSystemData2.
Definition: GridSystemData2.h:224
const VectorGrid2Ptr & GetAdvectableVectorDataAt(size_t idx) const
Returns the advectable vector data at given index.
size_t AddScalarData(const ScalarGridBuilder2Ptr &builder, double initialVal=0.0)
Adds a non-advectable scalar data grid by passing its builder and initial value.
Definition: pybind11Utils.h:24
const ScalarGrid2Ptr & GetScalarDataAt(size_t idx) const
Returns the non-advectable scalar data at given index.
std::shared_ptr< VectorGrid2 > VectorGrid2Ptr
Shared pointer for the VectorGrid2 type.
Definition: VectorGrid2.h:90
std::shared_ptr< ScalarGrid2 > ScalarGrid2Ptr
Shared pointer for the ScalarGrid2 type.
Definition: ScalarGrid2.h:179
size_t AddVectorData(const VectorGridBuilder2Ptr &builder, const Vector2D &initialVal=Vector2D())
Adds a non-advectable vector data grid by passing its builder and initial value.
void Serialize(std::vector< uint8_t > *buffer) const override
Serialize the data to the given buffer.
size_t GetNumberOfVectorData() const
Returns the number of non-advectable vector data.
const ScalarGrid2Ptr & GetAdvectableScalarDataAt(size_t idx) const
Returns the advectable scalar data at given index.
size_t GetVelocityIndex() const
Returns the index of the velocity field.
std::shared_ptr< FaceCenteredGrid2 > FaceCenteredGrid2Ptr
Shared pointer type for the FaceCenteredGrid2.
Definition: FaceCenteredGrid2.h:228
size_t GetNumberOfScalarData() const
Returns the number of non-advectable scalar data.
std::shared_ptr< VectorGridBuilder2 > VectorGridBuilder2Ptr
Shared pointer for the VectorGridBuilder2 type.
Definition: VectorGrid2.h:111
std::shared_ptr< ScalarGridBuilder2 > ScalarGridBuilder2Ptr
Shared pointer for the ScalarGridBuilder2 type.
Definition: ScalarGrid2.h:200
size_t GetNumberOfAdvectableVectorData() const
Returns the number of advectable vector data.
const FaceCenteredGrid2Ptr & GetVelocity() const
Returns the velocity field.
size_t GetNumberOfAdvectableScalarData() const
Returns the number of advectable scalar data.