General framework
Kinetic employs the finite volume method (FVM) for modeling and simulation. The general solution algorithm can be conclude as follows, where both explicit and implicit methods are implemented.
The high-level solver function is
KitBase.solve!
— Functionsolve!(KS, ctr, face, simTime; steady)
Solution algorithm for 1D structured and unstructured mesh
Arguments
KS
: SolverSetctr
: vector of cell-centered solutionface
: vector of cell interfacesimTime
: simulation time
solve!(KS, ctr, a1face, a2face, simTime; steady)
Solution algorithm for 2D structured mesh
Arguments
KS
: SolverSetctr
: matrix of cell-centered solutiona1face
: matrix of cell interface perpendicular tox
axisa2face
: matrix of cell interface perpendicular toy
axissimTime
: simulation time
The detailed solution procedures can be concluded as follows
- pre-process
- timestep calculation
- reconstruction
- evolution
- update
- post-process