#include <pressureGradientScaling.hpp>
Public Member Functions | |
PressureGradientScaling (std::shared_ptr< eos::EOS > eos, double alphaInit, double domainLength, double maxAlphaAllowed={}, double maxDeltaPressureFac={}, std::shared_ptr< ablate::monitors::logs::Log >={}) | |
PetscErrorCode | UpdatePreconditioner (TS flowTs, ablate::solver::Solver &flow) |
void | Setup (ablate::finiteVolume::FiniteVolumeSolver &fv) override |
const PetscReal & | GetAlpha () |
const PetscReal & | GetMaxMach () |
const std::string & | GetId () const override |
PetscErrorCode | Save (PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override |
PetscErrorCode | Restore (PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override |
Public Member Functions inherited from ablate::finiteVolume::processes::Process | |
virtual void | Initialize (ablate::finiteVolume::FiniteVolumeSolver &fv) |
Public Member Functions inherited from ablate::io::Serializable | |
virtual SerializerType | Serialize () const |
Additional Inherited Members | |
Public Types inherited from ablate::io::Serializable | |
enum class | SerializerType { none , collective , serial } |
Static Protected Member Functions inherited from ablate::io::Serializable | |
static PetscErrorCode | SaveKeyValue (PetscViewer viewer, const char *name, PetscScalar value) |
static PetscErrorCode | RestoreKeyValue (PetscViewer viewer, const char *name, PetscScalar &value) |
template<class T > | |
static PetscErrorCode | SaveKeyValue (PetscViewer viewer, const char *name, T value) |
template<class T > | |
static PetscErrorCode | RestoreKeyValue (PetscViewer viewer, const char *name, T &value) |
template<class T > | |
static SerializerType | DetermineSerializerType (const T &types) |
Rescales the thermodynamic pressure gradient scaling the acoustic propagation speeds to allow for a larger time step. See: DesJardin, Paul E., Timothy J. O’Hern, and Sheldon R. Tieszen. "Large eddy simulation and experimental measurements of the near-field of a large turbulent helium plume." Physics of fluids 16.6 (2004): 1866-1883.
|
inlineoverridevirtual |
only required function, returns the id of the object. Should be unique for the simulation
Implements ablate::io::Serializable.
|
overridevirtual |
Restore the state from the PetscViewer
viewer | |
sequenceNumber | |
time |
Implements ablate::io::Serializable.
|
overridevirtual |
Save the state to the PetscViewer
viewer | |
sequenceNumber | |
time |
Implements ablate::io::Serializable.
|
overridevirtual |
Function to setup timestepping with the PressureGradientScaling. This can be called multiple times and will only be registered once
Implements ablate::finiteVolume::processes::Process.
PetscErrorCode ablate::finiteVolume::processes::PressureGradientScaling::UpdatePreconditioner | ( | TS | flowTs, |
ablate::solver::Solver & | flow | ||
) |
function to compute the average density in the domain
flowTs | |
flow |