GridSystemData3.h
Go to the documentation of this file.
125 size_t AddVectorData(const VectorGridBuilder3Ptr& builder, const Vector3D& initialVal = Vector3D());
157 size_t AddAdvectableVectorData(const VectorGridBuilder3Ptr& builder, const Vector3D& initialVal = Vector3D());
Abstract base class for any serializable class.
Definition: Serialization.h:20
size_t GetNumberOfAdvectableScalarData() const
Returns the number of advectable scalar data.
size_t AddVectorData(const VectorGridBuilder3Ptr &builder, const Vector3D &initialVal=Vector3D())
Adds a non-advectable vector data grid by passing its builder and initial value.
size_t GetNumberOfScalarData() const
Returns the number of non-advectable scalar data.
BoundingBox3D GetBoundingBox() const
Returns the bounding box of the grid.
size_t GetVelocityIndex() const
Returns the index of the velocity field.
const FaceCenteredGrid3Ptr & GetVelocity() const
Returns the velocity field.
std::shared_ptr< ScalarGrid3 > ScalarGrid3Ptr
Shared pointer for the ScalarGrid3 type.
Definition: ScalarGrid3.h:179
size_t GetNumberOfVectorData() const
Returns the number of non-advectable vector data.
std::shared_ptr< FaceCenteredGrid3 > FaceCenteredGrid3Ptr
Shared pointer type for the FaceCenteredGrid3.
Definition: FaceCenteredGrid3.h:276
const ScalarGrid3Ptr & GetAdvectableScalarDataAt(size_t idx) const
Returns the advectable scalar data at given index.
size_t GetNumberOfAdvectableVectorData() const
Returns the number of advectable vector data.
const VectorGrid3Ptr & GetAdvectableVectorDataAt(size_t idx) const
Returns the advectable vector data at given index.
const VectorGrid3Ptr & GetVectorDataAt(size_t idx) const
Returns the non-advectable vector data at given index.
Definition: pybind11Utils.h:24
void Serialize(std::vector< uint8_t > *buffer) const override
Serialize the data to the given buffer.
std::shared_ptr< ScalarGridBuilder3 > ScalarGridBuilder3Ptr
Shared pointer for the ScalarGridBuilder3 type.
Definition: ScalarGrid3.h:200
size_t AddScalarData(const ScalarGridBuilder3Ptr &builder, double initialVal=0.0)
Adds a non-advectable scalar data grid by passing its builder and initial value.
std::shared_ptr< GridSystemData3 > GridSystemData3Ptr
Shared pointer type of GridSystemData3.
Definition: GridSystemData3.h:224
size_t AddAdvectableScalarData(const ScalarGridBuilder3Ptr &builder, double initialVal=0.0)
Adds an advectable scalar data grid by passing its builder and initial value.
size_t AddAdvectableVectorData(const VectorGridBuilder3Ptr &builder, const Vector3D &initialVal=Vector3D())
Adds an advectable vector data grid by passing its builder and initial value.
void Deserialize(const std::vector< uint8_t > &buffer) override
Serialize the data from the given buffer.
std::shared_ptr< VectorGrid3 > VectorGrid3Ptr
Shared pointer for the VectorGrid3 type.
Definition: VectorGrid3.h:90
std::shared_ptr< VectorGridBuilder3 > VectorGridBuilder3Ptr
Shared pointer for the VectorGridBuilder3 type.
Definition: VectorGrid3.h:111
Size3 GetResolution() const
Returns the resolution of the grid.
void Resize(const Size3 &resolution, const Vector3D &gridSpacing, const Vector3D &origin)
Resizes the whole system with given resolution, grid spacing, and origin.
const ScalarGrid3Ptr & GetScalarDataAt(size_t idx) const
Returns the non-advectable scalar data at given index.