Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5b5cfa4
Version to publish
Dec 5, 2020
e3e50fd
Removed unnecessary files
Dec 5, 2020
72ae6f7
Included ReadMe files and test cases
Dec 5, 2020
8e0683f
Removed old headers in cfg files
Dec 5, 2020
32a9e7d
Removed old lines meson
Dec 5, 2020
660d597
Modifications as suggested by code factor
Dec 6, 2020
426b66d
Test case moved to tutorials
Dec 7, 2020
052e306
Removed duplicate code
Dec 7, 2020
43273d2
Fix to time iter
Dec 7, 2020
cfae101
Fixing access to protected variables
Dec 7, 2020
ffe424c
Fixing access to nodes
Dec 7, 2020
68cec1e
Small fix
Dec 8, 2020
7c3253d
Use of sym plane definition already in CFEMSolver
Dec 8, 2020
fc9f12a
removed unused line
Dec 8, 2020
69877b9
introduced debug
Dec 8, 2020
27d5d41
Try with new debug
Dec 8, 2020
f151228
Try with new debug
Dec 8, 2020
49d9651
Fixing problem with react
Dec 8, 2020
6de6cef
Merge branch 'publish_develop' of https://github.com/Nicola-Fonzi/SU2…
Dec 8, 2020
16103a0
Test to understand LinSysReact
Dec 9, 2020
97efbf9
another test to understand
Dec 9, 2020
003c753
small fix
Dec 9, 2020
83fd036
another one
Dec 9, 2020
6862a8c
removed one
Dec 9, 2020
013b51a
removed the other
Dec 9, 2020
7720f9f
Removed unnecessary line
Dec 9, 2020
085d1cf
Renamed match_deform_mesh marker
Dec 9, 2020
8889cbd
Removed unused function
Dec 9, 2020
d167567
Modified header
Dec 9, 2020
26b14b5
Compacted functions
Dec 9, 2020
145ef2e
Comments to the main methods
Dec 9, 2020
6b9bd51
Changed version number
Dec 9, 2020
7eb2270
Merge pull request #2 from Nicola-Fonzi/publish_develop
Nicola-Fonzi Dec 10, 2020
f8da484
Removed unnecessary output and condensed velocity initialisation
Dec 11, 2020
95f0a99
Merge remote-tracking branch 'upstream/develop' into publish
Dec 11, 2020
554e3d7
Merge branch 'develop' into publish
Nicola-Fonzi Dec 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions Common/include/CConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class CConfig {
nMarker_NearFieldBound, /*!< \brief Number of near field boundary markers. */
nMarker_ActDiskInlet, /*!< \brief Number of actuator disk inlet markers. */
nMarker_ActDiskOutlet, /*!< \brief Number of actuator disk outlet markers. */
nMarker_Deform_Mesh_Sym_Plane, /*!< \brief Number of markers with symmetric deformation */
nMarker_Deform_Mesh, /*!< \brief Number of deformable markers at the boundary. */
nMarker_Fluid_Load, /*!< \brief Number of markers in which the flow load is computed/employed. */
nMarker_Fluid_InterfaceBound, /*!< \brief Number of fluid interface markers. */
Expand Down Expand Up @@ -242,6 +243,7 @@ class CConfig {
*Marker_TurboBoundOut, /*!< \brief Turbomachinery performance boundary donor markers. */
*Marker_NearFieldBound, /*!< \brief Near Field boundaries markers. */
*Marker_Deform_Mesh, /*!< \brief Deformable markers at the boundary. */
*Marker_Deform_Mesh_Sym_Plane, /*!< \brief Marker with symmetric deformation. */
*Marker_Fluid_Load, /*!< \brief Markers in which the flow load is computed/employed. */
*Marker_Fluid_InterfaceBound, /*!< \brief Fluid interface markers. */
*Marker_CHTInterface, /*!< \brief Conjugate heat transfer interface markers. */
Expand Down Expand Up @@ -703,6 +705,7 @@ class CConfig {
*Marker_All_DV, /*!< \brief Global index for design variable markers using the grid information. */
*Marker_All_Moving, /*!< \brief Global index for moving surfaces using the grid information. */
*Marker_All_Deform_Mesh, /*!< \brief Global index for deformable markers at the boundary. */
*Marker_All_Deform_Mesh_Sym_Plane, /*!< \brief Global index for markers with symmetric deformations. */
*Marker_All_Fluid_Load, /*!< \brief Global index for markers in which the flow load is computed/employed. */
*Marker_All_PyCustom, /*!< \brief Global index for Python customizable surfaces using the grid information. */
*Marker_All_Designing, /*!< \brief Global index for moving using the grid information. */
Expand All @@ -717,6 +720,7 @@ class CConfig {
*Marker_CfgFile_MixingPlaneInterface, /*!< \brief Global index for MixingPlane interface using the config information. */
*Marker_CfgFile_Moving, /*!< \brief Global index for moving surfaces using the config information. */
*Marker_CfgFile_Deform_Mesh, /*!< \brief Global index for deformable markers at the boundary. */
*Marker_CfgFile_Deform_Mesh_Sym_Plane, /*!< \brief Global index for markers with symmetric deformations. */
*Marker_CfgFile_Fluid_Load, /*!< \brief Global index for markers in which the flow load is computed/employed. */
*Marker_CfgFile_PyCustom, /*!< \brief Global index for Python customizable surfaces using the config information. */
*Marker_CfgFile_DV, /*!< \brief Global index for design variable markers using the config information. */
Expand Down Expand Up @@ -3409,6 +3413,13 @@ class CConfig {
*/
void SetMarker_All_Deform_Mesh(unsigned short val_marker, unsigned short val_deform) { Marker_All_Deform_Mesh[val_marker] = val_deform; }

/*!
* \brief Set if a marker <i>val_marker</i> allows deformation at the boundary.
* \param[in] val_marker - Index of the marker in which we are interested.
* \param[in] val_interface - 0 or 1 depending if the the marker is or not a DEFORM_MESH_SYM_PLANE marker.
*/
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; }

/*!
* \brief Set if a in marker <i>val_marker</i> the flow load will be computed/employed.
* \param[in] val_marker - Index of the marker in which we are interested.
Expand Down Expand Up @@ -3546,6 +3557,13 @@ class CConfig {
*/
unsigned short GetMarker_All_Deform_Mesh(unsigned short val_marker) const { return Marker_All_Deform_Mesh[val_marker]; }

/*!
* \brief Get whether marker <i>val_marker</i> is a DEFORM_MESH_SYM_PLANE marker
* \param[in] val_marker - 0 or 1 depending if the the marker belongs to the DEFORM_MESH_SYM_PLANE subset.
* \return 0 or 1 depending if the marker belongs to the DEFORM_MESH_SYM_PLANE subset.
*/
unsigned short GetMarker_All_Deform_Mesh_Sym_Plane(unsigned short val_marker) const { return Marker_All_Deform_Mesh_Sym_Plane[val_marker]; }

/*!
* \brief Get whether marker <i>val_marker</i> is a Fluid_Load marker
* \param[in] val_marker - 0 or 1 depending if the the marker belongs to the Fluid_Load subset.
Expand Down Expand Up @@ -6092,6 +6110,12 @@ class CConfig {
*/
unsigned short GetMarker_CfgFile_Deform_Mesh(string val_marker) const;

/*!
* \brief Get the DEFORM_MESH_SYM_PLANE information from the config definition for the marker <i>val_marker</i>.
* \return DEFORM_MESH_SYM_PLANE information of the boundary in the config information for the marker <i>val_marker</i>.
*/
unsigned short GetMarker_CfgFile_Deform_Mesh_Sym_Plane(string val_marker) const;

/*!
* \brief Get the Fluid_Load information from the config definition for the marker <i>val_marker</i>.
* \return Fluid_Load information of the boundary in the config information for the marker <i>val_marker</i>.
Expand Down Expand Up @@ -6418,6 +6442,12 @@ class CConfig {
*/
unsigned short GetMarker_Deform_Mesh(string val_marker) const;

/*!
* \brief Get the internal index for a DEFORM_MESH_SYM_PLANE boundary <i>val_marker</i>.
* \return Internal index for a DEFORM_MESH_SYM_PLANE boundary <i>val_marker</i>.
*/
unsigned short GetMarker_Deform_Mesh_Sym_Plane(string val_marker) const;

/*!
* \brief Get the internal index for a Fluid_Load boundary <i>val_marker</i>.
* \return Internal index for a Fluid_Load boundary <i>val_marker</i>.
Expand All @@ -6440,6 +6470,14 @@ class CConfig {
*/
string GetMarker_Deform_Mesh_TagBound(unsigned short val_marker) const { return Marker_Deform_Mesh[val_marker]; }

/*!
* \brief Get the name of the DEFORM_MESH_SYM_PLANE boundary defined in the geometry file.
* \param[in] val_marker - Value of the marker in which we are interested.
* \return Name that is in the geometry file for the surface that
* has the marker <i>val_marker</i>.
*/
string GetMarker_Deform_Mesh_Sym_Plane_TagBound(unsigned short val_marker) const { return Marker_Deform_Mesh_Sym_Plane[val_marker]; }

/*!
* \brief Get the name of the Fluid_Load boundary defined in the geometry file.
* \param[in] val_marker - Value of the marker in which we are interested.
Expand Down
51 changes: 47 additions & 4 deletions Common/src/CConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ void CConfig::SetPointersNull(void) {
Marker_CfgFile_MixingPlaneInterface = nullptr; Marker_All_MixingPlaneInterface = nullptr;
Marker_CfgFile_ZoneInterface = nullptr;
Marker_CfgFile_Deform_Mesh = nullptr; Marker_All_Deform_Mesh = nullptr;
Marker_CfgFile_Deform_Mesh_Sym_Plane = nullptr; Marker_All_Deform_Mesh_Sym_Plane = nullptr;
Marker_CfgFile_Fluid_Load = nullptr; Marker_All_Fluid_Load = nullptr;

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

if (GetGrid_Movement() && Mach_Motion == 0.0)
if (GetDynamic_Grid() && Mach_Motion == 0.0)
Mach_Motion = Mach;

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

Expand Down Expand Up @@ -5088,6 +5091,7 @@ void CConfig::SetMarkers(unsigned short val_software) {
Marker_All_DV = new unsigned short[nMarker_All] (); // Store whether the boundary should be affected by design variables.
Marker_All_Moving = new unsigned short[nMarker_All] (); // Store whether the boundary should be in motion.
Marker_All_Deform_Mesh = new unsigned short[nMarker_All] (); // Store whether the boundary is deformable.
Marker_All_Deform_Mesh_Sym_Plane = new unsigned short[nMarker_All] (); //Store wheter the boundary will follow the deformation
Marker_All_Fluid_Load = new unsigned short[nMarker_All] (); // Store whether the boundary computes/applies fluid loads.
Marker_All_PyCustom = new unsigned short[nMarker_All] (); // Store whether the boundary is Python customizable.
Marker_All_PerBound = new short[nMarker_All] (); // Store whether the boundary belongs to a periodic boundary.
Expand All @@ -5112,6 +5116,7 @@ void CConfig::SetMarkers(unsigned short val_software) {
Marker_CfgFile_DV = new unsigned short[nMarker_CfgFile] ();
Marker_CfgFile_Moving = new unsigned short[nMarker_CfgFile] ();
Marker_CfgFile_Deform_Mesh = new unsigned short[nMarker_CfgFile] ();
Marker_CfgFile_Deform_Mesh_Sym_Plane= new unsigned short[nMarker_CfgFile] ();
Marker_CfgFile_Fluid_Load = new unsigned short[nMarker_CfgFile] ();
Marker_CfgFile_PerBound = new unsigned short[nMarker_CfgFile] ();
Marker_CfgFile_Turbomachinery = new unsigned short[nMarker_CfgFile] ();
Expand Down Expand Up @@ -5511,6 +5516,13 @@ void CConfig::SetMarkers(unsigned short val_software) {
Marker_CfgFile_Deform_Mesh[iMarker_CfgFile] = YES;
}

for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++) {
Marker_CfgFile_Deform_Mesh_Sym_Plane[iMarker_CfgFile] = NO;
for (iMarker_Deform_Mesh_Sym_Plane = 0; iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane; iMarker_Deform_Mesh_Sym_Plane++)
if (Marker_CfgFile_TagBound[iMarker_CfgFile] == Marker_Deform_Mesh_Sym_Plane[iMarker_Deform_Mesh_Sym_Plane])
Marker_CfgFile_Deform_Mesh_Sym_Plane[iMarker_CfgFile] = YES;
}

for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++) {
Marker_CfgFile_Fluid_Load[iMarker_CfgFile] = NO;
for (iMarker_Fluid_Load = 0; iMarker_Fluid_Load < nMarker_Fluid_Load; iMarker_Fluid_Load++)
Expand All @@ -5532,7 +5544,8 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
unsigned short iMarker_Euler, iMarker_Custom, iMarker_FarField,
iMarker_SymWall, iMarker_PerBound, iMarker_NearFieldBound,
iMarker_Fluid_InterfaceBound, iMarker_Inlet, iMarker_Riemann,
iMarker_Deform_Mesh, iMarker_Fluid_Load, iMarker_Smoluchowski_Maxwell, iWall_Catalytic,
iMarker_Deform_Mesh, iMarker_Deform_Mesh_Sym_Plane, iMarker_Fluid_Load,
iMarker_Smoluchowski_Maxwell, iWall_Catalytic,
iMarker_Giles, iMarker_Outlet, iMarker_Isothermal, iMarker_HeatFlux,
iMarker_EngineInflow, iMarker_EngineExhaust, iMarker_Displacement, iMarker_Damper,
iMarker_Load, iMarker_FlowLoad, iMarker_Internal, iMarker_Monitoring,
Expand Down Expand Up @@ -6821,6 +6834,15 @@ void CConfig::SetOutput(unsigned short val_software, unsigned short val_izone) {
BoundaryTable.PrintFooter();
}

if (nMarker_Deform_Mesh_Sym_Plane != 0) {
BoundaryTable << "Symmetric deformable mesh boundary";
for (iMarker_Deform_Mesh_Sym_Plane = 0; iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane; iMarker_Deform_Mesh_Sym_Plane++) {
BoundaryTable << Marker_Deform_Mesh_Sym_Plane[iMarker_Deform_Mesh_Sym_Plane];
if (iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane-1) BoundaryTable << " ";
}
BoundaryTable.PrintFooter();
}

if (nMarker_Fluid_Load != 0) {
BoundaryTable << "Fluid loads boundary";
for (iMarker_Fluid_Load = 0; iMarker_Fluid_Load < nMarker_Fluid_Load; iMarker_Fluid_Load++) {
Expand Down Expand Up @@ -7342,6 +7364,13 @@ unsigned short CConfig::GetMarker_CfgFile_Deform_Mesh(string val_marker) const {
return Marker_CfgFile_Deform_Mesh[iMarker_CfgFile];
}

unsigned short CConfig::GetMarker_CfgFile_Deform_Mesh_Sym_Plane(string val_marker) const {
unsigned short iMarker_CfgFile;
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++)
if (Marker_CfgFile_TagBound[iMarker_CfgFile] == val_marker) break;
return Marker_CfgFile_Deform_Mesh_Sym_Plane[iMarker_CfgFile];
}

unsigned short CConfig::GetMarker_CfgFile_Fluid_Load(string val_marker) const {
unsigned short iMarker_CfgFile;
for (iMarker_CfgFile = 0; iMarker_CfgFile < nMarker_CfgFile; iMarker_CfgFile++)
Expand Down Expand Up @@ -7516,6 +7545,9 @@ CConfig::~CConfig(void) {
delete[] Marker_CfgFile_Deform_Mesh;
delete[] Marker_All_Deform_Mesh;

delete[] Marker_CfgFile_Deform_Mesh_Sym_Plane;
delete[] Marker_All_Deform_Mesh_Sym_Plane;

delete[] Marker_CfgFile_Fluid_Load;
delete[] Marker_All_Fluid_Load;

Expand Down Expand Up @@ -7780,6 +7812,7 @@ CConfig::~CConfig(void) {
delete[] Marker_PerDonor;
delete[] Marker_NearFieldBound;
delete[] Marker_Deform_Mesh;
delete[] Marker_Deform_Mesh_Sym_Plane;
delete[] Marker_Fluid_Load;
delete[] Marker_Fluid_InterfaceBound;
delete[] Marker_Inlet;
Expand Down Expand Up @@ -8485,6 +8518,16 @@ unsigned short CConfig::GetMarker_Deform_Mesh(string val_marker) const {
return iMarker_Deform_Mesh;
}

unsigned short CConfig::GetMarker_Deform_Mesh_Sym_Plane(string val_marker) const {
unsigned short iMarker_Deform_Mesh_Sym_Plane;

/*--- Find the marker for this interface boundary. ---*/
for (iMarker_Deform_Mesh_Sym_Plane = 0; iMarker_Deform_Mesh_Sym_Plane < nMarker_Deform_Mesh_Sym_Plane; iMarker_Deform_Mesh_Sym_Plane++)
if (Marker_Deform_Mesh_Sym_Plane[iMarker_Deform_Mesh_Sym_Plane] == val_marker) break;

return iMarker_Deform_Mesh_Sym_Plane;
}

unsigned short CConfig::GetMarker_Fluid_Load(string val_marker) const {
unsigned short iMarker_Fluid_Load;

Expand Down
3 changes: 3 additions & 0 deletions Common/src/geometry/CPhysicalGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3593,6 +3593,7 @@ void CPhysicalGeometry::SetBoundaries(CConfig *config) {
config->SetMarker_All_DV(iMarker, config->GetMarker_CfgFile_DV(Marker_Tag));
config->SetMarker_All_Moving(iMarker, config->GetMarker_CfgFile_Moving(Marker_Tag));
config->SetMarker_All_Deform_Mesh(iMarker, config->GetMarker_CfgFile_Deform_Mesh(Marker_Tag));
config->SetMarker_All_Deform_Mesh_Sym_Plane(iMarker, config->GetMarker_CfgFile_Deform_Mesh_Sym_Plane(Marker_Tag));
config->SetMarker_All_Fluid_Load(iMarker, config->GetMarker_CfgFile_Fluid_Load(Marker_Tag));
config->SetMarker_All_PyCustom(iMarker, config->GetMarker_CfgFile_PyCustom(Marker_Tag));
config->SetMarker_All_PerBound(iMarker, config->GetMarker_CfgFile_PerBound(Marker_Tag));
Expand All @@ -3615,6 +3616,7 @@ void CPhysicalGeometry::SetBoundaries(CConfig *config) {
config->SetMarker_All_DV(iMarker, NO);
config->SetMarker_All_Moving(iMarker, NO);
config->SetMarker_All_Deform_Mesh(iMarker, NO);
config->SetMarker_All_Deform_Mesh_Sym_Plane(iMarker, NO);
config->SetMarker_All_Fluid_Load(iMarker, NO);
config->SetMarker_All_PyCustom(iMarker, NO);
config->SetMarker_All_PerBound(iMarker, NO);
Expand Down Expand Up @@ -4016,6 +4018,7 @@ void CPhysicalGeometry::LoadUnpartitionedSurfaceElements(CConfig *config,
config->SetMarker_All_DV(iMarker, config->GetMarker_CfgFile_DV(Marker_Tag));
config->SetMarker_All_Moving(iMarker, config->GetMarker_CfgFile_Moving(Marker_Tag));
config->SetMarker_All_Deform_Mesh(iMarker, config->GetMarker_CfgFile_Deform_Mesh(Marker_Tag));
config->SetMarker_All_Deform_Mesh_Sym_Plane(iMarker, config->GetMarker_CfgFile_Deform_Mesh_Sym_Plane(Marker_Tag));
config->SetMarker_All_Fluid_Load(iMarker, config->GetMarker_CfgFile_Fluid_Load(Marker_Tag));
config->SetMarker_All_PyCustom(iMarker, config->GetMarker_CfgFile_PyCustom(Marker_Tag));
config->SetMarker_All_PerBound(iMarker, config->GetMarker_CfgFile_PerBound(Marker_Tag));
Expand Down
7 changes: 6 additions & 1 deletion SU2_CFD/include/drivers/CSinglezoneDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md)
Expand Down Expand Up @@ -92,6 +92,11 @@ class CSinglezoneDriver : public CDriver {
*/
void DynamicMeshUpdate(unsigned long TimeIter) override;

/*!
* \brief Perform a mesh deformation as initial condition.
*/
void SetInitialMesh() override;

/*!
* \brief Monitor
* \param ExtIter
Expand Down
1 change: 0 additions & 1 deletion SU2_CFD/src/iteration/CFluidIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ void CFluidIteration::Postprocess(COutput* output, CIntegration**** integration,
CSurfaceMovement** surface_movement, CVolumetricMovement*** grid_movement,
CFreeFormDefBox*** FFDBox, unsigned short val_iZone, unsigned short val_iInst) {
/*--- Temporary: enable only for single-zone driver. This should be removed eventually when generalized. ---*/

if (config[val_iZone]->GetSinglezone_Driver()) {
/*--- Compute the tractions at the vertices ---*/
solver[val_iZone][val_iInst][MESH_0][FLOW_SOL]->ComputeVertexTractions(geometry[val_iZone][val_iInst][MESH_0],
Expand Down
4 changes: 3 additions & 1 deletion SU2_CFD/src/output/COutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,9 @@ bool COutput::WriteHistoryFile_Output(CConfig *config) {
}

bool COutput::WriteVolume_Output(CConfig *config, unsigned long Iter, bool force_writing){
if (config->GetTime_Domain()) return ((Iter % config->GetVolume_Wrt_Freq() == 0)) || force_writing;
if (config->GetTime_Domain()){
return ((Iter % config->GetVolume_Wrt_Freq() == 0)) || force_writing;
}
else {
return ((Iter > 0) && (Iter % config->GetVolume_Wrt_Freq() == 0)) || force_writing;
}
Expand Down
Loading