Open glwagner opened 3 months ago
Here are some thoughts for the grid and fields tutorial:
RectilinearGrid
.
yspacing
, ynodes
, etc.Q: should we show tripolar grid / other examples with OrthogonalSphericalShellGrid
? (At the very least we should reference this.)
Field
: data structure, plus infrastructure for building expression treesField
basics
Field
locationsWhat else?
@navidcy @simone-silvestri
- purpose of
Field
: data structure, plus infrastructure for building expression trees
Field
basics
- The staggered grid,
Field
locations- Field size + data, staggered nodes, staggered spacings
AbstractOperations and expression trees
- The concept of a lazy operator
- Arithmetic and derivatives
- Difference between a Field and Operation
- KernelFunctionOperation
- what else?
- Averaging, intergrals, and reduced fields
What else?
@navidcy @simone-silvestri
Visualization always helps, so I recommend adding plots of various grid types (periodic, non-periodic, stretched, etc.) directly below the corresponding code snippets that generate them. Additionally, it would be nice to illustrate how to access the different components of Field
s and the output of abstract operations with code snippets.
I vote yes to including tripolar.
I think we should also have a tutorial for NonhydrostaticModel
. We can use that to also discuss the basics of incompressible flow; for example why set!
can produce unexpected behavior when the divergence is projected out of a velocity field. This is being discussed on #3941.
This issue describes an overhaul / refactoring of the "Model setup" part of the documentation. We've noticed that while our examples and docstrings seem to be useful, the "model setup" is less so, and also leaves out a lot of information necessary for running more complex simulations.
What we have now
The basic idea is to flatten the current structure a bit. Right now it reads:
What we propose
We propose to create top-level sections for important concepts such as
Grids
,Fields
,Simulations
etc. Then less important details would be subsumed into theModels
section (which would overlap strongly with the currentModel setup
section).Here's an outline:
The ordering of subjects is carefully chosen here, so please comment on that if you think it should be changed.
To do this incrementally, I will open a PR that adds the
Grids
andFields
sections. Then we can build theModels
section incrementally by porting material fromModel setup
. While we are working I will add the qualiferModel setup (legacy)
.Related issues:
cc @simone-silvestri @seamanticscience @sandreza @rafferrari @navidcy @siddharthabishnu