|
39 | 39 | class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME::INCOMPRESSIBLE> { |
40 | 40 | protected: |
41 | 41 | vector<CFluidModel*> FluidModel; /*!< \brief fluid model used in the solver. */ |
42 | | - StreamwisePeriodicValues SPvals; |
| 42 | + StreamwisePeriodicValues SPvals, SPvalsUpdated; |
43 | 43 |
|
44 | 44 | /*! |
45 | 45 | * \brief Preprocessing actions common to the Euler and NS solvers. |
@@ -395,8 +395,30 @@ class CIncEulerSolver : public CFVMFlowSolverBase<CIncEulerVariable, ENUM_REGIME |
395 | 395 | inline bool GetHasHybridParallel() const final { return true; } |
396 | 396 |
|
397 | 397 | /*! |
398 | | - * \brief Get values for streamwise periodic flow: delta P, m_dot, inlet T, integrated heat. |
399 | | - * \return Struct holding 4 su2doubles. |
| 398 | + * \brief Get values for streamwise periodic flow: delta P, m_dot, inlet T, integrated heat, etc. |
| 399 | + * \return Struct holding streamwise periodic values. |
400 | 400 | */ |
401 | 401 | StreamwisePeriodicValues GetStreamwisePeriodicValues() const final { return SPvals; } |
| 402 | + |
| 403 | + /*! |
| 404 | + * \brief Register In- or Output. |
| 405 | + * \param[in] input - Boolean whether In- or Output should be registered. |
| 406 | + * \param[in] config - The particular config. |
| 407 | + * \returns The number of extra variables. |
| 408 | + */ |
| 409 | + unsigned long RegisterSolutionExtra(bool input, const CConfig* config) final; |
| 410 | + |
| 411 | + /*! |
| 412 | + * \brief Seed the adjoint of the extra solution at the output. |
| 413 | + * \param[in] adj_sol - Vector containing the adjoint solution to seed. |
| 414 | + * \param[in] config - The particular config. |
| 415 | + */ |
| 416 | + void SetAdjoint_SolutionExtra(const su2activevector& adj_sol, const CConfig* config) final; |
| 417 | + |
| 418 | + /*! |
| 419 | + * \brief Extract the adjoint of the extra solution at the input. |
| 420 | + * \param[out] adj_sol - Vector to store the adjoint into. |
| 421 | + * \param[in] config - The particular config. |
| 422 | + */ |
| 423 | + void ExtractAdjoint_SolutionExtra(su2activevector& adj_sol, const CConfig* config) final; |
402 | 424 | }; |
0 commit comments