Hi,
I'm trying to create a 2D grid that would allow me to use fluid properties in each cell of the grid, which is defined by a struct.
I have 3 grids:
Grid2D <fluidProperties> grid1;
Grid2D <fluidProperties> grid2;
Grid2D < fluidProperties> grid3;
My struct fluidProperties contains 12 different properties:
struct fluidProperties {
float foo;
float bar;
// ...etc.,
}
For each grid, I only want to use 6-8 of the variables contained in fluidProperties. Is there a way I can disable the use of some of the properties, depending on the type of grid I create?
For example, I may not want grid1 to be able to access
grid1.bar
Am I going about it the wrong way? Any help would be appreciated.