Skip to content

Commit 6691b70

Browse files
authored
Merge pull request #1124 from Nicola-Fonzi/publish
Update of the python fsi interface and new feature coupling SU2 with Nastran
2 parents 9a4f21e + 554e3d7 commit 6691b70

21 files changed

Lines changed: 1922 additions & 1601 deletions

Common/include/CConfig.hpp

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ class CConfig {
196196
nMarker_NearFieldBound, /*!< \brief Number of near field boundary markers. */
197197
nMarker_ActDiskInlet, /*!< \brief Number of actuator disk inlet markers. */
198198
nMarker_ActDiskOutlet, /*!< \brief Number of actuator disk outlet markers. */
199+
nMarker_Deform_Mesh_Sym_Plane, /*!< \brief Number of markers with symmetric deformation */
199200
nMarker_Deform_Mesh, /*!< \brief Number of deformable markers at the boundary. */
200201
nMarker_Fluid_Load, /*!< \brief Number of markers in which the flow load is computed/employed. */
201202
nMarker_Fluid_InterfaceBound, /*!< \brief Number of fluid interface markers. */
@@ -242,6 +243,7 @@ class CConfig {
242243
*Marker_TurboBoundOut, /*!< \brief Turbomachinery performance boundary donor markers. */
243244
*Marker_NearFieldBound, /*!< \brief Near Field boundaries markers. */
244245
*Marker_Deform_Mesh, /*!< \brief Deformable markers at the boundary. */
246+
*Marker_Deform_Mesh_Sym_Plane, /*!< \brief Marker with symmetric deformation. */
245247
*Marker_Fluid_Load, /*!< \brief Markers in which the flow load is computed/employed. */
246248
*Marker_Fluid_InterfaceBound, /*!< \brief Fluid interface markers. */
247249
*Marker_CHTInterface, /*!< \brief Conjugate heat transfer interface markers. */
@@ -703,6 +705,7 @@ class CConfig {
703705
*Marker_All_DV, /*!< \brief Global index for design variable markers using the grid information. */
704706
*Marker_All_Moving, /*!< \brief Global index for moving surfaces using the grid information. */
705707
*Marker_All_Deform_Mesh, /*!< \brief Global index for deformable markers at the boundary. */
708+
*Marker_All_Deform_Mesh_Sym_Plane, /*!< \brief Global index for markers with symmetric deformations. */
706709
*Marker_All_Fluid_Load, /*!< \brief Global index for markers in which the flow load is computed/employed. */
707710
*Marker_All_PyCustom, /*!< \brief Global index for Python customizable surfaces using the grid information. */
708711
*Marker_All_Designing, /*!< \brief Global index for moving using the grid information. */
@@ -717,6 +720,7 @@ class CConfig {
717720
*Marker_CfgFile_MixingPlaneInterface, /*!< \brief Global index for MixingPlane interface using the config information. */
718721
*Marker_CfgFile_Moving, /*!< \brief Global index for moving surfaces using the config information. */
719722
*Marker_CfgFile_Deform_Mesh, /*!< \brief Global index for deformable markers at the boundary. */
723+
*Marker_CfgFile_Deform_Mesh_Sym_Plane, /*!< \brief Global index for markers with symmetric deformations. */
720724
*Marker_CfgFile_Fluid_Load, /*!< \brief Global index for markers in which the flow load is computed/employed. */
721725
*Marker_CfgFile_PyCustom, /*!< \brief Global index for Python customizable surfaces using the config information. */
722726
*Marker_CfgFile_DV, /*!< \brief Global index for design variable markers using the config information. */
@@ -3409,6 +3413,13 @@ class CConfig {
34093413
*/
34103414
void SetMarker_All_Deform_Mesh(unsigned short val_marker, unsigned short val_deform) { Marker_All_Deform_Mesh[val_marker] = val_deform; }
34113415

3416+
/*!
3417+
* \brief Set if a marker <i>val_marker</i> allows deformation at the boundary.
3418+
* \param[in] val_marker - Index of the marker in which we are interested.
3419+
* \param[in] val_interface - 0 or 1 depending if the the marker is or not a DEFORM_MESH_SYM_PLANE marker.
3420+
*/
3421+
void SetMarker_All_Deform_Mesh_Sym_Plane(unsigned short val_marker, unsigned short val_deform) { Marker_All_Deform_Mesh_Sym_Plane[val_marker] = val_deform; }
3422+
34123423
/*!
34133424
* \brief Set if a in marker <i>val_marker</i> the flow load will be computed/employed.
34143425
* \param[in] val_marker - Index of the marker in which we are interested.
@@ -3546,6 +3557,13 @@ class CConfig {
35463557
*/
35473558
unsigned short GetMarker_All_Deform_Mesh(unsigned short val_marker) const { return Marker_All_Deform_Mesh[val_marker]; }
35483559

3560+
/*!
3561+
* \brief Get whether marker <i>val_marker</i> is a DEFORM_MESH_SYM_PLANE marker
3562+
* \param[in] val_marker - 0 or 1 depending if the the marker belongs to the DEFORM_MESH_SYM_PLANE subset.
3563+
* \return 0 or 1 depending if the marker belongs to the DEFORM_MESH_SYM_PLANE subset.
3564+
*/
3565+
unsigned short GetMarker_All_Deform_Mesh_Sym_Plane(unsigned short val_marker) const { return Marker_All_Deform_Mesh_Sym_Plane[val_marker]; }
3566+
35493567
/*!
35503568
* \brief Get whether marker <i>val_marker</i> is a Fluid_Load marker
35513569
* \param[in] val_marker - 0 or 1 depending if the the marker belongs to the Fluid_Load subset.
@@ -6092,6 +6110,12 @@ class CConfig {
60926110
*/
60936111
unsigned short GetMarker_CfgFile_Deform_Mesh(string val_marker) const;
60946112

6113+
/*!
6114+
* \brief Get the DEFORM_MESH_SYM_PLANE information from the config definition for the marker <i>val_marker</i>.
6115+
* \return DEFORM_MESH_SYM_PLANE information of the boundary in the config information for the marker <i>val_marker</i>.
6116+
*/
6117+
unsigned short GetMarker_CfgFile_Deform_Mesh_Sym_Plane(string val_marker) const;
6118+
60956119
/*!
60966120
* \brief Get the Fluid_Load information from the config definition for the marker <i>val_marker</i>.
60976121
* \return Fluid_Load information of the boundary in the config information for the marker <i>val_marker</i>.
@@ -6418,6 +6442,12 @@ class CConfig {
64186442
*/
64196443
unsigned short GetMarker_Deform_Mesh(string val_marker) const;
64206444

6445+
/*!
6446+
* \brief Get the internal index for a DEFORM_MESH_SYM_PLANE boundary <i>val_marker</i>.
6447+
* \return Internal index for a DEFORM_MESH_SYM_PLANE boundary <i>val_marker</i>.
6448+
*/
6449+
unsigned short GetMarker_Deform_Mesh_Sym_Plane(string val_marker) const;
6450+
64216451
/*!
64226452
* \brief Get the internal index for a Fluid_Load boundary <i>val_marker</i>.
64236453
* \return Internal index for a Fluid_Load boundary <i>val_marker</i>.
@@ -6440,6 +6470,14 @@ class CConfig {
64406470
*/
64416471
string GetMarker_Deform_Mesh_TagBound(unsigned short val_marker) const { return Marker_Deform_Mesh[val_marker]; }
64426472

6473+
/*!
6474+
* \brief Get the name of the DEFORM_MESH_SYM_PLANE boundary defined in the geometry file.
6475+
* \param[in] val_marker - Value of the marker in which we are interested.
6476+
* \return Name that is in the geometry file for the surface that
6477+
* has the marker <i>val_marker</i>.
6478+
*/
6479+
string GetMarker_Deform_Mesh_Sym_Plane_TagBound(unsigned short val_marker) const { return Marker_Deform_Mesh_Sym_Plane[val_marker]; }
6480+
64436481
/*!
64446482
* \brief Get the name of the Fluid_Load boundary defined in the geometry file.
64456483
* \param[in] val_marker - Value of the marker in which we are interested.

Common/src/CConfig.cpp

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ void CConfig::SetPointersNull(void) {
789789
Marker_CfgFile_MixingPlaneInterface = nullptr; Marker_All_MixingPlaneInterface = nullptr;
790790
Marker_CfgFile_ZoneInterface = nullptr;
791791
Marker_CfgFile_Deform_Mesh = nullptr; Marker_All_Deform_Mesh = nullptr;
792+
Marker_CfgFile_Deform_Mesh_Sym_Plane = nullptr; Marker_All_Deform_Mesh_Sym_Plane = nullptr;
792793
Marker_CfgFile_Fluid_Load = nullptr; Marker_All_Fluid_Load = nullptr;
793794

794795
Marker_CfgFile_Turbomachinery = nullptr; Marker_All_Turbomachinery = nullptr;
@@ -814,7 +815,7 @@ void CConfig::SetPointersNull(void) {
814815
Marker_Euler = nullptr; Marker_FarField = nullptr; Marker_Custom = nullptr;
815816
Marker_SymWall = nullptr; Marker_PerBound = nullptr;
816817
Marker_PerDonor = nullptr; Marker_NearFieldBound = nullptr;
817-
Marker_Deform_Mesh = nullptr; Marker_Fluid_Load = nullptr;
818+
Marker_Deform_Mesh = nullptr; Marker_Deform_Mesh_Sym_Plane= nullptr; Marker_Fluid_Load = nullptr;
818819
Marker_Inlet = nullptr; Marker_Outlet = nullptr;
819820
Marker_Supersonic_Inlet = nullptr; Marker_Supersonic_Outlet= nullptr; Marker_Smoluchowski_Maxwell = nullptr;
820821
Marker_Isothermal = nullptr; Marker_HeatFlux = nullptr; Marker_EngineInflow = nullptr;
@@ -1387,6 +1388,8 @@ void CConfig::SetConfig_Options() {
13871388
addStringListOption("MARKER_FLUID_INTERFACE", nMarker_Fluid_InterfaceBound, Marker_Fluid_InterfaceBound);
13881389
/*!\brief MARKER_DEFORM_MESH\n DESCRIPTION: Deformable marker(s) at the interface \ingroup Config*/
13891390
addStringListOption("MARKER_DEFORM_MESH", nMarker_Deform_Mesh, Marker_Deform_Mesh);
1391+
/*!\brief MARKER_DEFORM_MESH_SYM_PLANE\n DESCRIPTION: Symmetry plane for mesh deformation only \ingroup Config*/
1392+
addStringListOption("MARKER_DEFORM_MESH_SYM_PLANE", nMarker_Deform_Mesh_Sym_Plane, Marker_Deform_Mesh_Sym_Plane);
13901393
/*!\brief MARKER_FLUID_LOAD\n DESCRIPTION: Marker(s) in which the flow load is computed/applied \ingroup Config*/
13911394
addStringListOption("MARKER_FLUID_LOAD", nMarker_Fluid_Load, Marker_Fluid_Load);
13921395
/*!\brief MARKER_FSI_INTERFACE \n DESCRIPTION: ZONE interface boundary marker(s) \ingroup Config*/
@@ -3707,7 +3710,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
37073710
/*--- If it is not specified, set the mesh motion mach number
37083711
equal to the freestream value. ---*/
37093712

3710-
if (GetGrid_Movement() && Mach_Motion == 0.0)
3713+
if (GetDynamic_Grid() && Mach_Motion == 0.0)
37113714
Mach_Motion = Mach;
37123715

37133716
/*--- Set the boolean flag if we are in a rotating frame (source term). ---*/
@@ -5042,7 +5045,7 @@ void CConfig::SetMarkers(unsigned short val_software) {
50425045
iMarker_Monitoring, iMarker_Designing, iMarker_GeoEval, iMarker_Plotting, iMarker_Analyze,
50435046
iMarker_DV, iMarker_Moving, iMarker_PyCustom, iMarker_Supersonic_Inlet, iMarker_Supersonic_Outlet,
50445047
iMarker_Clamped, iMarker_ZoneInterface, iMarker_CHTInterface, iMarker_Load_Dir, iMarker_Disp_Dir, iMarker_Load_Sine,
5045-
iMarker_Fluid_Load, iMarker_Deform_Mesh,
5048+
iMarker_Fluid_Load, iMarker_Deform_Mesh, iMarker_Deform_Mesh_Sym_Plane,
50465049
iMarker_ActDiskInlet, iMarker_ActDiskOutlet,
50475050
iMarker_Turbomachinery, iMarker_MixingPlaneInterface;
50485051

@@ -5088,6 +5091,7 @@ void CConfig::SetMarkers(unsigned short val_software) {
50885091
Marker_All_DV = new unsigned short[nMarker_All] (); // Store whether the boundary should be affected by design variables.
50895092
Marker_All_Moving = new unsigned short[nMarker_All] (); // Store whether the boundary should be in motion.
50905093
Marker_All_Deform_Mesh = new unsigned short[nMarker_All] (); // Store whether the boundary is deformable.
5094+
Marker_All_Deform_Mesh_Sym_Plane = new unsigned short[nMarker_All] (); //Store wheter the boundary will follow the deformation
50915095
Marker_All_Fluid_Load = new unsigned short[nMarker_All] (); // Store whether the boundary computes/applies fluid loads.
50925096
Marker_All_PyCustom = new unsigned short[nMarker_All] (); // Store whether the boundary is Python customizable.
50935097
Marker_All_PerBound = new short[nMarker_All] (); // Store whether the boundary belongs to a periodic boundary.
@@ -5112,6 +5116,7 @@ void CConfig::SetMarkers(unsigned short val_software) {
51125116
Marker_CfgFile_DV = new unsigned short[nMarker_CfgFile] ();
51135117
Marker_CfgFile_Moving = new unsigned short[nMarker_CfgFile] ();
51145118
Marker_CfgFile_Deform_Mesh = new unsigned short[nMarker_CfgFile] ();
5119+
Marker_CfgFile_Deform_Mesh_Sym_Plane= new unsigned short[nMarker_CfgFile] ();
51155120
Marker_CfgFile_Fluid_Load = new unsigned short[nMarker_CfgFile] ();
51165121
Marker_CfgFile_PerBound = new unsigned short[nMarker_CfgFile] ();
51175122
Marker_CfgFile_Turbomachinery = new unsigned short[nMarker_CfgFile] ();
@@ -5511,6 +5516,13 @@ void CConfig::SetMarkers(unsigned short val_software) {
55115516
Marker_CfgFile_Deform_Mesh[iMarker_CfgFile] = YES;
55125517
}
55135518

5519+
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++) {
5520+
Marker_CfgFile_Deform_Mesh_Sym_Plane[iMarker_CfgFile] = NO;
5521+
for (iMarker_Deform_Mesh_Sym_Plane = 0; iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane; iMarker_Deform_Mesh_Sym_Plane++)
5522+
if (Marker_CfgFile_TagBound[iMarker_CfgFile] == Marker_Deform_Mesh_Sym_Plane[iMarker_Deform_Mesh_Sym_Plane])
5523+
Marker_CfgFile_Deform_Mesh_Sym_Plane[iMarker_CfgFile] = YES;
5524+
}
5525+
55145526
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++) {
55155527
Marker_CfgFile_Fluid_Load[iMarker_CfgFile] = NO;
55165528
for (iMarker_Fluid_Load = 0; iMarker_Fluid_Load < nMarker_Fluid_Load; iMarker_Fluid_Load++)
@@ -5532,7 +5544,8 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
55325544
unsigned short iMarker_Euler, iMarker_Custom, iMarker_FarField,
55335545
iMarker_SymWall, iMarker_PerBound, iMarker_NearFieldBound,
55345546
iMarker_Fluid_InterfaceBound, iMarker_Inlet, iMarker_Riemann,
5535-
iMarker_Deform_Mesh, iMarker_Fluid_Load, iMarker_Smoluchowski_Maxwell, iWall_Catalytic,
5547+
iMarker_Deform_Mesh, iMarker_Deform_Mesh_Sym_Plane, iMarker_Fluid_Load,
5548+
iMarker_Smoluchowski_Maxwell, iWall_Catalytic,
55365549
iMarker_Giles, iMarker_Outlet, iMarker_Isothermal, iMarker_HeatFlux,
55375550
iMarker_EngineInflow, iMarker_EngineExhaust, iMarker_Displacement, iMarker_Damper,
55385551
iMarker_Load, iMarker_FlowLoad, iMarker_Internal, iMarker_Monitoring,
@@ -6821,6 +6834,15 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
68216834
BoundaryTable.PrintFooter();
68226835
}
68236836

6837+
if (nMarker_Deform_Mesh_Sym_Plane != 0) {
6838+
BoundaryTable << "Symmetric deformable mesh boundary";
6839+
for (iMarker_Deform_Mesh_Sym_Plane = 0; iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane; iMarker_Deform_Mesh_Sym_Plane++) {
6840+
BoundaryTable << Marker_Deform_Mesh_Sym_Plane[iMarker_Deform_Mesh_Sym_Plane];
6841+
if (iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane-1) BoundaryTable << " ";
6842+
}
6843+
BoundaryTable.PrintFooter();
6844+
}
6845+
68246846
if (nMarker_Fluid_Load != 0) {
68256847
BoundaryTable << "Fluid loads boundary";
68266848
for (iMarker_Fluid_Load = 0; iMarker_Fluid_Load < nMarker_Fluid_Load; iMarker_Fluid_Load++) {
@@ -7342,6 +7364,13 @@ unsigned short CConfig::GetMarker_CfgFile_Deform_Mesh(string val_marker) const {
73427364
return Marker_CfgFile_Deform_Mesh[iMarker_CfgFile];
73437365
}
73447366

7367+
unsigned short CConfig::GetMarker_CfgFile_Deform_Mesh_Sym_Plane(string val_marker) const {
7368+
unsigned short iMarker_CfgFile;
7369+
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++)
7370+
if (Marker_CfgFile_TagBound[iMarker_CfgFile] == val_marker) break;
7371+
return Marker_CfgFile_Deform_Mesh_Sym_Plane[iMarker_CfgFile];
7372+
}
7373+
73457374
unsigned short CConfig::GetMarker_CfgFile_Fluid_Load(string val_marker) const {
73467375
unsigned short iMarker_CfgFile;
73477376
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++)
@@ -7516,6 +7545,9 @@ CConfig::~CConfig(void) {
75167545
delete[] Marker_CfgFile_Deform_Mesh;
75177546
delete[] Marker_All_Deform_Mesh;
75187547

7548+
delete[] Marker_CfgFile_Deform_Mesh_Sym_Plane;
7549+
delete[] Marker_All_Deform_Mesh_Sym_Plane;
7550+
75197551
delete[] Marker_CfgFile_Fluid_Load;
75207552
delete[] Marker_All_Fluid_Load;
75217553

@@ -7780,6 +7812,7 @@ CConfig::~CConfig(void) {
77807812
delete[] Marker_PerDonor;
77817813
delete[] Marker_NearFieldBound;
77827814
delete[] Marker_Deform_Mesh;
7815+
delete[] Marker_Deform_Mesh_Sym_Plane;
77837816
delete[] Marker_Fluid_Load;
77847817
delete[] Marker_Fluid_InterfaceBound;
77857818
delete[] Marker_Inlet;
@@ -8485,6 +8518,16 @@ unsigned short CConfig::GetMarker_Deform_Mesh(string val_marker) const {
84858518
return iMarker_Deform_Mesh;
84868519
}
84878520

8521+
unsigned short CConfig::GetMarker_Deform_Mesh_Sym_Plane(string val_marker) const {
8522+
unsigned short iMarker_Deform_Mesh_Sym_Plane;
8523+
8524+
/*--- Find the marker for this interface boundary. ---*/
8525+
for (iMarker_Deform_Mesh_Sym_Plane = 0; iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane; iMarker_Deform_Mesh_Sym_Plane++)
8526+
if (Marker_Deform_Mesh_Sym_Plane[iMarker_Deform_Mesh_Sym_Plane] == val_marker) break;
8527+
8528+
return iMarker_Deform_Mesh_Sym_Plane;
8529+
}
8530+
84888531
unsigned short CConfig::GetMarker_Fluid_Load(string val_marker) const {
84898532
unsigned short iMarker_Fluid_Load;
84908533

Common/src/geometry/CPhysicalGeometry.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3593,6 +3593,7 @@ void CPhysicalGeometry::SetBoundaries(CConfig *config) {
35933593
config->SetMarker_All_DV(iMarker, config->GetMarker_CfgFile_DV(Marker_Tag));
35943594
config->SetMarker_All_Moving(iMarker, config->GetMarker_CfgFile_Moving(Marker_Tag));
35953595
config->SetMarker_All_Deform_Mesh(iMarker, config->GetMarker_CfgFile_Deform_Mesh(Marker_Tag));
3596+
config->SetMarker_All_Deform_Mesh_Sym_Plane(iMarker, config->GetMarker_CfgFile_Deform_Mesh_Sym_Plane(Marker_Tag));
35963597
config->SetMarker_All_Fluid_Load(iMarker, config->GetMarker_CfgFile_Fluid_Load(Marker_Tag));
35973598
config->SetMarker_All_PyCustom(iMarker, config->GetMarker_CfgFile_PyCustom(Marker_Tag));
35983599
config->SetMarker_All_PerBound(iMarker, config->GetMarker_CfgFile_PerBound(Marker_Tag));
@@ -3615,6 +3616,7 @@ void CPhysicalGeometry::SetBoundaries(CConfig *config) {
36153616
config->SetMarker_All_DV(iMarker, NO);
36163617
config->SetMarker_All_Moving(iMarker, NO);
36173618
config->SetMarker_All_Deform_Mesh(iMarker, NO);
3619+
config->SetMarker_All_Deform_Mesh_Sym_Plane(iMarker, NO);
36183620
config->SetMarker_All_Fluid_Load(iMarker, NO);
36193621
config->SetMarker_All_PyCustom(iMarker, NO);
36203622
config->SetMarker_All_PerBound(iMarker, NO);
@@ -4016,6 +4018,7 @@ void CPhysicalGeometry::LoadUnpartitionedSurfaceElements(CConfig *config,
40164018
config->SetMarker_All_DV(iMarker, config->GetMarker_CfgFile_DV(Marker_Tag));
40174019
config->SetMarker_All_Moving(iMarker, config->GetMarker_CfgFile_Moving(Marker_Tag));
40184020
config->SetMarker_All_Deform_Mesh(iMarker, config->GetMarker_CfgFile_Deform_Mesh(Marker_Tag));
4021+
config->SetMarker_All_Deform_Mesh_Sym_Plane(iMarker, config->GetMarker_CfgFile_Deform_Mesh_Sym_Plane(Marker_Tag));
40194022
config->SetMarker_All_Fluid_Load(iMarker, config->GetMarker_CfgFile_Fluid_Load(Marker_Tag));
40204023
config->SetMarker_All_PyCustom(iMarker, config->GetMarker_CfgFile_PyCustom(Marker_Tag));
40214024
config->SetMarker_All_PerBound(iMarker, config->GetMarker_CfgFile_PerBound(Marker_Tag));

SU2_CFD/include/drivers/CSinglezoneDriver.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* SU2 Project Website: https://su2code.github.io
99
*
10-
* The SU2 Project is maintained by the SU2 Foundation
10+
* The SU2 Project is maintained by the SU2 Foundation
1111
* (http://su2foundation.org)
1212
*
1313
* Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md)
@@ -92,6 +92,11 @@ class CSinglezoneDriver : public CDriver {
9292
*/
9393
void DynamicMeshUpdate(unsigned long TimeIter) override;
9494

95+
/*!
96+
* \brief Perform a mesh deformation as initial condition.
97+
*/
98+
void SetInitialMesh() override;
99+
95100
/*!
96101
* \brief Monitor
97102
* \param ExtIter

SU2_CFD/src/iteration/CFluidIteration.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ void CFluidIteration::Postprocess(COutput* output, CIntegration**** integration,
235235
CSurfaceMovement** surface_movement, CVolumetricMovement*** grid_movement,
236236
CFreeFormDefBox*** FFDBox, unsigned short val_iZone, unsigned short val_iInst) {
237237
/*--- Temporary: enable only for single-zone driver. This should be removed eventually when generalized. ---*/
238-
239238
if (config[val_iZone]->GetSinglezone_Driver()) {
240239
/*--- Compute the tractions at the vertices ---*/
241240
solver[val_iZone][val_iInst][MESH_0][FLOW_SOL]->ComputeVertexTractions(geometry[val_iZone][val_iInst][MESH_0],

SU2_CFD/src/output/COutput.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,9 @@ bool COutput::WriteHistoryFile_Output(CConfig *config) {
19921992
}
19931993

19941994
bool COutput::WriteVolume_Output(CConfig *config, unsigned long Iter, bool force_writing){
1995-
if (config->GetTime_Domain()) return ((Iter % config->GetVolume_Wrt_Freq() == 0)) || force_writing;
1995+
if (config->GetTime_Domain()){
1996+
return ((Iter % config->GetVolume_Wrt_Freq() == 0)) || force_writing;
1997+
}
19961998
else {
19971999
return ((Iter > 0) && (Iter % config->GetVolume_Wrt_Freq() == 0)) || force_writing;
19982000
}

0 commit comments

Comments
 (0)