1 #ifndef ABLATELIBRARY_SUBLIMATIONMODEL_HPP
2 #define ABLATELIBRARY_SUBLIMATIONMODEL_HPP
5 #include "boundarySolver/boundarySolver.hpp"
7 namespace ablate::boundarySolver::physics::subModels {
12 inline const static std::string sublimationModelId =
"SublimationModel";
48 virtual PetscErrorCode
Update(PetscInt faceId, PetscReal dt, PetscReal heatFluxToSurface, PetscReal &temperature) {
return PETSC_SUCCESS; };
71 [[nodiscard]]
const std::string &
GetId()
const override {
return sublimationModelId; }
79 PetscErrorCode
Save(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time)
override {
return PETSC_SUCCESS; };
87 PetscErrorCode
Restore(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time)
override {
return PETSC_SUCCESS; }
Definition: boundarySolver.hpp:13
Definition: sublimationModel.hpp:9
virtual PetscErrorCode Compute(PetscInt faceId, PetscReal heatFluxToSurface, SurfaceState &)=0
virtual bool RequiresUpdate()
Definition: sublimationModel.hpp:34
~SublimationModel() override=default
const std::string & GetId() const override
Definition: sublimationModel.hpp:71
virtual PetscErrorCode Update(PetscInt faceId, PetscReal dt, PetscReal heatFluxToSurface, PetscReal &temperature)
Definition: sublimationModel.hpp:48
SerializerType Serialize() const override
Definition: sublimationModel.hpp:65
virtual void Initialize(ablate::boundarySolver::BoundarySolver &bSolver)
Definition: sublimationModel.hpp:41
PetscErrorCode Restore(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override
Definition: sublimationModel.hpp:87
PetscErrorCode Save(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override
Definition: sublimationModel.hpp:79
Definition: serializable.hpp:13
SerializerType
Definition: serializable.hpp:18
Definition: sublimationModel.hpp:18
PetscReal massFlux
The resulting mass flux off the surface.
Definition: sublimationModel.hpp:20
PetscReal regressionRate
PetscReal resulting regression rate off the surface.
Definition: sublimationModel.hpp:26
PetscReal temperature
Surface temperature.
Definition: sublimationModel.hpp:23