1 #ifndef ABLATELIBRARY_GRAVITY_HPP
2 #define ABLATELIBRARY_GRAVITY_HPP
4 #include "flowProcess.hpp"
6 namespace ablate::finiteVolume::processes {
10 const std::vector<PetscReal> gravityVector;
16 static PetscErrorCode ComputeGravitySource(PetscInt dim, PetscReal time,
const PetscFVCellGeom* cg,
const PetscInt uOff[],
const PetscScalar u[],
const PetscInt aOff[],
const PetscScalar a[],
17 PetscScalar f[],
void* ctx);
20 explicit Gravity(std::vector<double> gravityVector);
Definition: finiteVolumeSolver.hpp:28
Definition: flowProcess.hpp:8
Definition: gravity.hpp:8
void Setup(ablate::finiteVolume::FiniteVolumeSolver &fv) override
Definition: gravity.cpp:5