Skip to content

Commit 8cd4654

Browse files
Revert unrelated changes to CFVMFlowSolverBase files
1 parent 821012e commit 8cd4654

File tree

2 files changed

+247
-105
lines changed

2 files changed

+247
-105
lines changed

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ class CFVMFlowSolverBase : public CSolver {
6969
su2double Mach_Inf = 0.0; /*!< \brief Mach number at the infinity. */
7070
su2double Density_Inf = 0.0; /*!< \brief Density at the infinity. */
7171
su2double Energy_Inf = 0.0; /*!< \brief Energy at the infinity. */
72-
su2double Temperature_Inf = 0.0; /*!< \brief Energy at the infinity. */
72+
su2double Temperature_Inf = 0.0; /*!< \brief Temperature at the infinity. */
73+
su2double Enthalpy_Inf = 0.0; /*!< \brief Enthalpy at the infinity. */
7374
su2double Pressure_Inf = 0.0; /*!< \brief Pressure at the infinity. */
7475
su2double* Velocity_Inf = nullptr; /*!< \brief Flow Velocity vector at the infinity. */
7576

@@ -361,6 +362,35 @@ class CFVMFlowSolverBase : public CSolver {
361362
void LoadRestart_impl(CGeometry **geometry, CSolver ***solver, CConfig *config, int iter, bool update_geo,
362363
su2double* RestartSolution = nullptr, unsigned short nVar_Restart = 0);
363364

365+
/*!
366+
* \brief Load restart solution fields using template specialization based on flow regime.
367+
* \param[in] geometry - Geometrical definition of the problem.
368+
* \param[in] solver - Container vector with all of the solvers.
369+
* \param[in] config - Definition of the particular problem.
370+
* \param[in] update_geo - Flag for updating coords and grid velocity.
371+
* \param[in] static_fsi - Flag for static FSI problems.
372+
* \param[in] steady_restart - Flag for steady restart.
373+
* \param[in] SolutionRestart - Optional solution restart buffer.
374+
* \param[in] nVar_Restart - Number of restart variables.
375+
* \param[in] restart_filename - Name of the restart file.
376+
*/
377+
void LoadRestartSolutionFields(CGeometry **geometry, CSolver ***solver, CConfig *config,
378+
bool update_geo, bool static_fsi, bool steady_restart,
379+
su2double* SolutionRestart, unsigned short nVar_Restart,
380+
const string& restart_filename);
381+
382+
/*!
383+
* \brief Helper function to load grid data (coordinates and velocities) from restart file.
384+
* \param[in] geometry - Geometrical definition of the problem.
385+
* \param[in] iPoint_Local - Local point index.
386+
* \param[in] baseIndex - Base index in restart data array.
387+
* \param[in] update_geo - Flag for updating coords and grid velocity.
388+
* \param[in] static_fsi - Flag for static FSI problems.
389+
* \param[in] steady_restart - Flag for steady restart.
390+
*/
391+
void LoadRestartGridData(CGeometry **geometry, long iPoint_Local, unsigned long baseIndex,
392+
bool update_geo, bool static_fsi, bool steady_restart);
393+
364394
/*!
365395
* \brief Generic implementation to compute the time step based on CFL and conv/visc eigenvalues.
366396
* \param[in] geometry - Geometrical definition of the problem.

0 commit comments

Comments
 (0)