UpwindLevelSetSolver2.h
Go to the documentation of this file.
1 /*************************************************************************
2 > File Name: UpwindLevelSetSolver2.h
3 > Project Name: CubbyFlow
4 > Author: Chan-Ho Chris Ohk
5 > Purpose: Two-dimensional first-order upwind-based iterative level set solver.
6 > Created Time: 2017/09/03
7 > Copyright (c) 2018, Chan-Ho Chris Ohk
8 *************************************************************************/
9 #ifndef CUBBYFLOW_UPWIND_LEVEL_SET_SOLVER2_H
10 #define CUBBYFLOW_UPWIND_LEVEL_SET_SOLVER2_H
11 
13 
14 namespace CubbyFlow
15 {
17  {
18  public:
21 
22  protected:
24  void GetDerivatives(
26  const Vector2D& gridSpacing,
27  size_t i, size_t j,
28  std::array<double, 2>* dx, std::array<double, 2>* dy) const override;
29  };
30 
31  using UpwindLevelSetSolver2Ptr = std::shared_ptr<UpwindLevelSetSolver2>;
32 }
33 
34 #endif
2-D read-only array accessor class.
Definition: ArrayAccessor2.h:261
Abstract base class for 2-D PDE-based iterative level set solver.
Definition: IterativeLevelSetSolver2.h:27
UpwindLevelSetSolver2()
Default constructor.
Definition: UpwindLevelSetSolver2.h:16
void GetDerivatives(ConstArrayAccessor2< double > grid, const Vector2D &gridSpacing, size_t i, size_t j, std::array< double, 2 > *dx, std::array< double, 2 > *dy) const override
Computes the derivatives for given grid point.
Definition: pybind11Utils.h:24
2-D vector class.
Definition: Vector2.h:26
std::shared_ptr< UpwindLevelSetSolver2 > UpwindLevelSetSolver2Ptr
Definition: UpwindLevelSetSolver2.h:31