https://github.com/jamesquinlan/ccar-grid
Cartesian Grid Class
https://github.com/jamesquinlan/ccar-grid
Last synced: 27 days ago
JSON representation
Cartesian Grid Class
- Host: GitHub
- URL: https://github.com/jamesquinlan/ccar-grid
- Owner: jamesquinlan
- License: mit
- Created: 2021-10-18T21:50:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T02:07:59.000Z (over 1 year ago)
- Last Synced: 2025-03-29T10:53:41.723Z (about 1 month ago)
- Language: MATLAB
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.}
}
```