Skip to content

Commit bfafc94

Browse files
author
Max Aehle
committed
Merge remote-tracking branch 'origin/develop' into fix_primalgrid_const
2 parents d16221f + ac042cb commit bfafc94

6 files changed

Lines changed: 372 additions & 211 deletions

File tree

SU2_CFD/include/drivers/CDriver.hpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,12 @@ class CDriver {
447447
*/
448448
passivedouble GetUnsteady_TimeStep() const;
449449

450+
/*!
451+
* \brief Get the name of the output file for the surface.
452+
* \return File name for the surface output.
453+
*/
454+
string GetSurfaceFileName() const;
455+
450456
/*!
451457
* \brief Get the global index of a vertex on a specified marker.
452458
* \param[in] iMarker - Marker identifier.
@@ -520,13 +526,20 @@ class CDriver {
520526
void Inlet_Preprocessing(CSolver ***solver, CGeometry **geometry, CConfig *config) const;
521527

522528
/*!
523-
* \brief Get the unit normal (vector) at a vertex on a specified marker.
529+
* \brief Get the normal (vector) at a vertex on a specified marker.
524530
* \param[in] iMarker - Marker identifier.
525531
* \param[in] iVertex - Vertex identifier.
526-
* \return Unit normal (vector) at the vertex.
532+
* \param[in] unitNormal - Bool to normalise the vector.
533+
* \return Normal (vector) at the vertex.
527534
*/
528535
vector<passivedouble> GetVertexNormal(unsigned short iMarker, unsigned long iVertex, bool unitNormal = false) const;
529536

537+
/*!
538+
* \brief Get the unit normal (vector) at a vertex on a specified marker.
539+
* \param[in] iMarker - Marker identifier.
540+
* \param[in] iVertex - Vertex identifier.
541+
* \return Unit normal (vector) at the vertex.
542+
*/
530543
inline vector<passivedouble> GetVertexUnitNormal(unsigned short iMarker, unsigned long iVertex) const {
531544
return GetVertexNormal(iMarker, iVertex, true);
532545
}

SU2_CFD/src/python_wrapper_structure.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ passivedouble CDriver::GetUnsteady_TimeStep() const {
278278
return SU2_TYPE::GetValue(config_container[ZONE_0]->GetTime_Step());
279279
}
280280

281+
string CDriver::GetSurfaceFileName() const {
282+
283+
return config_container[ZONE_0]->GetSurfCoeff_FileName();
284+
}
285+
281286
///////////////////////////////////////////////////////////////////////////////
282287
/* Functions related to CHT solver */
283288
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)