Skip to content

Commit 9ab0335

Browse files
authored
Merge pull request #1197 from su2code/cleanup_python_wrapper
Cleanup python wrapper, replace legacy python FSI
2 parents 88fbcd6 + 392e31f commit 9ab0335

32 files changed

Lines changed: 668 additions & 1776 deletions

Common/include/CConfig.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ class CConfig {
657657
nMarker_ZoneInterface, /*!< \brief Number of markers in the zone interface. */
658658
nMarker_Plotting, /*!< \brief Number of markers to plot. */
659659
nMarker_Analyze, /*!< \brief Number of markers to analyze. */
660-
nMarker_Moving, /*!< \brief Number of markers in motion (DEFORMING, MOVING_WALL, or FLUID_STRUCTURE). */
660+
nMarker_Moving, /*!< \brief Number of markers in motion (DEFORMING, MOVING_WALL). */
661661
nMarker_PyCustom, /*!< \brief Number of markers that are customizable in Python. */
662662
nMarker_DV, /*!< \brief Number of markers affected by the design variables. */
663663
nMarker_WallFunctions; /*!< \brief Number of markers for which wall functions must be applied. */
@@ -667,7 +667,7 @@ class CConfig {
667667
*Marker_Plotting, /*!< \brief Markers to plot. */
668668
*Marker_Analyze, /*!< \brief Markers to analyze. */
669669
*Marker_ZoneInterface, /*!< \brief Markers in the FSI interface. */
670-
*Marker_Moving, /*!< \brief Markers in motion (DEFORMING, MOVING_WALL, or FLUID_STRUCTURE). */
670+
*Marker_Moving, /*!< \brief Markers in motion (DEFORMING, MOVING_WALL). */
671671
*Marker_PyCustom, /*!< \brief Markers that are customizable in Python. */
672672
*Marker_DV, /*!< \brief Markers affected by the design variables. */
673673
*Marker_WallFunctions; /*!< \brief Markers for which wall functions must be applied. */

Common/include/option_structure.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ enum ENUM_MAIN_SOLVER {
176176
INC_NAVIER_STOKES =5, /*!< \brief Definition of the incompressible Navier-Stokes' solver. */
177177
INC_RANS = 6, /*!< \brief Definition of the incompressible Reynolds-averaged Navier-Stokes' (RANS) solver. */
178178
HEAT_EQUATION = 7, /*!< \brief Definition of the finite volume heat solver. */
179-
FLUID_STRUCTURE_INTERACTION = 8, /*!< \brief Definition of a FSI solver. */
180179
FEM_ELASTICITY = 9, /*!< \brief Definition of a FEM solver. */
181180
ADJ_EULER = 10, /*!< \brief Definition of the continuous adjoint Euler's solver. */
182181
ADJ_NAVIER_STOKES = 11, /*!< \brief Definition of the continuous adjoint Navier-Stokes' solver. */
@@ -231,7 +230,6 @@ static const MapType<string, ENUM_MAIN_SOLVER> Solver_Map = {
231230
MakePair("DISC_ADJ_FEM_RANS", DISC_ADJ_FEM_RANS)
232231
MakePair("DISC_ADJ_FEM_NS", DISC_ADJ_FEM_NS)
233232
MakePair("DISC_ADJ_FEM", DISC_ADJ_FEM)
234-
MakePair("FLUID_STRUCTURE_INTERACTION", FLUID_STRUCTURE_INTERACTION)
235233
MakePair("TEMPLATE_SOLVER", TEMPLATE_SOLVER)
236234
MakePair("MULTIPHYSICS", MULTIPHYSICS)
237235
};
@@ -699,7 +697,6 @@ enum ENUM_SURFACEMOVEMENT {
699697
MOVING_WALL = 2, /*!< \brief Simulation with moving wall. */
700698
AEROELASTIC = 3, /*!< \brief Simulation with aeroelastic motion. */
701699
AEROELASTIC_RIGID_MOTION = 4, /*!< \brief Simulation with rotation and aeroelastic motion. */
702-
FLUID_STRUCTURE = 5, /*!< \brief Fluid structure deformation. */
703700
EXTERNAL = 6, /*!< \brief Simulation with external motion. */
704701
EXTERNAL_ROTATION = 7, /*!< \brief Simulation with external rotation motion. */
705702
};
@@ -708,7 +705,6 @@ static const MapType<string, ENUM_SURFACEMOVEMENT> SurfaceMovement_Map = {
708705
MakePair("MOVING_WALL", MOVING_WALL)
709706
MakePair("AEROELASTIC_RIGID_MOTION", AEROELASTIC_RIGID_MOTION)
710707
MakePair("AEROELASTIC", AEROELASTIC)
711-
MakePair("FLUID_STRUCTURE", FLUID_STRUCTURE)
712708
MakePair("EXTERNAL", EXTERNAL)
713709
MakePair("EXTERNAL_ROTATION", EXTERNAL_ROTATION)
714710
};

Common/src/CConfig.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3114,13 +3114,6 @@ void CConfig::SetnZone(){
31143114

31153115
}
31163116

3117-
/*--- Temporary fix until Multizone Disc. Adj. solver is ready ---- */
3118-
3119-
if (Kind_Solver == FLUID_STRUCTURE_INTERACTION){
3120-
3121-
nZone = GetnZone(Mesh_FileName, Mesh_FileFormat);
3122-
3123-
}
31243117
}
31253118

31263119
void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_izone, unsigned short val_nDim) {
@@ -3563,11 +3556,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
35633556
}
35643557
}
35653558

3566-
if ((nKind_SurfaceMovement > 1) && GetSurface_Movement(FLUID_STRUCTURE)) {
3567-
SU2_MPI::Error("FSI in combination with moving surfaces is currently not supported.", CURRENT_FUNCTION);
3568-
}
3569-
3570-
if ((nKind_SurfaceMovement != nMarker_Moving) && !GetSurface_Movement(FLUID_STRUCTURE)) {
3559+
if (nKind_SurfaceMovement != nMarker_Moving) {
35713560
SU2_MPI::Error("Number of KIND_SURFACE_MOVEMENT must match number of MARKER_MOVING", CURRENT_FUNCTION);
35723561
}
35733562

@@ -5590,7 +5579,6 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
55905579
case RIGID_MOTION: cout << "rigid mesh motion." << endl; break;
55915580
case MOVING_HTP: cout << "HTP moving." << endl; break;
55925581
case ROTATING_FRAME: cout << "rotating reference frame." << endl; break;
5593-
case FLUID_STRUCTURE: cout << "fluid-structure motion." << endl; break;
55945582
case EXTERNAL: cout << "externally prescribed motion." << endl; break;
55955583
}
55965584
}
@@ -8302,7 +8290,6 @@ bool CConfig::GetVolumetric_Movement() const {
83028290

83038291
if (GetSurface_Movement(AEROELASTIC) ||
83048292
GetSurface_Movement(AEROELASTIC_RIGID_MOTION)||
8305-
GetSurface_Movement(FLUID_STRUCTURE) ||
83068293
GetSurface_Movement(EXTERNAL) ||
83078294
GetSurface_Movement(EXTERNAL_ROTATION)){
83088295
volumetric_movement = true;

0 commit comments

Comments
 (0)