ABLATE Source Documentation  0.12.33
logLawBoundary.hpp
1 #ifndef ABLATELIBRARY_LODI_INLET_HPP
2 #define ABLATELIBRARY_LODI_INLET_HPP
3 #include "boundarySolver/lodi/lodiBoundary.hpp"
4 
5 #include "boundarySolver/boundaryProcess.hpp"
6 #include "finiteVolume/processes/navierStokesTransport.hpp"
7 
8 namespace ablate::boundarySolver::physics {
9 
11  private:
12  inline const static PetscReal kappa = 0.4; // Von Karman coefficient
13  const std::shared_ptr<finiteVolume::processes::PressureGradientScaling> pressureGradientScaling;
14 
15  public:
16  void Setup(ablate::boundarySolver::BoundarySolver &bSolver) override;
17 
18  // update the boundary velocity field using outflow to reconstruct the log-law near the wall (Deardorff, 1970)
19  static PetscErrorCode UpdateBoundaryVel(PetscInt dim, const ablate::boundarySolver::BoundarySolver::BoundaryFVFaceGeom *fg, const PetscFVCellGeom *boundaryCell, const PetscInt *uOff,
20  PetscScalar *boundaryValues, const PetscScalar *stencilValues, const PetscInt *aOff, PetscScalar *auxValues, const PetscScalar *stencilAuxValues,
21  void *ctx);
22 };
23 
24 } // namespace ablate::boundarySolver::physics
25 #endif // ABLATELIBRARY_INLET_HPP
Definition: boundaryProcess.hpp:8
Definition: boundarySolver.hpp:13
Definition: logLawBoundary.hpp:10
void Setup(ablate::boundarySolver::BoundarySolver &bSolver) override
Definition: logLawBoundary.cpp:5