/CCAR-Grid

Cartesian Grid Class

Primary LanguageMATLABMIT LicenseMIT

Grid Class

Cartesian Cell-based Anisotropic Refinement (CCAR) Grid. Performs adaptive anisotropic mesh refinement for flow simulation. Visualizations included the grid itself, with or without cell centers marked, and the velocity field.

MATLAB Version: 9.10.0.1602886 (R2021a)
James Quinlan & James V. Lambers

Gridi

Gridi, (Grid with an "i"), is an attempt to improve the original grid class. Improvements include:

  1. Removing edge and corner cells ("fake cells"). Perhaps keep the grid skeleton.
  2. Create function to get cell ID (and FaceID).
  3. Improve kron creation. Look for idea, placed in comments, about generating without kron.
  4. Consider private properties and functions in some cases.
  5. Consider creating @classFolder.
  6. Consider creating small independent functions for constants, etc.
  7. Perhaps ID should be a column itself. So instead of G.cells(:,19) used as self-referential id to avoid FIND command, there should be an ID property, i.e., G.id=(1:ncells)'; Then when looking for the cell number with a certain condition, use G.id(G.cells(:,4)>0). G.cell_id

References

@article{berger1989local,
  author = {Berger, Marsha J and Colella, Phillip},
  journal = {Journal of Computational Physics},
  number = {1},
  pages = {64--84},
  publisher = {Elsevier},
  title = {Local adaptive mesh refinement for shock hydrodynamics},
  volume = {82},
  year = {1989},
  annote = {},
  keywords = {gridding, adaptive mesh refinement},
}

@article{berger1984adaptive,
  author = {Berger, Marsha J and Oliger, Joseph},
  journal = {Journal of Computational Physics},
  number = {3},
  pages = {484--512},
  publisher = {Elsevier},
  title = {Adaptive mesh refinement for hyperbolic partial differential equations},
  volume = {53},
  year = {1984},
  annote = {},
  keywords = {gridding, adaptive mesh refinement}
}

@incollection{davis2017adaptive,
  author={Davis, P},
  title={Adaptive Mesh Refinement: An Essential Ingredient in Computational Science.},
  booktitle={SIAM News},
  year={2017}, 
  Keywords = {AMR, Gridding},
  Annote={}
}

@inproceedings{nilsson2005novel,
  author = {Nilsson, J. and Gerritsen, M. and Younis, R. and others},
  title = {A novel adaptive anisotropic grid framework for efficient reservoir simulation},
  booktitle = {SPE reservoir simulation symposium},
  organization = {Society of Petroleum Engineers},
  year = {2005},
  keywords = {CCAR, grid adaptivity, anisotropic},
  annote = {Development of CCAR for anisotropy.}
}